×

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

Bi-monthly release with minor bug fixes and improvements

tty and RULES.D

  • Posts: 389
  • Thank you received: 15

tty and RULES.D was created by John Robison

Hello,

I am attempting replicate Stellermate's Serial Port Mapper Tools functionality. I have been using RULES.D to manage lasor focused device to Port access for IRQ hungry devices. GPS dongle on ttyACM0 and AstroEQ on tty ACM1 worked well. In another discussion of mine, I was directed to a thread on the Serial Port Mapper. This is nothing more than a tool front end to the Rules.d fun. Well, in the spirit of Serial Port Mapper, I set SIMLINK to UBGPS and SIMLINK to EQMOUNT for the GPS and AstroEQ. Upon boot, UBGPS is hard wired to ACM1 and AstroEQ is hardwired to ACM0.

No problem? Yes. Problem is that AstroEQ (used to be on ACM0) is on ACM0. EQMOD does not like ACM0.

[ERROR] Error: Communication failed -> tty read failed, check connection ; Timeout error.

What needs to happen in the RULES.D to set up a better SYMLINK to ACM0?
4 years 6 months ago #43879

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

  • Posts: 389
  • Thank you received: 15

Replied by John Robison on topic tty and RULES.D

Hello,

After multiple iterations with RULES, I have come to the conclusion that RULES are not the answer. Something is up with AstroBerry and EQMOD. The OS has no problems with assigning ACMO to the AstroEQ and ACM1 to the GPS. I have 4 other devices that do not need ACM0 or ACM1.

EQMOD has a big conflict with the OS. It is fixated on ACM1. ACM0 will not do. This looks like a corrupted XML file I think I will blow it away by copying it first then destruction. I loose configuration and horizon info. But something is not right. My udevadmn output says everything OS is good.

File Attachment:

File Name: U-bloxoutput.txt
File Size:6 KB

File Attachment:

File Name: EQMOUNToutput.txt
File Size:6 KB

File Attachment:

File Name: AstroEQoutput.txt
File Size:6 KB
4 years 6 months ago #43888
Attachments:

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

  • Posts: 389
  • Thank you received: 15

Replied by John Robison on topic tty and RULES.D

Hello

Here are the EQMOD discussions in the log for my current session..

[2019-09-26T09:26:38.421 EDT DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2019-09-26T09:26:38.422 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < CONNECTION_MODE >
[2019-09-26T09:26:38.424 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < DEVICE_PORT >
[2019-09-26T09:26:38.427 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] ProcessTextProperties - name(DEVICE_PORT) "
[2019-09-26T09:26:38.428 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < DEVICE_BAUD_RATE >
[2019-09-26T09:26:38.430 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < DEVICE_AUTO_SEARCH >
[2019-09-26T09:26:38.430 EDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-09-26T13:26:38: Driver indi_qhy_ccd: QHYCCD|QHYCCD.CPP|CamManagerThread| numdev = 0"
[2019-09-26T09:26:38.431 EDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-09-26T13:26:38: Driver indi_qhy_ccd: QHYCCD|QHYCCD.CPP|CheckLIBUSB|CheckLIBUSB ndev=7"
[2019-09-26T09:26:38.431 EDT DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2019-09-26T09:26:38.433 EDT INFO ][ org.kde.kstars.indi] - EQMod Mount : "[INFO] Auo search is disabled. "
[2019-09-26T09:26:38.434 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < DEVICE_PORT_SCAN >
[2019-09-26T09:26:38.437 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < SYSTEM_PORTS >
[2019-09-26T09:26:38.440 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] ProcessTextProperties - name(DEVICE_PORT) "
[2019-09-26T09:26:38.440 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] Auto search is disabled because /dev/EQMOUNT is not a system port. "
[2019-09-26T09:26:38.441 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < SYSTEM_PORTS >
[2019-09-26T09:26:38.443 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < ACTIVE_DEVICES >
[2019-09-26T09:26:38.452 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] ProcessTextProperties - name(ACTIVE_DEVICES) "
[2019-09-26T09:26:38.452 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < DOME_POLICY >
[2019-09-26T09:26:38.455 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] Active Snoop, driver: Dome Simulator, property: DOME_PARK "
[2019-09-26T09:26:38.455 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < TELESCOPE_INFO >
[2019-09-26T09:26:38.462 EDT DEBG ][ org.kde.kstars.indi] - < EQMod Mount >: < SCOPE_CONFIG_NAME >
[2019-09-26T09:26:38.471 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] ProcessTextProperties - name(ACTIVE_DEVICES) "

[2019-09-26T09:26:38.624 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] ProcessTextProperties - name(ACTIVE_DEVICES) "
[2019-09-26T09:26:38.626 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] Connecting to /dev/EQMOUNT @ 9600 "
[2019-09-26T09:26:38.626 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] Port FD 3 "
[2019-09-26T09:26:38.626 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] Connection successful, attempting handshake... "
[2019-09-26T09:26:38.627 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":e1\", 4 bytes written "

[2019-09-26T09:26:42.868 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2019-09-26T09:26:42.868 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":e1\", 4 bytes written "

[2019-09-26T09:26:47.877 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2019-09-26T09:26:47.877 EDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":e1\", 4 bytes written "

[2019-09-26T09:26:52.837 EDT INFO ][ org.kde.kstars.indi] - EQMod Mount : "[ERROR] Error: Communication failed -> tty read failed, check connection: Timeout error "
[2019-09-26T09:26:52.837 EDT DEBG ][ org.kde.kstars.ekos] - EQMod Mount is disconnected.
[2019-09-26T09:26:52.837 EDT INFO ][ org.kde.kstars.ekos] - "EQMod Mount is disconnected."


Since, the logs do not confirm what was received, the error could mean nothing was received or a different handshake response. When I explicitly had AstroEQ on ACM1 and GPS on ACM0, everything worked. Now, that I moved to the gracious OS, I now see a difference between ACM0 and ACM1.

ALSO: EKOS is missing Minimize and Fullscreen buttons on the window. EKOS must be shutdown and reopened. S and R must be done to read the INDI page.
4 years 6 months ago #43889

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

  • Posts: 389
  • Thank you received: 15

Replied by John Robison on topic tty and RULES.D

Hello.

Case closed. The issue was not enough power to the ASTROEQ. When I plugged the 12V power, EKOS and EQMOD began to work.

The annoying EKOS S and R isn't fixed bacause of power being added. I will put this in my wish list. Somehow, the buttons disappeared.
4 years 6 months ago #43890

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

Moderators: Radek Kaczorek
Time to create page: 0.818 seconds