Closed AsuraZeng closed 1 year ago
How does this go along with switchserialmode? Shouldn't such parameter also be (or become) defaults on the command line?
Seems induOs just use this tool to configure the serial port? integrate this change the switchserialmode tool seems more reasonable. I would refine this PR.
Yes, iot2050setup is not used in Industrial OS.
I would keep the times configurable via switchserialport and possibly iot2050setup, but known-to-work default values should then indeed come already via switchserialmode.
Currently, the default value is set by switchserialmode. and in the iot2050setup also can change this value.
Better to follow the 52/70 rule for the commit message.
For VS Code, rewrap saves my life.
the usb-serial we are using is cp2102n, when set to rs485 mode, setup time and hold time should refer the transceiver's datasheet (sp339e https://assets.maxlinear.com/web/documents/sp339e.pdf)
Discuss with FAE,Setup time should be over tDZH 1us,hold time should be over tDPLH 1us.
Currently, default value is 0xaa, this time is too long for the hold and setup time. This will affect the efficiency of communication and cause data loss.
And according to the field feedback, this default value set to 0x05 us meets most of the scenarios.
Signed-off-by: chao zeng chao.zeng@siemens.com