| ??? 09/22/03 13:18 Read: times |
#55102 - 485 Master slave polling protocol |
Hi all!
and thx in advance. I a Rookie for developing a RS485 1 Master 4 slave network and not good at programming and Networking. I have some difficult for developing the protocol between the Master and slave. My idea is that. Polling string for master to slave. |Start|Length|NodeID|CheckSum|EndByte| 0xFF 0x05 0x01 1 byte 0xEE The replying string for slave to master |Start|Length|NodeID|ProductID|Status|CheckSum|EndByte| 0xFF 0x11 0x01 5byte 1 byte 1 byte 0xEE My problem is that: After sending the data from the master to slave. 1. Should the master using the Loop to montior and intake the serial port data? or using serial interrupt to check the incoming data? 2. I may using the array or string to store the incoming data. Which method is easily and better? 3. there may be some missing byte during sending data so that may lead to system hang. How can i avoide it? 4. As i think the Packet length seems fixed. Is it better to reduce the Length byte in the Packet? 5. Any problem in my protocol? Thx you for your concerning. Regards, Mario Hui |
| Topic | Author | Date |
| 485 Master slave polling protocol | 01/01/70 00:00 | |
| RE: 485 Master slave polling protocol | 01/01/70 00:00 | |
| RE: 485 Master slave polling protocol | 01/01/70 00:00 | |
| RE: 485 Master slave polling protocol | 01/01/70 00:00 | |
| RE: 485 Master slave polling protocol | 01/01/70 00:00 | |
| RE: 485 Master slave polling protocol | 01/01/70 00:00 | |
RE: 485 Master slave polling protocol | 01/01/70 00:00 | |
| RE: by the way | 01/01/70 00:00 | |
| RE: by the way | 01/01/70 00:00 | |
| RE: by the way | 01/01/70 00:00 | |
| RE: by the way / Code | 01/01/70 00:00 | |
| RE: 485 Master slave polling protocol | 01/01/70 00:00 |



