Command List for FocusCube 3

Device exposes a USB to Serial COM port:

Manufacturer: PegasusAstro

Product: FocusCube3

VID: 303a

PID: 9000

Connection Settings: 115200, 8N1 (DTR on)

(All commands should be terminated with a new line /n)

Send: F# or ##
Receive: FC3_{ID}_A

Explanation: Displays device unique identification. The id is an 8 byte char. The last char , e.g A. is the revision of the electronic board.

Send: FA
Receive: FC3:{position}:{is_running}:{temperature}:{direction}:{backlash}

FC3 = Identification of FocusCube3.
position: Position in steps.
is_running: Motor is running [0 or 1].
temperature: Ambient temperature (external temperature sensor)
direction: Motor direction. 0 = normal, 1 = reverse
backlash: Motor Backlash Compensation value

To set the speed:
Send: SP:{speed}. [e.g FS:400]

Receive: SP:{speed}

To get the speed:

Send:SP

Receive: SP:{speed}

Explanation: Sets and reports motor max speed. Speed is an unsigned integer

Setting is stored in memory and retreived on device boot

Send: BL
Receive: {backlash_value}

Explanation: Set motor backlash. {backlash_value} can get values from 0 to 1000.

0 = Backlash Conpensation OFF

Setting is stored in memory and retreived on device boot

Send: FM:{steps}
Receive: FM:{steps}

Explanation: Move rotator’s motor in absolute steps. {steps are unsigned int32}.

Send: FG:{steps}
Receive: FG:{steps}

Explanation: Move rotator’s motor in relative steps from current position. {steps are signed int32}.

Send: FD:{boolean}
Receive: FD:{boolean}

Explanation: Motor direction: 0 = normal, 1 = reverse.

Setting is stored in memory and retreived on device boot

Send: FH
Receive: FH:1

Explanation: Halt motor.

Send: FN:{steps}
Receive: FN:{steps}

Explanation: Sync position to new step value. Motor does not move, it only syncs its position to this number.

{steps} is unsigned int32.

Send: FT
Receive: FT:{temperature}

Explanation: Reports sensor temperature in degrees Celsius. {temperature} is a double value.

Send:FV
Receive: FV:{firmware_major.firmware_minor:device_revision}

Explanation: Reports firmware version that is a string with major, minor and device revision. firmware version e.g 1.4.1

Send: FI
Receive: FI:{ismoving}

Explanation: Report if motor is moving. {ismoving} is an integer. 0 = idle, 1 = is moving.

Send: FU
Receive: FU:{uptime}

Explanation: Shows uptime of device in seconds. {uptime is an unsigned int32}

Send: FQ
Receive: no output

Explanation: Device reboots , firmware reloads.

Send: EF
Receive: EF:1

Explanation: Zero fill FRAM. Motor position settings are cleared.

Send: EE
Receive: EE:1

Explanation: Reset to default all rotator’s settings.

Send: WS

Receive: {ssid_name},{signal_strength},{encryption_type} : {ssid_name},{signal_strength},{encryption_type} : ….

Explanation: Lists top ten in signal strength available WiFI networks in the area.

Send: WN:{network_name}
Receive: {network_name}

Explanation: Set Network Name of WIFi Client.

Send: WP:{client_password}

Receive: {client_password}

Explanation: Set Client Password. Should be >=8 chars.

When device receives a client password , it uses the cliend SSID and tries to set the WiFi connection. If connection is not successful it will try every 10 seconds.

Send: AN:{ap_name}

Receive: {ap_name}

Explanation: Set Access Point Name.

Send: AP:{ap_password}

Receive: {ap_password}

Explanation: Set Access Point Password. When device receives an AP password it uses AP Name and password to configure the Access Point (Hotspot).

Send: AL

Receive: {ap_name:ap_password}

Explanation: Display configured access point (hotspot) SSID name and password.

Send: AE:{boolean}
Receive: {boolean}

Explanation: Enable or Disable Access Point (hotspot). 0 = disable, 1 = enable

Send: A?

Receive: {ap_status}

Explanation: Reports if Access Point (hotspot) is enables or disabled. 0 = disabled , 1 = enabled

Get Channel:
Send: AC
Receive: {channel}

Explanation: Reports configured access point channel.

Set Channel

Send: AC:{channel}

Receive: {channel}

Explanation: Sets the access point channel. Can accept a {channel} from 1 to 11.

Send: WA

Receive: {wifi_ssid}:{wifi_ip}:{encryption_type}:{signal_strength}

Explanation: Reports WiFi information of client connected to WiFi SSID.
{wifi_ssid} is the SSID network that the client is connected to
{wifi_ip} is the assigned DHCP ip that client has
{encryption_type} is the security encryption of network. It is an interger and number 3 represents WPA2 security.
{signal_strengh) is the signal quality in percentage 0-100%.

Send: WZ

Receive: 1

Explanation: Resets all WiFi settings back to factory default.