Homepage Knowledgebase GitHub

Myxa logger in cpp

Hello,

I am trying to log myxa data in cpp with serial communication, I already logged in python thanks to popcop but in the github repo Zubax/popcop there is the message : " OBSOLETE – use [UAVCAN/serial] instead. This project was an experiment in applying the UAVCAN philosophy for byte-level L1 links. It culminated in the proposal of a serial transport for UAVCAN."

Does UAVCAN support serial communication?
What are the differences between “the old” popcop and “the new” UAVCAN?

Florian Tanguy

Currently, you should be using Popcop. UAVCAN/serial will be supported in the next firmware release. It is documented here: https://pyuavcan.readthedocs.io/en/stable/api/pyuavcan.transport.serial.html

Thank you for the informations.

I have a problem with a myxa, the serial USB communication does not work but the serial UART communication works. The USB is not recognized.
Is there a way to solve the problem or to know what is wrong?

Florian Tanguy

See if these help:

https://kb.zubax.com/pages/viewpage.action?pageId=2195506

https://kb.zubax.com/pages/viewpage.action?pageId=2195511

These not help.

I am on linux (with another Myxa on the same computer, the USB communication works) and the output of dmesg command is:
[27272.054037] usb 1-2: new full-speed USB device number 36 using xhci_hcd
[27272.182069] usb 1-2: device descriptor read/64, error -71
[27272.418039] usb 1-2: device descriptor read/64, error -71
[27272.654033] usb 1-2: new full-speed USB device number 37 using xhci_hcd
[27272.782047] usb 1-2: device descriptor read/64, error -71
[27273.018046] usb 1-2: device descriptor read/64, error -71
[27273.125999] usb usb1-port2: attempt power cycle
[27273.777990] usb 1-2: new full-speed USB device number 38 using xhci_hcd
[27273.778219] usb 1-2: Device not responding to setup address.
[27273.986188] usb 1-2: Device not responding to setup address.
[27274.193983] usb 1-2: device not accepting address 38, error -71
[27274.322007] usb 1-2: new full-speed USB device number 39 using xhci_hcd
[27274.322197] usb 1-2: Device not responding to setup address.
[27274.534051] usb 1-2: Device not responding to setup address.
[27274.741721] usb 1-2: device not accepting address 39, error -71
[27274.741900] usb usb1-port2: unable to enumerate USB device

Issues of this sort commonly occur because of poor connectivity or EMI. Try a different/shorter cable, avoid USB hubs, etc.