question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RxPDO is not sent

See original GitHub issue

From candump output, it seems that I’m not sending any PDO messages.

node.pdo.rx[1].read()
node.pdo.rx[1].clear()
node.pdo.rx[1].add_variable('Interpolation data record', 'Parameter1 of ip function')
node.pdo.rx[1].enabled = True
node.nmt.state = 'PRE-OPERATIONAL'
node.pdo.rx[1].save()

node.pdo.rx[1].start(0.1)
node.nmt.state = 'OPERATIONAL'

node.pdo.rx[1]['Interpolation data record.Parameter1 of ip function'].phys = 0
time.sleep(5)
node.pdo.rx[1].stop()
network.disconnect()

candump output:

quad@quad-desktop:~/Desktop$ candump can0
  can0  603   [8]  40 00 14 01 00 00 00 00
  can0  583   [8]  43 00 14 01 03 02 00 00
  can0  603   [8]  40 00 14 02 00 00 00 00
  can0  583   [8]  4F 00 14 02 FF 00 00 00
  can0  603   [8]  40 00 14 03 00 00 00 00
  can0  583   [8]  4B 00 14 03 00 00 00 00
  can0  603   [8]  40 00 14 05 00 00 00 00
  can0  583   [8]  4B 00 14 05 00 00 00 00
  can0  603   [8]  40 00 16 00 00 00 00 00
  can0  583   [8]  4F 00 16 00 01 00 00 00
  can0  603   [8]  40 00 16 01 00 00 00 00
  can0  583   [8]  43 00 16 01 20 01 C1 60
  can0  000   [2]  80 03
  can0  603   [8]  40 00 14 01 00 00 00 00
  can0  583   [8]  43 00 14 01 03 02 00 00
  can0  603   [8]  23 00 14 01 03 02 00 80
  can0  583   [8]  60 00 14 01 00 00 00 00
  can0  603   [8]  2F 00 14 02 FF 00 00 00
  can0  583   [8]  60 00 14 02 00 00 00 00
  can0  603   [8]  2B 00 14 03 00 00 00 00
  can0  583   [8]  60 00 14 03 00 00 00 00
  can0  603   [8]  2B 00 14 05 00 00 00 00
  can0  583   [8]  60 00 14 05 00 00 00 00
  can0  603   [8]  2F 00 16 00 00 00 00 00
  can0  583   [8]  60 00 16 00 00 00 00 00
  can0  603   [8]  23 00 16 01 20 01 C1 60
  can0  583   [8]  60 00 16 01 00 00 00 00
  can0  603   [8]  2F 00 16 00 01 00 00 00
  can0  583   [8]  60 00 16 00 00 00 00 00
  can0  603   [8]  23 00 14 01 03 02 00 00
  can0  583   [8]  60 00 14 01 00 00 00 00
  can0  000   [2]  01 03
  can0  183   [2]  37 06

The last output corresponds to node.nmt.state = 'OPERATIONAL'. The next line, node.pdo.rx[1]['Interpolation data record.Parameter1 of ip function'].phys = 0 does not send anything on the bus.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
christiansandbergcommented, Jun 19, 2018

Could you attach some debug output?

import logging
logging.basicConfig(level=logging.DEBUG)
0reactions
christiansandbergcommented, Jul 16, 2018

This should work with latest master and python-can 2.2.0. If not please re-open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selective PDO mapping - Beckhoff Information System - English
It is important that “RxPDO assign” over object 0x1C12 is always at the end of the list of RxPDO Map entries. It may...
Read more >
1600 to 1603h RxPDO Mapping Parameters
Sub-index 0 contains the number of objects mapped into a PDO. A value of 0 indicates that this PDO is not active. Sub-indexes...
Read more >
CANopen Reference Guide - Octave
Notice that the data length sent by one SDO frame is only 4 bytes. ... There are two kinds of PDO: TxPDO and...
Read more >
ROS_CANopen RPDO timeout - ROS Answers
Did not receive a response message Did not receive a response message Did ... We configured the following PDO mapping: RxPDO 1: Trans:...
Read more >
CANopen, TPDO and RPDO behavior? - Stack Overflow
The NodeIDs are only added to PDOs sent, not received by the ... Does deviceA send TxPDO 180+2 and deviceB receive data by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found