Home > other >  A serial port communication problems
A serial port communication problems

Time:09-15

I found that I mostly written communication time delay, such as writing a modbus protocol, or a receipt to send, I have added a middle latency, because it feels without delay to receive the data seems to have errors, or want to send a lot of time will receive, write a while loop? To a certain number of times? Feel write delay is a bit slow, if use 4800 baud rate, time delay as need around 50 ms, without delay basically want to send many, many times, also can't ensure that data is normal, I want to ask, what good method?
Or do you use what method?

CodePudding user response:

This description is not clear, if you only use a serial port connection of two MCU, the line length limit, the distance can be used RS485 connection, such as modbus is a agreement, shall not affect the hardware, need not the modbus test is normal

CodePudding user response:

Overall affirmation is a software hardware considering, leave the hardware about software is really lame, but now only discuss the best software, regardless of the hardware, or when you use hardware at ordinary times what is writing? Feel what kind of good points
  • Related