Jump to content

Banner.jpg.b83b14cd4142fe10848741bb2a14c66b.jpg

EKOS Set up help


lw2689

Recommended Posts

I am trying to set up my Celestron AVX mount on KStars through EKOS on a RPi 4 running Astroberry however I seem to be encountering problems and I am hoping someone is able to help with a solution? 

I have an RS232 cable coming from the hand controller into a Serial to USB adapter into the RPi 4. I know this cable works as I have loaded up Kstars on my macbook and been able to connect and control it. However it doesn't seem to like the RPi. I get the error code shown below. If I press scan ports it comes ups with nothing, unlike on the MacBook where it picks up 2 ports. 

1453597199_Screenshot2020-08-13at19_41_35.png.e4d157671f1df230e416b4e1c8b1939f.png

Below is a screen shot of it working on my MacBook. 

242363116_Screenshot2020-08-13at19_39_51.png.8a85f46280af38facb7ce65ca97b70a4.png

Does anyone have any solutions?I'm not too familiar with any sort of code reading so please dumb down your reply if possible. 

1126040879_Screenshot2020-08-13at21_11_52.png.f73d9a00a6d26810dac7ad56f13ef757.png

 

 

 

Link to comment
Share on other sites

Linux has generally been pretty good with the Prolific chipset as far as I'm aware.  Even the knock-off ones.  It could be an issue there, but it's not a conclusion I'd jump to too hurriedly.

The second line of output from "lsusb" shows that the kernel has at least detected the device and recognised it, which is a good start.  The question now is why it hasn't created the serial device node (/dev/ttyUSB0) for it.  @lw2689, where you've run "lsusb", could you also try:

dmesg | tail -15

and post the output of that (which should be 15 lines long)?  With a bit of luck there might be something there to shed some light.

James

Link to comment
Share on other sites

Linux is not good at handling USB. I find that my system goes through bouts of reassigning a different ttyUSBx port number each time a device is plugged in - or even each time it is reset / opened. This is especially annoying when doing Arduino development.

I would suggest running the terminal command:

ls -lt /dev/ttyUSB*

to discover what USB ports your system thinks it has got. Do this every time there is a problem. Or use the following script in a terminal window (resized to small and moved out of the way) to continually monitor the USB serial ports.

#!/bin/bash

# script to report which Serial USB ports are connected

while [ 1 ] ; do
  clear
  ls -lt /dev/ttyU* | cut -c33-99
  sleep 1
done

 

Link to comment
Share on other sites

I have always used Stellarmate on the RPI which has a serial port manager, so never had issues with serial ports, but not tried without mapping them first, but those people I know who don't map them first, always seem to have intermittent issues ☹️

Edited by Stuart1971
Link to comment
Share on other sites

4 hours ago, pete_l said:

Linux is not good at handling USB

Its not the fault of Linux but the USB device which either does not provide a unique serial number when using the same USB type device.

Udevadm / port mapping is normally a simple process UNLESS you have the above stated problem. As @Stuart1971 has already stated Ekos provides Serial Port Mapper which is only needed normally once after which its is far more stable than Windows.

  • Like 1
Link to comment
Share on other sites

17 hours ago, JamesF said:

Linux has generally been pretty good with the Prolific chipset as far as I'm aware.  Even the knock-off ones.  It could be an issue there, but it's not a conclusion I'd jump to too hurriedly.

The second line of output from "lsusb" shows that the kernel has at least detected the device and recognised it, which is a good start.  The question now is why it hasn't created the serial device node (/dev/ttyUSB0) for it.  @lw2689, where you've run "lsusb", could you also try:


dmesg | tail -15

and post the output of that (which should be 15 lines long)?  With a bit of luck there might be something there to shed some light.

James

1224641687_Screenshot2020-08-14at17_26_27.png.dc49291efcfacfdd072ee57ea12f6451.png

 

Link to comment
Share on other sites

