Dsolberg8132
Member
I am working on a project that includes the use of a Huawei R4850 power supply, which has a CAN bus interface. Through the CAN bus interface I can monitor the power supply voltage, current, temperature, etc., and also vary the output voltage. The power supply and the Teensy 4.1 with a SN65HVD CAN bus xcvr will be the only devices on the bus.
To obtain the power supply data you have to send 0x108040FE to the power supply and it responds with multiple frames with the data in HEX.
This is my first project working with a CAN bus and I also have limited experience with the Teensy 4.1, while I have worked with an Arduino for many years.
I found an Arduino application that monitors and controls this power supply, but it is using the Adafruit CAN library and an MCP2515 CAN bus xcvr. https://github.com/haklein/r4850g2_arduino I can reuse some of the code in here but I have found that each of the CAN libraries has differences in the syntax.
I have found multiple CAN libraries for the Teensy but when I look into the library they all seem to be written for 3.x series of the Teensy. Since I only need a single CAN bus and I will be using a Teensy 4.1 what is the best library to use? What is the significance of CAN0, CAN1, and CAN2? Which one would I use.
Thanks for the help,
Don K9AQ
To obtain the power supply data you have to send 0x108040FE to the power supply and it responds with multiple frames with the data in HEX.
This is my first project working with a CAN bus and I also have limited experience with the Teensy 4.1, while I have worked with an Arduino for many years.
I found an Arduino application that monitors and controls this power supply, but it is using the Adafruit CAN library and an MCP2515 CAN bus xcvr. https://github.com/haklein/r4850g2_arduino I can reuse some of the code in here but I have found that each of the CAN libraries has differences in the syntax.
I have found multiple CAN libraries for the Teensy but when I look into the library they all seem to be written for 3.x series of the Teensy. Since I only need a single CAN bus and I will be using a Teensy 4.1 what is the best library to use? What is the significance of CAN0, CAN1, and CAN2? Which one would I use.
Thanks for the help,
Don K9AQ