Re: listening to rs485 serial port on BL4S200
"Tom Collins tom-lnEA/wrDJtNWk0Htik3J/[email protected] [rabbit-semi]" <[email protected]> Wed, 10 Aug 2016 17:19:38 -0700
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
At 115kbps, you'll see a maximum of 11.5kbytes/second, or 11.5bytes/msec. So in your 15 msec loop time, you can receive a maximum of 172.5 bytes. Are your buffers large enough to hold that? If so, you're probably fine. If your test for received bytes is short, you could sleep for just 5ms instead of 15ms and probably not see a difference in the performance of your other costates. -Tom On Aug 10, 2016, at 12:20 PM, 'Yang Hong' [email protected] [rabbit-semi] wrote: > Thank you for your response. Actually, I am using serval “costate” with different loop timing. My current serial port use one of them “costate” with 15 msec loop time. My RS485 port use 115kbps. Do you think how often checking serial port is reasonable according to your experience? > >