Hmm.  That's a shame.  I was hoping there might be something in there about the serial device being connected, but that's not the case :(

An alternative might be to try:

Quote

dmesg | grep -i usb

after plugging in the mount.  (I'm trying to cut down on the amount of information required -- the output of just "dmesg" is usually quite big.)

James

Link to comment
Share on other sites

10 hours ago, pete_l said:

ls -lt /dev/ttyUSB*

I get an error saying no such file or directory.


#!/bin/bash

# script to report which Serial USB ports are connected

while [ 1 ] ; do
  clear
  ls -lt /dev/ttyU* | cut -c33-99
  sleep 1
done

ls: cannot access ‘dev/ttyU*’ : no such file or directory 

I’ve tried the above but so such luck

Link to comment
Share on other sites

Well, that's odd.  The kernel appears to see the device perfectly happily, but appears not to create a device node for it.  It looks like Linux doesn't recognise the product id "23c3" as being a serial device and therefore doesn't create the device node.  Perhaps @RadekK might be able to help with that?

James

Link to comment
Share on other sites

astroberry@astroberry:~ $ tail -20 /var/log/syslog
Aug 14 17:27:19 astroberry systemd[1]: packagekit.service: Succeeded.
Aug 14 17:36:45 astroberry systemd[1]: Starting Cleanup of Temporary Directories...
Aug 14 17:36:45 astroberry systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Aug 14 17:36:45 astroberry systemd[1]: Started Cleanup of Temporary Directories.
Aug 14 17:42:20 astroberry dbus-daemon[625]: [session uid=1001 pid=625] Activating service name='org.freedesktop.secrets' requested by ':1.21' (uid=1001 pid=2242 comm="kstars ")
Aug 14 17:42:20 astroberry gnome-keyring-d[2270]: couldn't access control socket: /run/user/1001/keyring/control: No such file or directory
Aug 14 17:42:20 astroberry dbus-daemon[625]: [session uid=1001 pid=625] Successfully activated service 'org.freedesktop.secrets'
Aug 14 17:43:36 astroberry python3[1073]: 2020-08-14 17:43:36,511:indi-mqtt:Connected to INDI server localhost:7624
Aug 14 17:43:46 astroberry python3[1073]: 2020-08-14 17:43:46,484:indi-mqtt:Disconnected from INDI server localhost:7624
Aug 14 17:50:28 astroberry kernel: [ 1723.714985] usb 1-1.3: USB disconnect, device number 3
Aug 14 17:50:41 astroberry kernel: [ 1736.880771] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd
Aug 14 17:50:41 astroberry kernel: [ 1737.017887] usb 1-1.3: New USB device found, idVendor=067b, idProduct=23c3, bcdDevice= 3.05
Aug 14 17:50:41 astroberry kernel: [ 1737.017906] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 14 17:50:41 astroberry kernel: [ 1737.017923] usb 1-1.3: Product: USB-Serial Controller 
Aug 14 17:50:41 astroberry kernel: [ 1737.017938] usb 1-1.3: Manufacturer: Prolific Technology Inc. 
Aug 14 17:50:41 astroberry kernel: [ 1737.017953] usb 1-1.3: SerialNumber: EVBIk19B617
Aug 14 17:50:41 astroberry mtp-probe: checking bus 1, device 4: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
Aug 14 17:50:41 astroberry mtp-probe: bus: 1, device: 4 was not an MTP device
Aug 14 17:50:41 astroberry mtp-probe: checking bus 1, device 4: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
Aug 14 17:50:41 astroberry mtp-probe: bus: 1, device: 4 was not an MTP device

@JamesFI'm reading endless forums to find answers, i ran a command and it came up with the above.  Is this any help. I'm clueless (and getting super frustrated) At least its raining so i'm not missing out on to much.  I would also really like to sort this before i have to ask my boyfriend to help as he said getting this was a bad idea haha!

Link to comment
Share on other sites

Are you using Astroberry panels first to set up and connect to your devices - if not try this method first and Ekos should say something like "Indiserver already started terminate" - dont terminate - i.e. NO Ekos should still load and show profile

 

Also do a ls -la /dev/*.* >$HOME/dev-devicesnodes.txt - then look thru for any USB device drivers. It will/should be long list!

Note their is a bug in latest Raspbian kernel  (on Indilib) with USB converters but I though it was just FDTI driver permissions - last time I looked

  • Like 1
Link to comment
Share on other sites

Just now, stash_old said:

Are you using Astroberry panels first to set up and connect to your devices - if not try this method first and Ekos should say something like "Indiserver already started terminate" - dont terminate - i.e. NO Ekos should still load and show profile

 

Also do a ls -la /dev/*.* >$HOME/dev-devicesnodes.txt - then look thru for any USB device drivers. It will/should be long list!

Note their is a bug in latest Raspbian kernel  (on Indilib) with USB converters but I though it was just FDTI driver permissions - last time I looked

Actually I think you have hit the nail on the head there.....there is an issue and I think it’s affecting all converters....even more so when plugged directly into the RPI, seems better when a powered hub is used... 👍😀

Link to comment
Share on other sites

2 minutes ago, lw2689 said:

I'm reading endless forums to find answers, i ran a command and it came up with the above.  Is this any help. I'm clueless (and getting super frustrated) At least its raining so i'm not missing out on to much.  I would also really like to sort this before i have to ask my boyfriend to help as he said getting this was a bad idea haha!

:D

I have a nagging feeling in the back of my mind that those messages about the MTP device might be relevant (MTP is for transferring media from portable devices I believe).  It could be that because Linux thinks it might be an MTP device and checks to see if it is that the normal path to install a serial driver fails.  I think I had the same problem some years ago and can't remember the context at the moment.

James

Link to comment
Share on other sites

3 minutes ago, Stuart1971 said:

Actually I think you have hit the nail on the head there.....there is an issue and I think it’s affecting all converters....even more so when plugged directly into the RPI, seems better when a powered hub is used... 👍😀

Must have "grown" since I last looked! - Dont suppose you have a older SD card set up of Astroberry (not sure if the older images still exist on Radeks site) - like 1 month older. If you have this should be ok so long as you  dont do any updates.   OR

Try the fix KNRO has in this fix which seems to work for some people - but I stress they were all FDTI chips not "Others" unless you have a FDTI chip thats not being shown - so do at your own risk 😞   fix was

sudo rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2
Link to comment
Share on other sites

15 minutes ago, stash_old said:

Are you using Astroberry panels first to set up and connect to your devices - if not try this method first and Ekos should say something like "Indiserver already started terminate" - dont terminate - i.e. NO Ekos should still load and show profile

 

Also do a ls -la /dev/*.* >$HOME/dev-devicesnodes.txt - then look thru for any USB device drivers. It will/should be long list!

Note their is a bug in latest Raspbian kernel  (on Indilib) with USB converters but I though it was just FDTI driver permissions - last time I looked

Astroberry panels? I am just using Ekos to set it up. I have no idea how to use panels, i couldn't find anything on the the desktop to do it. 

I tried that command but it wouldn't run 😕

Link to comment
Share on other sites

1 minute ago, JamesF said:

:D

I have a nagging feeling in the back of my mind that those messages about the MTP device might be relevant (MTP is for transferring media from portable devices I believe).  It could be that because Linux thinks it might be an MTP device and checks to see if it is that the normal path to install a serial driver fails.  I think I had the same problem some years ago and can't remember the context at the moment.

James

This maybe https://github.com/raspberrypi/linux/issues/2692

Link to comment
Share on other sites

Just now, lw2689 said:

Astroberry panels? I am just using Ekos to set it up. I have no idea how to use panels, i couldn't find anything on the the desktop to do it. 

I tried that command but it wouldn't run 😕

The panels only appear if you use the Astroberry Web access to start Indiserver etc - sounds you are not using them!

Oops  ls -la /dev/*.* >>$HOME/dev-devicesnodes.txt  and perhaps just in case your permissions are all shot use sudo  ls -la /dev/*.* >>$HOME/dev-devicesnodes.txt 

 

Link to comment
Share on other sites

Another possibility is that the specific Prolific chipset in the serial converter is quite new and not supported in the Linux kernel that Astroberry is running.  It looks as though the driver for the model with a product ID of 23c3 may only have been written less than a year ago.  I'm clutching at straws a bit there though.

James

Link to comment
Share on other sites

Hi, 

I sometimes have exactly the same error as yours when using the hand controller to connect to the rpi. 

Try this, turn everything off. 

Turn the mount on first, before turning the rpi on. You should mane sure that the lights on your hand controller are on, before you turn on the rpi4. 

I've you've turned on the mount, turn on your rpi and try and connect. Hopefully that will solve the issue. 

Let me know if that works. 

Good Luck 

Link to comment
Share on other sites

On 15/08/2020 at 14:30, Realtimedoctor said:

Hi, 

I sometimes have exactly the same error as yours when using the hand controller to connect to the rpi. 

Try this, turn everything off. 

Turn the mount on first, before turning the rpi on. You should mane sure that the lights on your hand controller are on, before you turn on the rpi4. 

I've you've turned on the mount, turn on your rpi and try and connect. Hopefully that will solve the issue. 

Let me know if that works. 

Good Luck 

@Realtimedoctor Thanks for this, it didn't work sadly. I think it might be the cable I have got.

 

On 14/08/2020 at 18:52, JamesF said:

Another possibility is that the specific Prolific chipset in the serial converter is quite new and not supported in the Linux kernel that Astroberry is running.  It looks as though the driver for the model with a product ID of 23c3 may only have been written less than a year ago.  I'm clutching at straws a bit there though.

James

@JamesF I going to assume it's the cables communication with the RPi that is causing the issue, although its strange that it works on my Mac.

On 13/08/2020 at 23:06, Stuart1971 said:

Hi, it maybe due to the prolific chipset used on the serial to USB adapter, you really should use one with FTDI chipset, they are far more stable...and work very well with the RPI... 👍

The next option is to go for a USB adapter with an FTDI chipset. Could you recommend one from Amazon at all? That would be really helpful.

Again, thank you everyone. If the cable fixes it I will let everyone know incase someone else encounters this problem.

Link to comment
Share on other sites

48 minutes ago, lw2689 said:

@Realtimedoctor Thanks for this, it didn't work sadly. I think it might be the cable I have got.

 

@JamesF I going to assume it's the cables communication with the RPi that is causing the issue, although its strange that it works on my Mac.

The next option is to go for a USB adapter with an FTDI chipset. Could you recommend one from Amazon at all? That would be really helpful.

Again, thank you everyone. If the cable fixes it I will let everyone know incase someone else encounters this problem.

I would get a Startech branded one...👍

Here you go

https://www.amazon.co.uk/StarTech-com-USB-Serial-Adapter-Powered/dp/B004ZMYTYC/ref=sr_1_3?adgrpid=55904549511&dchild=1&gclid=Cj0KCQjwsuP5BRCoARIsAPtX_wH6hiV-rranhDw5Au-sb7W3SKaEGPX3wd1xQBpXAVDNK3NShQ9g7FAaArYtEALw_wcB&hvadid=259088528854&hvdev=c&hvlocphy=9046174&hvnetw=g&hvqmt=e&hvrand=16166493371384529509&hvtargid=kwd-307981973170&hydadcr=4424_1795160&keywords=startech+usb+to+serial&qid=1597611475&sr=8-3&tag=googhydr-21

Edited by Stuart1971
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.