ConCan Not Getting Any Data

Topics about the Hardware of Revolution Pi
Post Reply
toernblom
Posts: 19
Joined: 19 Oct 2021, 07:55

ConCan Not Getting Any Data

Post by toernblom »

Hey! I'd greatly appreciate some help with my setup here.

Currently running this system:
  • RevPi Connect+ with ConCan
  • Arduino Uno with MCP2515 & TJA1051
  • Arduino Nano with MCP2515 & TJA1051
The CAN Module- https://www.electrokit.com/en/product/c ... a1050-spi/

Previously we used RPI 3b+ with Pican2 using SocketCan which worked well.

Now I've setup the ConCan with pictory, followed the instruction in the tutorial page. I can use "ifconfig" and see that can0 is up and running, also setting all 3 units to 500KBPS.
The arduino nano and Arduino Uno can currently speak with each other through CAN. And earlier the rasperry pi 3b+ could also talk with the arduinos.
The problem is when using either candump can0 i don't see any messages nor do the arduinos if i use cansend.
toernblom
Posts: 19
Joined: 19 Oct 2021, 07:55

Re: ConCan Not Getting Any Data

Post by toernblom »

Update:

After sending an arbitrary message to the bus from the RevPi Con Can It seems to mess up the data on the bus(?)


-> Data printed from Uno listening on the bus with messages sent only by Nano
https://gyazo.com/203b872e054f8c6c389ed30fc05c9887

-> Data printed from Uno listening on the bus after a single arbitrary message sent from ConCan
https://gyazo.com/89e654b2a25885ab8cf3056b49f89414

I'm not able to receive any messages on the ConCan while messages are only being sent by the Nano to the bus using candump can0.

Also, no matter what new data i send from the ConCan the messages received on the Uno doesn't change.


*EDIT
After sending multiple messages from the RevPi i eventually get an error while trying to run the py code once more.

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/can/interfaces/socketcan/socketcan.py", line 568, in _send_once
    sent = self.socket.send(data)
OSError: [Errno 105] No buffer space available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/AR4/test.py", line 12, in <module>
    bus.send(msg)
  File "/usr/lib/python3/dist-packages/can/interfaces/socketcan/socketcan.py", line 547, in send
    sent = self._send_once(data, msg.channel)
  File "/usr/lib/python3/dist-packages/can/interfaces/socketcan/socketcan.py", line 570, in _send_once
    raise can.CanError("Failed to transmit: %s" % exc)
can.CanError: Failed to transmit: [Errno 105] No buffer space available
toernblom
Posts: 19
Joined: 19 Oct 2021, 07:55

Re: ConCan Not Getting Any Data

Post by toernblom »

This has been fixed, see link:
viewtopic.php?f=3&t=3172&p=11312#p11312
Post Reply