# Myxa logger in cpp

**URL:** <https://forum.zubax.com/t/myxa-logger-in-cpp/1763>\
**Category:** Electric drives\
**Tags:** myxa\
**Created:** [March 18, 2021, 3:30pm UTC](https://forum.zubax.com/t/myxa-logger-in-cpp/1763 "2021-03-18T15:30:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftanguy](https://forum.zubax.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@ftanguy](https://forum.zubax.com/u/ftanguy)\
**Post date:** [March 18, 2021, 3:30pm UTC](https://forum.zubax.com/t/myxa-logger-in-cpp/1763/1 "2021-03-18T15:30:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [March 18, 2021, 3:34pm UTC](https://forum.zubax.com/t/myxa-logger-in-cpp/1763/2 "2021-03-18T15:34:14Z")

</div>

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](https://pyuavcan.readthedocs.io/en/stable/api/pyuavcan.transport.serial.html)

---

<div class="post-metadata">

**Author:** ![ftanguy](https://forum.zubax.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@ftanguy](https://forum.zubax.com/u/ftanguy)\
**Post date:** [March 18, 2021, 3:51pm UTC](https://forum.zubax.com/t/myxa-logger-in-cpp/1763/3 "2021-03-18T15:51:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [March 18, 2021, 3:55pm UTC](https://forum.zubax.com/t/myxa-logger-in-cpp/1763/4 "2021-03-18T15:55:11Z")

</div>

See if these help:

[https://kb.zubax.com/pages/viewpage.action?pageId=2195506](https://kb.zubax.com/pages/viewpage.action?pageId=2195506)

[https://kb.zubax.com/pages/viewpage.action?pageId=2195511](https://kb.zubax.com/pages/viewpage.action?pageId=2195511)

---

<div class="post-metadata">

**Author:** ![ftanguy](https://forum.zubax.com/letter_avatar_proxy/v4/letter/f/67e7ee/32.png) [@ftanguy](https://forum.zubax.com/u/ftanguy)\
**Post date:** [March 18, 2021, 4:06pm UTC](https://forum.zubax.com/t/myxa-logger-in-cpp/1763/5 "2021-03-18T16:06:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [March 18, 2021, 4:22pm UTC](https://forum.zubax.com/t/myxa-logger-in-cpp/1763/6 "2021-03-18T16:22:28Z")

</div>

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