×

INDI Library v1.9.7 Released (29 Jul 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

CEM40 usb drops connection

  • Posts: 7
  • Thank you received: 0
I have selected every baud rate possible, but the problem persists.

Edit: this is a reply to Jasem Mutlaq
Last edit: 4 months 2 days ago by Ruth Arunin.
4 months 2 days ago #82262

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
I used many types of power sources (home outlet and two power banks with different usb cables.) In addition, I tried an unpowered usb hub. Pi4 still cannot detect the mount. The mount works with Ioptron Commander 7.0 with my laptop with Windows10 fine.

Edit: this is a reply to KENNY WONG.
Last edit: 4 months 2 days ago by Ruth Arunin.
4 months 2 days ago #82263

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
I have tried an unpowered usb hub. It does not work. I may have to try your solution later, but it will take sometime to have the hub delivered to me.
As far as I see I may try:
- your unpowered usb hub,
- a new usb cable,
- or buy a rasberry pi3.

Edit: this is a reply to MH
Last edit: 4 months 2 days ago by Ruth Arunin.
4 months 2 days ago #82264

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 2

Replied by MH on topic CEM40 usb drops connection

Try `dmesg -Tw` on the command line while swapping cables out, that may give you more information around the Pi actually detecting / allocating the USB port correctly (or not) at least.

I also recall running into weird issues where just having the cables plugged in during boot versus plugging in after would sometimes cause problems, but I wasn't able to delve into that further to figure out if that was actually the cause or not =(
4 months 2 days ago #82266

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0

I found an unpowered usb hub and tried it. My Pi4 has started to see the mount, but the connection is not very stable. I will try your recommended hub (finger-crossed.)
Thank you for your reply. Please keep it coming.
4 months 2 days ago #82272

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 2

Replied by MH on topic CEM40 usb drops connection

Can do!

I am more than happy to help - I think I lost some significant chunk of my overall life expectancy getting the GEM45 working, so if I can save anyone even a fraction of that grief, it's worth it haha
4 months 2 days ago #82273

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
[Tue Apr 12 18:56:51 2022] usb 1-1.3.3: clear tt 4 (9051) error -71
[Tue Apr 12 18:56:51 2022] usb 1-1.3.3: clear tt 4 (9051) error -71
[Tue Apr 12 18:56:51 2022] usb 1-1.3: USB disconnect, device number 23
[Tue Apr 12 18:56:51 2022] usb 1-1.3.3: USB disconnect, device number 34
[Tue Apr 12 18:56:51 2022] usb 1-1.3.3.3: USB disconnect, device number 35
[Tue Apr 12 18:56:51 2022] usb 1-1.3.3.4: USB disconnect, device number 36
[Tue Apr 12 18:56:51 2022] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[Tue Apr 12 18:56:51 2022] ftdi_sio 1-1.3.3.4:1.0: device disconnected
[Tue Apr 12 18:57:02 2022] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[Tue Apr 12 18:57:03 2022] Under-voltage detected! (0x00050005)
[Tue Apr 12 18:57:03 2022] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[Tue Apr 12 18:57:03 2022] usb 1-1-port4: attempt power cycle
[Tue Apr 12 18:57:04 2022] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[Tue Apr 12 18:57:05 2022] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[Tue Apr 12 18:57:05 2022] usb 1-1-port4: unable to enumerate USB device
[Tue Apr 12 18:57:07 2022] Voltage normalised (0x00000000)


It says "Under-voltage detected" when not using the usb hub.
4 months 2 days ago #82275

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 20
As far as I understand, the fundamental problem between the pi and new CEM40s is that the mount uses a USB hub chip that does not have a driver in the linux distribution. Beyond that, there seem to be a variety of things that can cause the connection to act up.

My eventual solution involved 4 separate actions:
1) Put a powered usb2 hub in between the pi and the mount
Some sort of intermediate usb hub is going to be necessary until the linux distro catches up, if it ever does. I am not certain the powered hub is required for me because I added it before taking step #3
2) Used a 3rd-party usb cable to the mount
Not 100% sure this is necessary, but my mount is rock-solid reliable now and I'm not changing back
3) Swapped 12v power supply.
Not the one the mount uses, I still use the one from iOptron. I use a 2nd 12v supply for the camera cooler, dew heaters, etc. I was testing indoors with just the mount powered and all was well. Then I plugged in the 2nd 12v supply immediately (and frequently) the mount dropped the usb connection to INDI. I tried a different 12v supply and all is well. I assume the supply I started with generates a lot of RFI
4) Wrapped a velcro around the usb plug and the 12v plug at the back of the mount

I know #4 sounds weird. Myself and some others noticed that the usb connection at the mount is not completely snug (and for me it is much worse with any usb cable other than the one supplied by iOptron). I think I was getting some sporadic physical disconnection. It would disconnect during a meridian flip, for example. Seems to only be a major issue when very cold, but, again, it's working so the velcro stays. The purpose of the velcro is to apply a (gentle) sideways pressure to the usb connector

Without the hub, the pi simply never connects to the hub in the mount or any of the mount's devices (FTDI, iPolar). After adding the hub it was connecting, but suffering from frequent 'Read error' messages from the mount. Since taking all 4 steps I cannot recall any Read errors. The mount always connects and stays connected.
4 months 2 days ago #82282

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 1
Hi, I had a similar problem. First the CEM 40 worked flawlessly with raspi and stellarmate. It was about a year ago. I had months of cloudy nights, few clear skies. One clear night the CEM 40 was not seen by the raspi 4, In the meantime I had updated the firmware of the CEM, had another kstars version etc. First I downgraded the firmware of the CEM, installed older kstars and indi versions, tested legions of usb cables. I have another pi..... tried 3 different power-supplies, other computers. Result: raspi 4 with raspbian sees the CEM, Windows computer with ascom sees the CEM, raspi with stellarmate doesnt see the CEM, Mac sees the CEM. With help of Jasem Mutlaq I tried some kind of debugging, prduced endless protocoll files but no new findings... One day I placed an old powered usb - hub between raspi and CEM: It works.[/strike]
4 months 1 day ago #82303

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0

I finally made it work with MH's method. First, after MH's suggestion, I tried my old unpowered usb hub. It worked but unstable. Then, I bought another unpowered usb hub and tried it. Now it works flawlessly.
4 months 1 day ago #82309

Please Log in or Create an account to join the conversation.

Time to create page: 0.940 seconds