本帖最后由 穿山跃海 于 2021-4-29 22:15 编辑
sprintf(CMD_UART_TxBuffer,"%s%s%d%s%d%s%d%s%s%s%s",CMD_Head_HAND,CMD_Space,Address_temp,CMD_Space,Device_num_temp,CMD_Space,Data1_temp,CMD_Space,CMD_Space,CMD_Space,CMD_End);Tx_Buffer_Len=strlen(CMD_UART_TxBuffer)
CRCValue =MODBUS_CRC16((uint8_t*)CMD_UART_TxBuffer,Tx_Buffer_Len);
printf("OK\n\r");
printf("%s",CMD_UART_TxBuffer);
|