Can Not Recieve Can Msg With Example Java Code

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
ethelena
Posts: 1
Joined: Wed 4. Apr 2018, 07:24

Can Not Recieve Can Msg With Example Java Code

Post by ethelena » Wed 4. Apr 2018, 07:26

Hi,

I have an USB PCAN Adpater running on Ubuntu. I installed the driver and pcanbasic and it seems to be working (candump shows messages sent by another PC via PCAN View) and I can send messages in my Java program.

My problem is that I can't receive messages in Java, even with the example Application in pcanbasic. Sending is not a problem.

Could someone point me in the right direction, I don't know what could cause this problem.
Thanks in advance.

F.Vergnaud
Software Development
Software Development
Posts: 305
Joined: Mon 9. Sep 2013, 12:21

Re: Can Not Recieve Can Msg With Example Java Code

Post by F.Vergnaud » Wed 4. Apr 2018, 09:51

Hello Ethelena,

By default in the Java sample and after you connect to a device, the working channel is in a paused state. You need to click on the "Start" button (under the "Connected Channels" groupbox) in order to start receiving messages.
Attachments
pcanjni_sample.PNG
pcanjni_sample.PNG (47.36 KiB) Viewed 2736 times
Best regards,
Fabrice

Post Reply