![framing error coolterm framing error coolterm](https://image3.slideserve.com/5744766/slide1-n.jpg)
Maybe what you want is just to send that sequence over the serial port? Otherwise, you should think about where those values are coming from. RX packets:1843 errors:0 dropped:1 overruns:0 frame:0 TX packets:83 errors:0. The sequence 01 00 14 00 58 is not a valid Modbus frame because there is no function code 00(only values from 1 to 6, 15, and 16 are allowed). Open up CoolTerm or a similar program and you can connect to your board at.
![framing error coolterm framing error coolterm](https://image2.slideserve.com/4686551/approaches-cont1-l.jpg)
This is what each value on this frame means:Ġ1: The Slave Address (default is address 1)ġ0: The Function Code 16 (Write Multiple Holding Registers, 16 = 10 hex)Ġ000: The address of the first register (0000 hex = 0, +40001 offset = register #40001).Ġ003: Number of registers to write since you are giving a 3-element listĠ6: Number of data bytes that follow (3 registers x 2 bytes each = 6 bytes).ĩABE: The CRC (Cyclic Redundancy Check) for error checking.
![framing error coolterm framing error coolterm](https://vilimpoc.org/blog/wp-content/uploads/2016/12/coolterm.png)
I would highly suspect that its simply not capable of running at that speed. In your case you indicated that you have a Bluetooth USB dongle. This is a frame that the radio generates so you will read these but will. When you have a hard-wired and the serial port settings match, framing errors are usually caused by bad cables or noise on the line. The library will build the following Modbus frame: 01 10 0000 00014 0058 9ABE In CoolTerm, select Send String from the Connection menu and click on the Hex. I don't really know what you are trying to do or what you mean exactly by send this code by Modbus but I'm afraid what the library (minimalModbus) is doing is exactly what it is supposed to.