Skip to content

Add Wake on LAN support to 10micron driver#2379

Merged
knro merged 1 commit into
indilib:masterfrom
fenriques:master
Apr 26, 2026
Merged

Add Wake on LAN support to 10micron driver#2379
knro merged 1 commit into
indilib:masterfrom
fenriques:master

Conversation

@fenriques
Copy link
Copy Markdown
Contributor

Summary

Adds Wake on LAN (WoL) functionality to the LX200_10MICRON driver, allowing users to power on a 10micron mount remotely before connecting.

Changes

  • drivers/telescope/lx200_10micron.h: Add WoLMacTP (text), WoLSendSP (switch) property declarations and sendWakeOnLanPacket() private method; add ISGetProperties override.
  • drivers/telescope/lx200_10micron.cpp:
    • New includes: <cerrno>, <netinet/in.h>, <sys/socket.h>, <unistd.h>
    • initProperties(): fills and loads (from saved config) the WoL MAC address and Wake button properties.
    • ISGetProperties(): defines both WoL properties last, so they appear at the bottom of the Connection tab.
    • ISNewText(): handles MAC address entry.
    • ISNewSwitch(): handles the Wake button, calls sendWakeOnLanPacket().
    • saveConfigItems(): persists the MAC address.
    • sendWakeOnLanPacket(): sends a standard 102-byte magic packet (6×0xFF + 16×MAC) via UDP broadcast to 255.255.255.255:9.

UI

Two new fields appear at the bottom of the Connection tab:

  • MAC Address: text input (e.g. AA:BB:CC:DD:EE:FF), persisted across sessions.
  • Wake Mount: button that sends the magic packet.

@knro knro merged commit 584b11f into indilib:master Apr 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants