Email: sygckj@gmail.com

中文 | English

Shenyang FuShiDe Technology Co.,Ltd.

News

Focus on CAN Bus for 10 years,CAN bus industry leading unit.

Your Location: Home > News > Company News >

Realization of CAN bus data modification case sharing

Recently, a customer contacted us and said that he had been using our company’s dual-channel USBCAN analyzer to read the data of various modules in the car, but he also encountered a problem recently, that is, he has a car steering wheel, which used to be It was used on an older car, but now he wants to use this steering wheel on a new car. After a series of tests, he found that the steering wheels of the two models had similar data at work, except that certain digits of certain ID data would change, and asked if we could make them universal.

This customer's requirement is to modify a few bytes of data into other data. If it is only a simple modification, then he can directly use the dual-channel USBCAN analyzer in his hand to achieve it. USBCAN-II Pro supports offline mode, which can directly forward the data of CAN1 and CAN2 channels to each other without using a computer. While forwarding, it can also modify some data, which can basically meet his needs.
 
After communicating with the engineer, we know the data location that the engineer wants to modify. Specifically, the third and fourth bytes of the data with ID 123456F4 are replaced with 0E 6B. This basic data modification can be used USBCAN-II Pro. The specific offline file written by the analyzer is shown in the figure below.

Let me explain the function of this file for everyone. The function of this offline file is: wait for 10ms after power-on, initialized as CAN1 receives the data and forwards it by CAN2, triggering ID 123456F4 (that is, the data starting with this ID is forwarded and replaced ), the replacement code 000C replaces the third and fourth bytes of data (this segment is hexadecimal data, converted into binary is 0000 0000 0000 1100, including frame ID, length and 8 bytes of frame data, 0 It means that the position is not replaced, 1 means that the position is replaced, the position set to be replaced will become the data we entered later), send ID 111 (if no ID replacement is set, it is meaningless to fill in any number here), standard frame , Data length 8, trigger to modify the third and fourth bytes of data to 0E 6B, the number of transmissions is 1 time, and the interval is 500ms.
 
Finally, the editor reminds users that the dual-channel USBCAN analyzer can not only be used as a CAN bus analyzer to send and receive and analyze the original data on the bus, it also has many advanced functions, such as: offline, intelligent relay, CANopen master station, car Practical functions such as standard data analysis. If you want to know more about the product information of Guangcheng Technology's dual-channel USBCAN analyzer, please click the product link below to view it !

if you want to know more about GCAN USBCAN, Pls contact us through:
Email: sygckj@gmail.com
Whatsapp/wechat:+86 13644001762