How to get VIN no via J1939 protocol?? - Page 1
Forum section: electronics / general

author: jtronix
author_rank: Regular Contributor
timestamp: January 01, 2017, 02:19:08 pm
content: Hello,How to get VIN no via J1939 CAN protocol??I need Frame format for send the request so that in reply i 'll get VIN no.Is there any document available for all command so that i can get other detail also??Thanks in advance

author: jtronix
author_rank: Regular Contributor
timestamp: January 02, 2017, 02:22:05 pm
content: Can anybody know??

author: Ampera
author_rank: Super Contributor
timestamp: January 02, 2017, 02:29:39 pm
content: I'm not entirely sure what you want.Your looking for a VIN? It's normally somewhere on the vehicle chassis, check your vehicle's instruction manual for it's location.If that's not what you mean, I have no clue then.

author: SvanGool
author_rank: Regular Contributor
timestamp: January 02, 2017, 03:02:02 pm
content: You can ask for the VIN, if there is any available, on a J1939 CAN network by sending the broadcast PGN 0xEAFF to the devices on the bus.If you don't know what that or "address claim" or "BAM message" mean then I would first read some material on CAN/J1939 before doing anything on a vehicle bus, where critical devices are functioning.

author: jtronix
author_rank: Regular Contributor
timestamp: January 07, 2017, 04:31:24 am
content: Could you please suggest below packet format for request VIN no?Source address is 0x27.CAN Message:id =length =type = (available options are data or remote)data =data =data =data =data =data =data =data =what will be the expected response ??I had tried the following packet but didn't get any responseid = 0x7DFlength = 8type = datadata = 0x02data =0x09data =0x02data =0x00data =0x00data =0x00data =0x00data =0x00

author: kc8apf
author_rank: Regular Contributor
timestamp: January 07, 2017, 04:29:19 pm
content: As SvanGool said, you need to do some background reading on J1939 to understand what a PGN is, how to process the BAM message you're going to get back, etc. Search Google for J1939 protocol and read a few links. I saw a few sites with example code for Arduino as well.Sent from my Nexus 5X using Tapatalk

author: jtronix
author_rank: Regular Contributor
timestamp: January 15, 2017, 09:35:31 am
content: I had sent request forID = 0x18EAFFF9,Data = 0xEC, 0xFE,0x00,length = 3but didn't get any response.1) I have not sent address claim, but in system fixed addressing scheme is there so do i have to sent address claim message before start communication???2) Can anyone suggest what will be the expected reply for this request??

author: jtronix
author_rank: Regular Contributor
timestamp: January 19, 2017, 04:50:53 pm
content: After searching on google i found that address claim is must before initiate communication with control unit.how to claim address??assume that my device is off board diagnostic.

author: jtronix
author_rank: Regular Contributor
timestamp: January 19, 2017, 04:56:33 pm
content: Msg.id.pdu_bit.edp = 0;Msg.id.pdu_bit.dp = 0;Msg.id.pdu_bit.pf = 234;Msg.id.pdu_bit.ps = 255;Msg.id.pdu_bit.sa = 249;Msg.id.pdu_bit.pri = 6;Msg.buf = 0x00; //LSB FirstMsg.buf = 0xEE;Msg.buf = 0x00;Msg.len = 3;i have send this command to controller but controller doesn't respond anything

author: Wilksey
author_rank: Super Contributor
timestamp: January 19, 2017, 08:57:47 pm
content: I am not certain all ECU's return the VIN, have you hooked it up to a "professional" or cheap ebay scan tool to see if the standard software can get the VIN? can always snoop the bus for the message

author: jtronix
author_rank: Regular Contributor
timestamp: January 21, 2017, 05:53:28 am
content: yes the other diagnostic tools are able to get VIN no.

author: Wilksey
author_rank: Super Contributor
timestamp: January 21, 2017, 10:54:27 pm
content: Have you tried sniffing the bus to see what messages are transferred? You can get a 'Y' cable if needed.

author: jtronix
author_rank: Regular Contributor
timestamp: January 22, 2017, 04:38:46 am
content: Yes i have connect one more CAN bus for see data (RECEIVE MODE) on CAN bus and i got below data after transmitting data shown in previous postMessage ID = 0x18EAFFF9Length = 3 BytesData= 0x00Data= 0xEEData= 0x00Data= 0xFFData= 0xFFData= 0xFFData= 0xFFData= 0xFFafter received above data i conclude that data is transmitting correctly only i'm worried is why ECU is not responding to this command???is it my request message is correct??do i have to follow some other step before i sent this command??

author: Wilksey
author_rank: Super Contributor
timestamp: January 22, 2017, 11:31:36 pm
content: Capture the entire message from and back to the scan tool and compare with what you are sending and receiving, there's going to be a difference somewhere if you are not getting the same results.