write:No buffer space available

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

write:No buffer space available

velamaparna
I'm running a program with two CAN channels (using TowerTech CAN Cape TT3201).

The two channels are can0 (500k) and can1 (125k). The can0 channels works perfectly but can1 runs a write:No buffer space available error.

I'm using ValueCAN3/VehicleSpy to check the messages.

This is before I run the program. can0 and can1 both seem to send, but only can0 shows up in VehicleSpy.

root@cantool:~# cansend can0 100#00
root@cantool:~# cansend can1 100#20




This is after I try running the program


root@cantool:~# cansend can1 100#20
write: No buffer space available
root@cantool:~# cansend can0 111#10




While my program is running : I get this error for all messages to be sent on can1
2016-11-02 15:36:03,052 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    12f83018    010    1    00
2016-11-02 15:36:03,131 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    0af81118    010    6    00 00 00 00 00 00
2016-11-02 15:36:03,148 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    12f81018    010    6    00 00 00 00 00 00
2016-11-02 15:36:03,174 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    0af87018    010    3    00 00 00
2016-11-02 15:36:03,220 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    12f89018    010    4    00 00 00 00
2016-11-02 15:36:03,352 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    12f83018    010    1    00
2016-11-02 15:36:03,432 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    0af81118    010    6    00 00 00 00 00 00
2016-11-02 15:36:03,449 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    12f81018    010    6    00 00 00 00 00 00
2016-11-02 15:36:03,477 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    0af87018    010    3    00 00 00
2016-11-02 15:36:03,525 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    12f89018    010    4    00 00 00 00
2016-11-02 15:36:03,654 - can.socketcan.native.tx - WARNING - Failed to send: 0.000000    12f83018    010    1    00



However sometimes the whole program works perfectly (if the module is rebooted or some random instances).

How do I fix this?

root@cantool:~# uname -r
4.1.15-ti-rt-r43