Hi Wilhelm,
I tried with another PEAK USB device, still issue is persist.
Output of below line is
>> print object.Read(channel)
32, that means QRCVEMPTY , CAN bus is empty.
If i do hard reset (USB remove and connect) then it will work for firsttime. The same error will come in second time.
Search found 9 matches
- Wed 16. Aug 2017, 11:32
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
- Thu 10. Aug 2017, 15:40
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
Re: PEAK-Linux Driver on Raspberry Pi
Ok, i will check that.
Btw what is actually happening when i do reboot? Can we simulate the same in the script apart from INIT function?
Btw what is actually happening when i do reboot? Can we simulate the same in the script apart from INIT function?
- Thu 10. Aug 2017, 15:30
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
Re: PEAK-Linux Driver on Raspberry Pi
Thanks Mr. Wilhelm,
I am using INIT function in the beginning of my python script ("objPCAN.Initialize(channel, baud)" ), so whenever i run the script it will initialize again, but same error is populating.
I am using INIT function in the beginning of my python script ("objPCAN.Initialize(channel, baud)" ), so whenever i run the script it will initialize again, but same error is populating.
- Thu 10. Aug 2017, 13:56
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
Re: PEAK-Linux Driver on Raspberry Pi
Thanks Mr. Wilhelm,
As you said, i installed chardev and now read function is working with python.Thank you for your great support. But its working only in first execution (needs reboot for working again) after that it showing error " The receive queue is empty" (value of "object.GetErrorText ...
As you said, i installed chardev and now read function is working with python.Thank you for your great support. But its working only in first execution (needs reboot for working again) after that it showing error " The receive queue is empty" (value of "object.GetErrorText ...
- Thu 10. Aug 2017, 10:00
- Forum: PCAN-Basic
- Topic: Initializing COMs over PCAN_USB via Python 3.4
- Replies: 6
- Views: 13248
Re: Initializing COMs over PCAN_USB via Python 3.4
Dear capelzmann,
Thank you for sharing your code.
I am able to write the message over CAN BUS, but unable to use Read function.
Please find below the output .
-------------------------------------
PCAN-USBx was initialized
PCAN_USB (Ch-x): Status is OK
Message Filter Applied Successfully
The ...
Thank you for sharing your code.
I am able to write the message over CAN BUS, but unable to use Read function.
Please find below the output .
-------------------------------------
PCAN-USBx was initialized
PCAN_USB (Ch-x): Status is OK
Message Filter Applied Successfully
The ...
- Thu 10. Aug 2017, 06:29
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
Re: PEAK-Linux Driver on Raspberry Pi
Dear Michael,
Some more clarifications required.
I am able to read and write the CAN messages through command window using "CANSEND" and "CANDUMP" commands, i can send the message to CANBUS from python program using "Write" function also :) , now only difficulty is reading the message through ...
Some more clarifications required.
I am able to read and write the CAN messages through command window using "CANSEND" and "CANDUMP" commands, i can send the message to CANBUS from python program using "Write" function also :) , now only difficulty is reading the message through ...
- Wed 9. Aug 2017, 08:50
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
Re: PEAK-Linux Driver on Raspberry Pi
Hi Michael,
Please find below the output.
####################################################################
pi@raspberrypi:~ $ cat /proc/pcan
*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20160608_n (8.1.0) Aug 1 2017 14:03:34 ...
Please find below the output.
####################################################################
pi@raspberrypi:~ $ cat /proc/pcan
*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20160608_n (8.1.0) Aug 1 2017 14:03:34 ...
- Wed 2. Aug 2017, 07:32
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
Re: PEAK-Linux Driver on Raspberry Pi
Hi,
Thanks for your reply. I have already installed the PCANBasic API and ran the test program also.
I want to send the can signal as well as read the specific can message from python program. I was using "PCANBasic.object.Write()" function, but failed to get the output.
Rgs,
HASEEL
Thanks for your reply. I have already installed the PCANBasic API and ran the test program also.
I want to send the can signal as well as read the specific can message from python program. I was using "PCANBasic.object.Write()" function, but failed to get the output.
Rgs,
HASEEL
- Tue 1. Aug 2017, 13:40
- Forum: Linux
- Topic: PEAK-Linux Driver on Raspberry Pi
- Replies: 156
- Views: 547805
Re: PEAK-Linux Driver on Raspberry Pi
Hi,
I just set up the PEAK CAN USB and RPI3, now i can read the can signals using candump command and send the signals using cansend command. Anybody knows how to send/read through python program, i understood that these commands are not available in python.
I just set up the PEAK CAN USB and RPI3, now i can read the can signals using candump command and send the signals using cansend command. Anybody knows how to send/read through python program, i understood that these commands are not available in python.