Closed elimsjxr closed 2 years ago
Hi! I think we need additional informations to answer your question. Please provide the modbus frames (exchanged data) between the devices.
I think you are talking about this?
Close... I´m talking about the raw data. You can display it with ModbusPoll.. take a look at the second picture on modbustools page under "Quickstart"..
Hi, I don't quite understand what are you doing an what is the issue. You should use any of the provided examples as an starting point and build on top of it.
Hello, I had the same problem.
this is the modbus message
` uint16_t ModbusDATA[100];
ModbusH.uModbusType = MB_SLAVE; ModbusH.port = &huart2; ModbusH.u8id = 1; ModbusH.u16timeOut = 1000; ModbusH.EN_Port = RS485_GPIO_Port; ModbusH.EN_Pin = RS485_Pin; ModbusH.u16regs = ModbusDATA; ModbusH.u16regsize= sizeof(ModbusDATA)/sizeof(ModbusDATA[0]); ModbusH.xTypeHW = USART_HW;
telegram.u8id = 1; telegram.u8fct = 3; telegram.u16RegAdd = 0x00; telegram.u16CoilsNo = 10; telegram.u16reg = ModbusDATA;
`
This problem happens with F103VET6. This problem exists regardless of the serial port baud rate is 9600 or 115200
Hi, I am not sure what is the problem, please open a new issue and provide more context and the steps to reproduce your issue.
Hello, I am a beginner to freertos, and I need help with some questions that I don’t understand. I ran the code on the B-L475EIOTA2 development board and used this board as a modbus slave station,and send a response using modbus poll, but an error was reported on the modbus poll:insufficient bytes received. It seems that the board has received the data from the master station, but failed to send the response packet. Why? Where does the source code need to be modified?