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

CAN Socket support? #2

Closed
vibnwis opened this issue Feb 14, 2021 · 21 comments
Closed

CAN Socket support? #2

vibnwis opened this issue Feb 14, 2021 · 21 comments

Comments

@vibnwis
Copy link

vibnwis commented Feb 14, 2021

Does it support CAN Socket?

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

The daemon found here https://github.com/mjbots/fdcanusb/blob/master/sw/fdcanusb_daemon.cc can be used to provide a socketcan interface from the fdcanusb.

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021

Many thanks for the response. However, having searched high and low, yet not seeing the hardware for your code. What or where is the hardware?

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

When they are in stock, you can also buy them at https://mjbots.com/products/fdcanusb

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021 via email

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

When inserted into a USB port, it implements the USB CDC interface. That means it looks like a virtual COM port to Windows or Linux.

When you use a terminal emulator like hyperterminal or minicom, it allows you to send commands which cause CAN-FD frames to be emitted out the other side. CAN-FD frames that are successfully received, are reported as responses on that same USB CDC interface.

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021 via email

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

No worries. Although, a USB CAN-FD adapter is exactly what this is. I'm not sure what else you would expect from such an adapter.

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021 via email

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

That is exactly what this device lets you do.

Every USB to CAN-FD adapter has a unique protocol on the PC side. The fdcanusb's is documented in the README, and additionally there is the daemon linked above that lets it present as a linux socketcan device.

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021

I re-visited your explanation, and realize that the serial-like is an emulation. Without emulation, it is a USB-FDCAN device. I need a device for my research studies. Hence, do not have much time for trouble-shooting. Is the product as CAN Socket promising or working. I can compile the Linux driver, but just wanting to know it is not stable, not a beta release, is it?

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

It is plenty stable for mjbots' needs. However, you may decide you'd rather get something like the PEAK USB CAN-FD adapter, which while significantly more expensive, is provided by a company with a longer history.

https://www.peak-system.com/PCAN-USB-FD.365.0.html?&L=1

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021

However, the website says it is out of stock and sold out?

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

Yes, as the website says, the ETA of new stock is approximately 1 week.

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021

How does it take an order?

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

If you are asking how to place an order at mjbots.com, you can wait until it is in stock, then pay with a credit card or google pay using the automated online checkout.

@vibnwis
Copy link
Author

vibnwis commented Feb 14, 2021 via email

@jpieper
Copy link
Member

jpieper commented Feb 14, 2021

Great! I'll close this issue out for now then. If you have more questions, don't hesitate to mail [email protected] or joint the mjbots discord: https://discord.gg/W4hUpBb

@jpieper jpieper closed this as completed Feb 14, 2021
@vibnwis
Copy link
Author

vibnwis commented Feb 25, 2021

Hi there,
The FDCAN USB adapter is available now. However, it does not ship to New Zealand. Can you help, please?

@jpieper
Copy link
Member

jpieper commented Feb 25, 2021

Shipping to New Zealand should work. Can you mail [email protected] with a screenshot of any errors you are seeing?

@vibnwis
Copy link
Author

vibnwis commented Feb 25, 2021 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

2 participants