Using the CAN bus commands

Ah, thanks for the confirmation. I’ll re-try after the next update :slight_smile:

How can I understood what Protocol ID i need to use with my Mazda CX-5?
AutoPI are not able to automatically detect, how I can detect it?

Thanks

Hi Matteo

What is the output of

obd.protocol

in the web terminal?

If it is unable to detect the protocol, you will have to look up the protocol for your car yourself, but even if it can detect which one it is, you may still need to look up the other busses yourself, as the auto detect will only detect the first available bus - and you probably have access to more than one.

A quick google search found this: http://www.madox.net/blog/projects/mazda-can-bus/

Which suggests that it may be HS (31-36) and MS (51-54) - but this is just a quick guess.

Best regards
/Malte

1 Like

I’m still struggling how this command works. Relating your example to the wikipedia page I presume this is requesting service 01 pid 0C - ie engine RPM ?

Can you also give an example of using the obd.query (or other) command to query a non-standard PID ?

Guessing a lot, I tried :

$  obd.query test pid=2101 force=True
_type: test
_stamp: '2018-11-29T20:01:29.786962'
value: |-
  7EA03410100
  7EB054121000100
  7EC0541210B01A5
  7ED1009412100000100
  7ED2104000000000000

Is this a reasonable request ? How to decode the responses ?

Also, is there some advice how to initially explore the car - obd.dump returns nothing in my Kona Electric, but can we query a range of non-standard PID’s or at least find what non-standard PID’s are available ?

Many thanks.

Hi Malte
I did a google search but I couldn’t find anything for my Volvo V60 2015!!
What do you suggest?!
Thanks

Hi
I have a problem with CAN analyzer. The recording time is too short I meat the time between 2 beeps!! I have increased the recording time from 2 sec to 30 sec but it is still too short🤭. It’s a little bit hard to perform that action I need between 2 beeps!! Is there something which can help me??
Thanks

Hey Alex

When you say the recording time is too short, you mean that you’d like the be able to increase the recording time? - Or do you mean that the time between the beeps is shorter than the configured duration?

If the issue is that you’d like to record for more than 30 seconds, which is the current max in the UI, then you can do the following.

The Can Analyzer section on my.autopi.io uses the following commands behind the scenes.
And you can execute the same commands via the terminal on my.autopi.io, where you can set the duration to whatever you like.

obd.dump will do the actual recording and dump the file to a default directory.
http://docs.autopi.io/commands/obd/#obd-dump

obd.recordings will list the recordings in the default directory
http://docs.autopi.io/commands/obd/#obd-recordings

Best regards
/Malte

I ment time between 2 beeps are too short maybe half a second. I can not perform that command which I need to record it.

Hi Alex

Ah okay - It sounds like an error is occurring causing it to stop recording.
Do you see any errors in the UI when this happens?

Also, can you take a look in the log of the device? specifically the last_errors might be interesting.

You can send the log to support@autopi.io they should be able to tell you the cause, when looking into the log.

Best regards
/Malte

I have now tryed repeadely to use CAN Analyzer.
Recording :+1: seems to be working.
But when i try to play it, i se no action.

i hav tryed to use some of thes commands you are talking about in the therminal,
but still no respond.

Is ther a simple way to send commands?

I am trying out with a lock the car.
i an searching for a way “just” to make the light blink, like when i lock it.

1 Like

I have the same problem!!

1 Like

Hi,

What type of issue do you see?

The Cloud basically just runs the AutoPi core commands for you, so you always have the possiblity to do it manually.

To list the current recordings, use the obd.recordings command:

To replay an entire recording, use the obd.play command:

To replay a single command, use the obd.send command:

best
Peter

Hi,
What was your progress in locking and unlocking your doors with AutoPi?

Still no luch getting the communication working!

1 Like

I also tried to record some commands on my 2015 BMW F10. Although I can read the RPM and SPEED and other parameters using protocol=6 and baudrate=500000, whenever I try obd.dump I get “CAN sending or receiving failed”.

Looking into the syslog I see there is an exception in elm327.py in line 610 which at first glance leads me to believe either there is an issue with the protocol and baudrate mentioned above or I am seriously missing something!

Also tried from the cloud GUI. All I get is toasters that the recording has started and immediately stopped. My guess is the issue is the same, just that the actual exception is not being propagated to the UI.

Any clues? :slight_smile:

I have exactly the same problem. With an BMW F11.

I have the same issue, and I noticed that I got a loads of errors with something related to a file when i was extracting logs for another issue I am in contact with support about.

Now that the new Firmware for my issue is out. I will install this and extract the logs again and probable post it here and then make a support ticket for it.

I tried doing obd.dump from the terminal but im getting transmit buffer full error. Do I need to clear out some buffer file?

image

This happens when the engine is on but works only if it is off.

I have exactly the same issue as @alexu. If I try to send a raw can message with any protocol other than protocol=6, it fails “CAN sending or receiving failed” and an exception in elm327.py. I’m wondering why its reporting an elm327 error as I tried protocol=31 which should use stn11xxx.
My send command looks like this:
obd.send 03222B29AAAAAAAA header=713 expect_response=True auto_format=False protocol=31

Sending standard OBD requests works fine. Any clues whats wrong?

What car do you have?

I am starting to believe that some cars cannot use this feature :frowning:
As in, my Mercedes 2015 B180, I cannot do any recording at all. Even tho it seems to detect the correct baud and other details.