??? 09/23/05 09:53 Read: times |
#101431 - I see Responding to: ???'s previous message |
Of course if there is some substantial processing needed to get the proper answer the delay could be based on that... But sometimes it is not. The OP has 120 slaves (which is a lot) and presumably wants to make a quick poll cycle. If the request and answer for a simple poll ("Do you have something new?" - "No, thanks." :-) consists of only a few characters, it is not too reasonable to wait for another 6-10 characters per request-answer, if the hardware permits it. Also, if hardware permits, it is not reasonable to base the delay on character time - although it is simple to implement it so (simply transmitting dummy bytes for the time being).
My only point in that reponse was, that if the turnaround time should be shortened as much as possible and CRC calculation turns out to be too lengthy, the trick might be to calculate CRC on the fly during reception (and transmission), rather than calculate both the received (for check) and to-be-transmitted packet CRC at once between the reception and transmission. An another trick how to win some little time might be to start transmitting "blindly" - the packeting protocols tend to have headers often with fixed first few bytes, so one could quite safely start to transmit them even while the answer itself is under process. Jan Waclawek |
Topic | Author | Date |
Delay times for switching RS485 lines? | 01/01/70 00:00 | |
MODBUS | 01/01/70 00:00 | |
Driver enable and disable time | 01/01/70 00:00 | |
caution | 01/01/70 00:00 | |
delay time | 01/01/70 00:00 | |
make a master | 01/01/70 00:00 | |
I don't think it is the problem | 01/01/70 00:00 | |
not the PC, not the windows | 01/01/70 00:00 | |
Thank you all | 01/01/70 00:00 | |
non-pc master | 01/01/70 00:00 | |
Check out the FTDI serial chip | 01/01/70 00:00 | |
CRC? | 01/01/70 00:00 | |
CRC? | 01/01/70 00:00 | |
I see![]() | 01/01/70 00:00 | |
Another happy FTDI user | 01/01/70 00:00 | |
USB as mentioned below sounds good, but | 01/01/70 00:00 |