Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does BUSMASTER supports CANopen device "Absolute encoder from Piher Sensing Systems" ? #1306

Open
sandeepreddy0000 opened this issue Jan 8, 2024 · 9 comments

Comments

@sandeepreddy0000
Copy link

I am trying to connect a CANopen device (Absolute encoder from Piher Sensing Systems) to BUSMASTER using kvaser Leaf Light hardware. However, I am unable to access the CAN message. Can someone please confirm whether BUSMASTER supports CANopen or not?

@reymor
Copy link

reymor commented Jan 8, 2024

Hello @sandeepreddy0000

BUSMASTER does not support CANopen

@sandeepreddy0000
Copy link
Author

Thank you for your reply.
Can you please suggest some open source softwares like BUSMASTER for CANopen ?

@gxurma
Copy link

gxurma commented Jan 9, 2024 via email

@reymor
Copy link

reymor commented Jan 9, 2024

Well, I think that we have a different view of what CANOpen is.

Having the message buffer and doing an interpreation is NOT support for CANOpen. This is exactly the same idea with UDS, you could say, you can make the payload with the requirements, etc, but it is NOT support for UDS.

If we talk in the context of other open source tools, like Wireshark. You have an ethernet trace, and if you are using a propietary protocol, which is not supported by Wireshark, it does not mean that you are not able to see the data. You will see the data, but without any meaning, that what that propietary protocol means to you by that. You could offcourse create a dissector, etc. But clearly Wireshark does not support your propietary protocol.

In this case, off course you can receive CAN messages, but without any meaning because Busmaster does NOT support CANopen. Could you interprent this data? Off course, you could but it does not mean that Busmaster support CANopen.

@sandeepreddy0000
Copy link
Author

sandeepreddy0000 commented Jan 16, 2024

Thank you for your suggestions.
I connected the CANopen device to Busmaster using the Kavser leaf light - (120-ohm termination resistance is connected, and the correct baud rate is selected). When given NMT cmd to get into operational mode, I get an error with id:0x2001 shown in the image.
IMG20240114143043
While trying multiple times, I got an Rx message from the encoder shown in the image, but I cannot get that again.
IMG20240114151454
Also, the NMT cmd is:
WhatsApp Image 2024-01-16 at 19 30 01_91feb399

Can someone please suggest where I am making a mistake?

@quantum8
Copy link

Is the error continuously being transmitted? I.E.: is the time for the error message incrementing, or is it once off. If once off then you should be able to clear the message window and it won't return.

If it does then you either have a hardware or software configuration issue.

A Bit error is:
When the bit received is not the same as the bit transmitted. Every node that receives the data reads it bit-by-bit from the Bus and compares the transmitted bit value with the received. If the bit transmitted and the bit received are not of the same value, a "bit error" occurs.

My first thought for hardware issue is perhaps you haven't terminated correctly. Is there termination at both ends of the bus? You need 120ohm at both ends, not just one end. Sometimes you can get away with no termination, or just one but that's usually on a short cable run at low transmission rates, and certainly not in production.

@gxurma
Copy link

gxurma commented Jan 16, 2024 via email

@sandeepreddy0000
Copy link
Author

Thanks for your replies.
Now, I can read CAN output in BUSMASTER. I tried changing the baud rate and CANID of the CANopen encoder using the LSS service, but my device is not responding if I transmit using bus master. Can anyone suggest to me about this?

I just want to highlight that the encoder is giving output without any NMT command....

@gxurma
Copy link

gxurma commented Feb 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants