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
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?
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?
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.