Home/Support/Support Forum/Connectport X5 - Error running J1939 example
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Connectport X5 - Error running J1939 example

0 votes
I've just received some Connectport X5 modules, I installed Digi ESP for Python 2.1.1 and had no problems running the "Hello World" and a few other sample programs. I cannot get any CANBus examples to run though.

I have tried both the "can_bus" and "j1939_protocol" examples but I'm getting an error when running them:
#> python j1939_protocol.py Getting handle to CAN bus 0 Configuring the bus to 125000 bps Traceback (most recent call last): File "WEB/python/j1939_protocol.py", line 48, in ? handle.configure(baud) OSError: Could not install receive handlers

I have not modified the code in any way so I'm a bit stumped as to what the issue is. I assume there is some incompatibility with the configure method of digicanbus and how the sample is using it.

Any ideas?

asked Oct 24, 2013 in Python by MikeL New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
There is something obviously wrong with this example and/or the digicanbus module - unless I am doing something completely wrong here.

Here are the steps I am performing:
  • Compile the j1939_protocol.py example and upload it to the X5
  • Telnet into the X5
  • Execute python j1939_protocol.py
  • Example works fine, displays the received J1939 message
  • Type quit to stop it and get back to the prompt
  • Execute python j1939_protocol.py again
  • OSError message generated as shown above

It looks like each time the script is run, it requires a reboot.

Am I missing something here?

answered Oct 24, 2013 by MikeL New to the Community (1 point)