<a href="http://forum.canb.us/profile/254/Xag">@Xag </a> Thanks, that is very useful information. I am already using a proprietary Canbus Function Extender so I should be able to figure out the direct connection to the Canbus. Will post an update when I make some progress.

What are some baud rates I could possibly try with a Japanese vehicle (2011 Suzuki Kizashi)?
Is it normal to only get one of the can busses to respond with a status 14 if I am using the OBD-2 plug instead of wiring directly to the CANBus?
In my case only CANBus 2 responds with {"e":"busdgb", "name":"Bus 2", "canctrl":"7", "status":"14", "error":"B", "nextTxBuffer":"2"} after sending a 0x01 0x10 0x02.

<a href="http://forum.canb.us/profile/Xag">@Xag</a> Did a lot of reading, downloading and searching. A good place to get access to the canbus of a Volvo with RTI is the Melbus plug at the back of the RTI DVD player. That's also where the Canbus Function Extender I use from Volvotech is connected. However, I haven't yet figured out the pinout of the Melbus interface, I can't find an exact description. I have downloaded the complete wiring overview of my Volvo XC70 but that hasn't helped me yet, I am more proficient at reading code than wiring diagrams ;-) There are a couple of guys at the svxc.se and swedespeed.com forums that seem to know an awful lot about canbus hacking, when I am really stuck I will ask them.

Okay, made some progress today. The problem I had was getting no data from the CANBUS. The connection to the CBT was fine but issuing CMD 03010100000000 returned nothing (well an ACSII ".") I thought it could be CANBUS speed related.

After looking on this page:
http://docs.canb.us/firmware/main.html

There is a part "How the firmware works" were it says:
// Setup CAN Busses
CANBus1.begin();
CANBus1.baudConfig(125);
CANBus1.setRxInt(true);
CANBus1.setMode(NORMAL);

In the current Arduino program it's some kind of subrouting to (i guess) an auto-detect but that's not working for me.

Look for the line: CANBus1.baudConfig(cbt_settings.busCfg[0].baud);
I replaced it with 500 to get a fixed rate and that got me data from line 1

The next problem to solve is how to save the HEX data. For some reason or another CoolTerm only seems to be saving the ASCII part which is unusable to me.

