Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] Single Board Computer - RS485 communication - C++ programming

Status
Not open for further replies.

gautamsakthi

Newbie level 3
Joined
Jan 25, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,303
I have two single board computers Octagon 6020 and Fastwel-CPC106 . I need to transfer data between them using RS-485 communication. I need to create an executable file to be run in both of these single board computers in C++. I have basi knowledge of C+ but not embedded system programming.Please guide on what books to refer.The OS installed in both of them is DOS
 

Hi,

First you have to decide is it a point to point communication or a bus communication.
Single master or multi master?
--> From your description it seems like a point to point master to device configuration.

What data do you want to transfer?
What block size? What data rate?

After that you decide what protocol to use.

Klaus
 

Hi,

First you have to decide is it a point to point communication or a bus communication.
Single master or multi master?
--> From your description it seems like a point to point master to device configuration.

What data do you want to transfer?
What block size? What data rate?

After that you decide what protocol to use.

Klaus


Ok Sure. I need to code in C++ for RS485 Communication. Please specify any books or documentation for such programming. I have not done C++ programming for ommunication application
 

If you already have RS485 hardware, it's ok, but if you cn choose the interface HW, I would have split Rx an Tx, and made a full duplex RS422 connection.

RS485 is half duplex and you need to establish a proper protocol to manage who is transmitting at a given time. even if you listen in on the transmission you can't tell if you have a collision condition.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top