×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Port is already used error

  • Posts: 969
  • Thank you received: 94

Replied by alacant on topic Port is already used error

[2021-06-15T14:55:53.109 CEST DEBG ][           org.kde.kstars.indi] - CCD Simulator : "[DEBUG] Toggle Debug Level -- Driver Debug "
[2021-06-15T14:55:53.112 CEST DEBG ][           org.kde.kstars.ekos] - "EQMod Mount"  is disconnected.
[2021-06-15T14:55:53.083 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-06-15T12:55:52: Client 9: new arrival from 127.0.0.1:34518 - welcome!"
[2021-06-15T14:55:53.083 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-06-15T12:55:53: Driver indi_simulator_ccd: snooping on EQMod Mount.EQUATORIAL_EOD_COORD"
[2021-06-15T14:55:53.083 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-06-15T12:55:53: Driver indi_simulator_ccd: snooping on EQMod Mount.TELESCOPE_INFO"
[2021-06-15T14:55:53.083 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-06-15T12:55:53: Driver indi_simulator_ccd: snooping on EQMod Mount.GEOGRAPHIC_COORD"
[2021-06-15T14:55:53.083 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2021-06-15T14:55:53.108 CEST INFO ][           org.kde.kstars.indi] - EQMod Mount :  "[ERROR] Failed to connect to port (/dev/serial/by-id/usb-Pegasus_Astro_EQDIR_v.1.2_PGB1MMQ-if00-port0). Error: Port failure Error: Not a directory. Check if device is connected to
[2021-06-15T14:55:53.113 CEST INFO ][           org.kde.kstars.ekos] - "EQMod Mount failed to connect.\nPlease ensure the device is connected and powered on."
2 years 10 months ago #72336

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

  • Posts: 18
  • Thank you received: 1
Thanks Steve, I was certain there was an issue here. I have played with udev rules but probably got the syntax wrong since the ttyUSBx permissions came out wrong. with your example I can most likely make it work. In frustration I removed the astroberry Pi this morning and have reverted to USB + Windows until I get this fixed.

However this is just a work around.  The issue needs a proper and definitive fix.  I saw that modemmanager grabbed ttyUSB0 as soon as it was created by plugging in my mount and then it seemed that gpsd enter the arena.  Reluctantly I removed the gpsd file from /etc/init.d but it still did not fix this issue.  I think it likely that this may well be a Raspberry Pi only problem since I know others who run Linux on other platforms and they do not seem to have this problem.

Question: Is there a command I can issue that will return the currently installed indi library? I think I have installed 1.9.0 but I'd like that confirmed. What's the magic command please?
Last edit: 2 years 10 months ago by Pete Ingram.
2 years 10 months ago #72337

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

  • Posts: 969
  • Thank you received: 94

Replied by alacant on topic Port is already used error

Hi
Not just a pi issue. This is with Ubuntu 20.04 on a Dell laptop. Same symptoms. The connection sometimes works, sometimes doesn't.

eqmod only. All other hardware connects fine first time..

To find the indi version just issue: indiserver
Cheers
2 years 10 months ago #72339

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

  • Posts: 1067
  • Thank you received: 140
Even with the workaround suggested by Steve, plugging thinks in one at a time, mine still does not work, I plug the mount in, and it’s connects, then the Pegasus UPB this does not connect and the mount then disconnected and neither will work, also I normally have the mount plugged into the UPB, but that is not an issue if I could get them both to connect….
The  mount connects to USB0 then the UPB searches USB1 can’t connect so try’s USB0 which is already being used, this then causes the mount to disconnect and back to square 1….
so have had to ditch the Mount EQMOD cable and use the Bluetooth dongle as that works, as it connects to rfcomm0 and the UPB connects to USB0…and all good…. No idea why this has happened as all was good three days ago before latest updates….
2 years 10 months ago #72340

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

  • Posts: 18
  • Thank you received: 1
@Steve, Whilst I hate these kind of bugs, in a way I am glad it is not just a Raspberry Pi problem. It now means that devs can use almost any architecture to find the problem. Thanks for the update.

@astronerd, I am using astroberry on a Pi4/8GB. Mine too used tp connect. Now it NEVER does no matter what I do.

I am sure a fix will come. These guys are good and know what they are about.

Pete
2 years 10 months ago #72341

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

  • Posts: 1067
  • Thank you received: 140
@pete
same set up as me, I also have Stellarmate and it’s the same on that too, and the serial port mapper does not work on there anymore, so can’t even use that….. :(
Last edit: 2 years 10 months ago by AstroNerd.
2 years 10 months ago #72343

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

  • Posts: 18
  • Thank you received: 1
So it's a bug then. Trust me a a neophyte astroberry user to trip right over it. AT least the bug is now out in the open and nobody is saying it is a user error. For that alone I am pleased.

On a related subject I issued "indiserver" and it says that I have "INDI Library: 1.8.9" I did "sudo apt upgrade && sudo apt update" and I still have 1.8.9. How can I get to 1.9.0 please?

Thanks again.
Pete
2 years 10 months ago #72344

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

  • Posts: 969
  • Thank you received: 94

Replied by alacant on topic Port is already used error

Hi everyone
I tested with the newest versions and working OK with the latest git:

~/Projects/indi$ git log
commit e5494e1c868720e1aa6451b74ab2c6aaba3bb831

~/Projects/indi-3rdparty$ git log
commit b77182ffc13372446d855bc8f42859648ad1793e

~/Projects/kstars$ git log
commit 286aea8cf8ad1a1981d2c6a404489bb0a23b2c6e

So you don't have to build everything, as well as the latest kstars, I tested with the stable kstars and the indi from git. Still worked OK.
HTH
The following user(s) said Thank You: AstroNerd
Last edit: 2 years 10 months ago by alacant.
2 years 10 months ago #72351

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

  • Posts: 1067
  • Thank you received: 140
@pete, you can’t using those commands until @radek upgrades the Astroberry PPA on his side….you will have to build INdI from source for the very latest…
2 years 10 months ago #72352

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

  • Posts: 18
  • Thank you received: 1
Ha! I though that is what you would say. I think I shall wait until radek updates the files. I cannot use astroberry with my rig right now anyway so I may as well wait for the fik and then new files. This is not a problem. Thank you for telling me. I have a LOT to learn here.

Pete
2 years 10 months ago #72353

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

  • Posts: 969
  • Thank you received: 94

Replied by alacant on topic Port is already used error

@Pete
Not sure if the is a temporary solution for you, but if you have a laptop running Linux it's easy to build the whole works from the ground up. On an old i3 it took us less than an hour.
Instructions here:
indilib.org/forum/general/210-howto-buil...st-libindi-ekos.html
Cheers,
Steve
 
The following user(s) said Thank You: Pete Ingram
2 years 10 months ago #72361

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

  • Posts: 18
  • Thank you received: 1
@Steve,

Thanks very much.. I actually downloaded kubuntu-20.04.2.0-desktop yesterday with the intent of putting that on an old Dell E6420 laptop I have here so you post was both timely and helpful.

For the next week I am reverting to Windows 10 since I have another laptop with a known and stable install on it and I really want to see the twinkly bits this weekend.

My end goal is to have the Pi 4/8GB back on the scope and working. That way I just VNC into it from anywhere. Yo see I am at the start of building my own Roll-off-roof observatory. Right no I have the concrete pad laid and this September I shall build the building. Right now I have a 1 hour drive to my pad so it is not too much hassle not to have the Pi on the scope.

I hope that radek posts an update fairly soon though.

Question: How will I know when he has done so? Will there be a form announcement or flash banner? Don't wanna miss it.

Again thank you for thinking of me and passing alone that information.
Pete
2 years 10 months ago #72362

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

Time to create page: 0.210 seconds