ˇ
⁄G�������
�eˇˇ����
-�����
(
ı=Ñ~�P�˛

You get the idea....

Anybody got any tips for me how to save HEX (which I see on the screen) to the file? I tried both Text Editor on my Mac and Notepad on Windows XP but both save the same. Do I need another program to convert this again?

I need the HEX format so I can load it in Excel for comparison.

Update. Got Realterm which is supposed to be able to capture Hex to file..nope, not the current one, the checkbox is simply gone. Went back to version 2.0.0.57 where there is a checkbox and got my first file with Hex data. Now going to have a try at analyzing it in Excel.

I'm not sure why you want the whole output in Hex, but I think CoolTerm may be able to do it for you. There is a Hexadecimal option for capturing data in Options > Receive > Capture format [Hexadecimal].

However, it looks like there is an alternative if you are OK with JSON format by removing the comments before this line of code in SerialCommands.h.

#define JSON_OUT

Once you do that, it give you a JSON format like this:

{"packet": {"status":"1","channel":"Bus 1","length":"8","id":"50","timestamp":"247444","payload":["1","0","F","1","AA","55","AA","55"]}}
{"packet": {"status":"1","channel":"Bus 1","length":"8","id":"50","timestamp":"247456","payload":["1","0","F","1","AA","55","AA","55"]}}
{"packet": {"status":"1","channel":"Bus 1","length":"8","id":"39E","timestamp":"247470","payload":["0","0","0","7F","0","10","0","0"]}}
{"packet": {"status":"1","channel":"Bus 1","length":"8","id":"50","timestamp":"247474","payload":["1","0","F","1","AA","55","AA","55"]}}
{"packet": {"status":"1","channel":"Bus 1","length":"8","id":"50","timestamp":"247486","payload":["1","0","F","1","AA","55","AA","55"]}}
{"packet": {"status":"1","channel":"Bus 1","length":"8","id":"508","timestamp":"247490","payload":["0","AA","55","AA","55","AA","55","AA"]}}

[I'm not sure if this changes how the BT output works. It looks like the else statement of the #ifdef JSON_OUT does some BT stuff. Maybe someone can help explain this.]

Tanks, I'll have a look. I could use a better method.

I'm trying to learn what CANbus messages are going over the line. The current output is from contact on but engine not running. Want to eventually filter these out so I can start identifying messages when I press buttons or send commands from the manufacturers tool.

Any other way going about this?

Hey Xag, can you share your settings in Realterm? I'd prefer to use it also, but unable to get any display data back from the CB unit no matter what settings I try...

I'm away from home this week so can't look now. I use the regular settings 9600/8/1/N. Where do you get stuck?

Connection seems to be opening, but when I try to SEND simple hex commands like 0x0101, not seeing any replies as would in coolterm. Tried several display settings with no luck.

I believe you want 115200 baud.

Got it.
Where Cooltem will send HEX values in formats such as 011001 or 01 10 01
Realterm only seems to send HEX as 0x01 0x10 0x01 and 0x03 0x01 0x01 0x0000 0x0000

Unless I'm missing something... Com Port Baud seems to be flexible. I settled with 115200 8N1 None. Thanks for the <b>#define JSON_OUT</b> tip <u>iseward</u>. Realterm logs nicely using the JSON format. Pick your deliminators and sort in a spreadsheet, for us beginners.

{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"200","timestamp":"642885","payload":["2","4E","5","8E","4","4A","0","0"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"225","timestamp":"642890","payload":["0","FF","2","6F","0","0","0","42"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"201","timestamp":"642894","payload":["2","90","3F","85","0","0","0","80"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"225","timestamp":"642898","payload":["0","FF","2","6F","0","0","0","42"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"106","timestamp":"642903","payload":["2","0","2","0","1","91","56","54"]}}

<u>Sorted by id & time </u>
id 201 timestamp 643085 payload 02 91 3F 98 00 00 00 80
id 201 timestamp 643102 payload 02 8E 3F 7A 00 00 00 80
id 201 timestamp 643119 payload 02 8D 3F AC 00 00 00 80
id 201 timestamp 643135 payload 02 8E 40 30 00 00 00 80
id 201 timestamp 643151 payload 02 90 40 90 00 00 00 80
id 201 timestamp 643181 payload 02 91 3F FC 00 00 00 80
id 201 timestamp 643197 payload 02 90 3F C3 00 00 00 80
id 201 timestamp 643214 payload 02 90 3F F8 00 00 00 80
id 201 timestamp 643231 payload 02 91 40 27 00 00 00 80

Now onto understanding frame_id's

Cheers

Glad you solved it and thanks for the info. Will give it a try.

XAG
<blockquote>Look for the line: CANBus1.baudConfig(cbt_settings.busCfg[0].baud);
I replaced it with 500 to get a fixed rate and that got me data from line 1</blockquote>
is this what you changed to?
CANBus1.baudConfig(500);

i get "ÿ" after i send 03030300000000 command

this is what i get from 0101

{"event":"version", "name":"CANBus Triple", "version":"0.4.0", "memory":"805"}

this is what i get from command 0102

01:01:00:7D:00:F4:01:7D:00:00:00:00:00:00:02:00:00:00:07:E0:01:3C:00:00:00:00:04:41:05:3C:00:00:28:10:00:01:00:0A:FF:D8:45:47:54:20:20:20:20:20:02:01:00:00:07:E0:01:34:00:00:00:00:04:41:05:34:00:00:28:10:00:0F:0D:20:00:00:41:46:20:20:20:20:20:20:02:01:00:00:07:E0:22:DA:85:00:00:00:04:62:05:DA:06:85:30:08:00:17:00:14:00:00:41:46:52:4F:42:44:20:20:02:00:00:00:07:E0:22:03:EC:00:00:00:04:62:05:03:06:EC:30:10:00:01:00:05:00:00:4B:4E:4F:43:4B:20:20:20:02:00:00:00:07:E0:22:F4:23:00:00:00:04:62:05:F4:06:23:30:10:00:1D:00:14:00:00:46:50:52:00:4B:20:20:20:02:00:00:00:07:E0:22:03:18:00:00:00:04:62:05:03:06:18:30:10:00:06:00:01:00:00:43:41:4D:44:45:47:20:20:02:00:00:00:07:37:22:59:6A:00:00:00:04:62:05:59:06:6A:30:10:00:0B:00:64:00:00:50:57:45:49:47:48:54:20:02:00:00:00:07:E0:22:03:CA:00:00:00:04:62:05:03:06:CA:30:08:00:09:00:05:FF:D8:42:41:54:54:45:52:59:20:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

I'm not sure what 030303 does off the top of my head. I think the command you want is:
030101 - turn on logging for bus 1 (no filters).
030100 - turn off logging for bus 1

011001 - status of bus 1.

iseward

thank you..... now i am getting data..... i used 030101

And now you have to find out what it al means! ;-)

  • 61
    Posts
  • 67257
    Views

Looks like your connection to CANBus Triple was lost, please wait while we try to reconnect.