2021-03-09 03:45 AM
hi all,
i am trying to do CAN Communication using STM32f407 and transceiver using Cube MX and Cube IDE. Now i have given default value for CANTxHandletypedef Txheader.StdID = 0x321. As a next step i need to add this STDID value by entering through Serial terminal. Anyone please suggest some logic or code to implement this function. i have implemented the serial reception function and recieved the string into an array RXbuff.
Awaiting Reply
Thanks
2021-03-09 09:19 AM
sscanf(str, "%x", &StdID);