Skip to main content
PJose.1
Associate
March 9, 2021
Question

Enter 11 bit CANStandard ID in hex format from Serial Terminal using STM32f407

  • March 9, 2021
  • 1 reply
  • 641 views

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

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
March 9, 2021

sscanf(str, "%x", &StdID);

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..