Dsolberg8132
Active member
My CAN Bus interface from my Teensy 4.1 to a Huawei R4850g2 is receiving and filtering the data frames that I want from frame ID 0x108040FE. The following are two of the data frames:
Received on CAN3: ID=0x1081407F Data=1 75 0 0 0 0 C7 AE
75 in field 2 identifies this as output voltage, C7 AE is the hex value for the output voltage which is measured at 49.95V
Received on CAN3: ID=0x1081407F Data=1 81 0 0 0 0 0 0
81 in field 2 identifies this a output current, whis is zero as there was no load on the power supply.
There are 12 different data frames but I am mainly interested in getting a float value for voltage and current. This will be displayed on a Nextion display and send over a serial interface to a Visual Basic desktop application.
I have done a lot of serial communication and string manipulation but I am a novice when it comes to getting data out from a CAN bus frame. Can anyone help me with this?
Don K9AQ
Received on CAN3: ID=0x1081407F Data=1 75 0 0 0 0 C7 AE
75 in field 2 identifies this as output voltage, C7 AE is the hex value for the output voltage which is measured at 49.95V
Received on CAN3: ID=0x1081407F Data=1 81 0 0 0 0 0 0
81 in field 2 identifies this a output current, whis is zero as there was no load on the power supply.
There are 12 different data frames but I am mainly interested in getting a float value for voltage and current. This will be displayed on a Nextion display and send over a serial interface to a Visual Basic desktop application.
I have done a lot of serial communication and string manipulation but I am a novice when it comes to getting data out from a CAN bus frame. Can anyone help me with this?
Don K9AQ