Page 1 of 6 123456 LastLast
Results 1 to 10 of 57

Thread: GMLAN SW-CAN Message woes

  1. #1
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494

    GMLAN SW-CAN Message woes

    I'm trying to send a lock/unlock door command to the Single Wire CAN bus and I'm not getting the results I expect. I suspect that perhaps the scantool is inserting characters that I don't know about (possibly trying to add a header).

    Here's my log:

    Code:
    >atz
    ELM 1.3 Compatible
    >atspb (29bit user mode)
    Ok
    >atcaf0
    Ok
    >ath1
    Ok
    >athv1 (high voltage wakeup on)
    atma shows I'm getting data:
    Code:
    Code:
    >atma
    10 02 80 40 1F 00 00 00 B1 00 00 03
    10 01 80 C0 00 00 00
    10 02 80 40 1F 00 00 00 B1 00 00 03
    0F FF E0 B0
    0F FF E0 89
    10 02 80 40 1F 00 00 00 B1 00 00 03
    10 02 80 40 1F 00 00 00 B1 00 00 03
    0F FF E0 A9

    blah blah blah...

    When hitting the door lock/unlock buttons I can see:
    10 05 60 40 00 01 7F 01
    and
    10 05 60 40 00 00 FF 01

    I copied and pasted those codes back into my terminal and I get no response (I also tried the same message without spaces just for good measure).

    I'm probably doing something braindead stupid so please forgive my n00bish ways.

    Any ideas what I'm doing wrong?

    Thanks!
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  2. #2
    Newbie
    Join Date
    Mar 2010
    Posts
    14
    I would do it in this way:
    at sh 10 05 60 40
    to set the correct ARBID

    then
    00 01 7F 01
    to send actual data.

    Just my 2 cents

  3. #3
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote Originally Posted by ma_jk View Post
    I would do it in this way:
    at sh 10 05 60 40
    to set the correct ARBID

    then
    00 01 7F 01
    to send actual data.

    Just my 2 cents
    thanks! I'll give it a try.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  4. #4
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    at sh only takes 3 bytes for the header but it seems that the arbitration id's are 4 bytes? Here's a log what I've tried. I about out of ideas on what I'm doing wrong. I know there's a couple people in this forum who've had success with this and I hope they chime in:

    Code:
    ELM327 v1.3 compatible
    >atspc
    OK
    >atcaf0
    OK
    >ath1
    OK
    >athv1
    OK
    >atsh 10 05 60
    OK
    >40 00 01
    NO DATA
    >40 00 01 7F
    NO DATA
    >atsh 100560
    OK
    >400001
    NO DATA
    >4000017F
    NO DATA
    >4000017F01
    NO DATA
    >atsh 10056040
    ?
    >atma
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00 
    040 00 00 00 00 
    ELM327 v1.3 compatible
    >atspb
    OK
    >atcaf0
    OK
    >ath1
    OK
    >athv1
    OK
    >atsh 100560
    OK
    >400001
    NO DATA
    >4000017F
    NO DATA
    >4000017F01
    NO DATA
    >0100
    NO DATA
    >ELM327 v1.3 compatible
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  5. #5
    Newbie
    Join Date
    Mar 2010
    Posts
    14
    Quote Originally Posted by tripzero View Post
    Code:
    >atspc
    OK
    So you are using user defined protocol. Did you set it up correctly on PP 2E bit7 for 29bit CAN?

    As far as i can see,
    Code:
    621 00 7F 00 00 00 00 00 00 
    621 00 7F 00 00 00 00 00 00
    you are receiving only 11 bit IDs (receive both 29&11bits by setting bit5 of PP 2E)
    I made a mistake about AT SH command, you must specify the lower 24 bits, because the other 5 are just priority bits and are addressed with AT CP command.

  6. #6
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote Originally Posted by ma_jk View Post
    So you are using user defined protocol. Did you set it up correctly on PP 2E bit7 for 29bit CAN?
    you are receiving only 11 bit IDs (receive both 29&11bits by setting bit5 of PP 2E)
    I was trying out 11bit mode to see if it would work. I've been told that gmlan is 11bit but I see evidence that my vehicle (08 impala) is 29bit. atspb, which i use later in the log is 29bit and should be set up how you describe (I hope). Is there any way to tell?

    I made a mistake about AT SH command, you must specify the lower 24 bits, because the other 5 are just priority bits and are addressed with AT CP command.
    Am I setting up the lower 24 bits correctly with the at sh command? I'll look up the AT CP command because I'm not familiar with it yet.

    Thanks!
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  7. #7
    Newbie
    Join Date
    Mar 2010
    Posts
    14
    first put the right value on PP 2E to receive 11&29 and transmit 29 bit on iso 15765-4
    Code:
    at pp 2e sv 61
    then enable the PP

    Code:
    at pp 2e on
    now you are ready for
    Code:
    atspc
    Next step is to set the priority bits. Take your id, isolate the leftmost 5 bits... so
    Code:
    at cp 10
    and the rest of the id with
    Code:
    at sh 05 60 40
    Finally you can send you data... and cross your finger for the doors opening

    Hope this helps

  8. #8
    Low Bitrate
    Join Date
    Dec 2009
    Posts
    78

    Here it is...

    Here goes about 70 hours of banging my head sitting in the car late at night while the neighbors thought I was crazy ;-)

    Your car's lock/unlock differed from mine so I adapted the commands to match what you showed having sniffed on your network.

    Type the AT commands in the order shown below. Ignore the code formatting.

    Code:
    ATCommands = new String[] {     
    "ATPP 2D SV 0F",    // baud rate to 33.3kbps
    "ATPP 2C SV 40",    // send in 29-bit address mode, receive both(0x60) just 29 (0x40)  
    "ATPP 2D ON",       // activate baud rate PP. 
    "ATPP 2C ON",       // activate addressing pp.
    "ATPP 2A OFF",      // turn off the CAN ERROR checking flags used by wakeUp()
    "ATWS",             // reset chip so changes take effect
    "ATCAF1",           // CAN auto-formatting on
    "ATSPB",            // set protocol to B (user defined 1)
    "ATH1",             // show headers
    "ATR0"              // responses off - we don't expect responses to what we're sending.
    };

    Set up your header to be 10 05 60 40:

    AT CP 10
    AT SH 05 60 40

    Now with the ELM chip programmed, just type the data portion of the packet. The ELM will then produce a CAN packet with our header and data and send it out.

    to Lock, type:
    00 01 7F 01

    to Unlock type:
    00 00 FF 01

    As always, if this causes your car to sprout a satellite and launch a nuke, it's not my fault

    Please return the favor by posting new fun things you discover

  9. #9
    Low Bitrate
    Join Date
    Dec 2009
    Posts
    78

    ImpalaSS keyfob commands.

    FTR here are my car's lock/unlock commands.

    Code:
    Header	Tested?	Command/Info	Data	Source	Short Description
    08 00 80 B0	works	command	02 01	TPM	FOB:Lock
    08 00 80 B0	works	command	02 02	TPM	FOB:unlock

  10. #10
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    A little progress...

    I'm glad you posted the codes for your lock/unlock. I see the exact same thing when I use the keyfob. The codes I am trying are found when you use the lock buttons on the doors. I actually got them off of gmhack.blogspot.com's observations from his G8.

    Still, no go on the locking. Here's my log:

    Code:
    ELM327 v1.3 compatible
    >atpp 2d sv of
    OK
    >atpp 2D SV 0F
    OK
    >atpp 2C SV 40
    OK
    >atpp 2D on
    OK
    >atpp 2C on
    OK
    >atws
    >atcaf0
    OK
    >atspb
    OK
    >ath1
    OK
    >atr0
    OK
    >atcp 10
    OK
    >at sh 05 60 40
    OK
    >00 01 7F 01
    >atcp 08 
    OK
    >atsh 00  8 0 B0 
    OK
    >0 20 1
    I'll keep hacking...
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

Page 1 of 6 123456 LastLast

Similar Threads

  1. Hello - Trouble with CAN message IDs
    By Altazi in forum Newbie
    Replies: 1
    Last Post: 08-14-2008, 03:26 AM
  2. "Low signal from GPS" message criteria
    By parksgm in forum StreetDeck
    Replies: 5
    Last Post: 10-23-2007, 05:11 AM
  3. Replies: 2
    Last Post: 06-13-2006, 10:22 PM
  4. What do you think of my playlist??
    By SkinnyBoy in forum Software & Software Development
    Replies: 19
    Last Post: 07-19-2001, 12:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •