Debug: Database connection successful Utility / Meta New Mars / New Mars Forums

You are not logged in.

Announcement

Announcement: This forum is accepting new registrations via email. Please see Recruiting Topic for additional information. Write newmarsmember[at_symbol]gmail.com.
  1. Index
  2. » Meta New Mars
  3. » Utility

#1 2025-07-23 05:59:25

tahanson43206
Moderator
Registered: 2018-04-27
Posts: 24,475

Utility

This topic is available for temporary data transfer between different networks.

For example, if a NewMars member is at the library and wants to record a small amount of data for use later at home, this topic is available for a post to hold that data.

The post should be reset to "empty" after use. Please note that this does not mean the post should be deleted.

Please do not do that. It will create a pothole that will show up in the Pothole Report.  Instead, just clear all data from the post except for the word "empty".  This will reduce the burden of data storage provided by the Mars Society.

This topic is intended for temporary data storage for the convenience of members.

(th)

Offline

Like button can go here

#2 2025-07-23 06:01:00

tahanson43206
Moderator
Registered: 2018-04-27
Posts: 24,475

Offline

Like button can go here

#3 2025-11-02 08:54:01

tahanson43206
Moderator
Registered: 2018-04-27
Posts: 24,475

Re: Utility

This post is reserved for future use

Typee Island (A Different Perspective)

Received 2025/09/13
This viewing: 2026/01/05

Note:
Steve Carr 1949
Doc's Bar 1948

Overall impression: This book would surely be valued and appreciated by someone who had visited Tybee Island as at any age

At the same time, it can be valued and appreciated by anyone who has memories of visiting the ocean shore, anywhere in the world.

The flow is so natural, it took me a while to appreciate it.  From the opening scene of the light house, through the charming hostess at the Rock House Original Bar & Grill, this was a pleasure to experience.

I've been thinking about how to properly honor this book since the day it arrived.

In the community where I live, I advertised for anyone who might be interested in seeing a book about Typee Island or Georgia, and while I did turn up a resident from North Carolina, most folks here are from the Northern latitudes.

I wonder if a video/slide show might work in this environment.

Offline

Like button can go here

#4 2025-11-02 08:54:34

tahanson43206
Moderator
Registered: 2018-04-27
Posts: 24,475

Re: Utility

This post is reserved for future use

cat monitorUSB0-9600V01.py 
# ChatGPT-Monitor_USB0-V01.py 2026/03/15

import serial
import time
import string

PORT = "/dev/ttyUSB0"
BAUD = 9600

ser = serial.Serial(PORT, BAUD, timeout=1)

def to_hex(data):
    return ".".join(["%02X" % ord(ch) for ch in data])

def to_printable(data):
    out = []
    for ch in data:
        if ch in string.printable and ch not in "\r\n\t":
            out.append(ch)
        else:
            out.append(".")
    return "".join(out)

buffer = []

print "Monitoring", PORT, "at", BAUD
print "Waiting for CR-terminated packets  ."
print

while True:
    ch = ser.read(1)

    if not ch:
        continue

    if ch == "\r":
        packet = "".join(buffer)
        timestamp = time.strftime("%Y-%m-%d.%H:%M:%S")

        print "[%s]" % timestamp
        print "ASCII:", to_printable(packet)
        print "HEX  :", to_hex(packet)
        print "LEN  :", len(packet)
        print

        buffer = []
    else:
        buffer.append(ch)

python monitorUSB0-9600V01.py
Monitoring /dev/ttyUSB0 at 9600
Waiting for CR-terminated packets  .

[2026-03-17.02:04:47]
ASCII:
HEX  :
LEN  : 0

[2026-03-17.02:04:47]
ASCII: . #0 P1500 #1 P1821 #2 P1841 #3 P502 #4 P500 #5 P1500 #6 P1505 #7 P1506 T1000
HEX  : 0A.20.23.30.20.50.31.35.30.30.20.23.31.20.50.31.38.32.31.20.23.32.20.50.31.38.34.31.20.23.33.20.50.35.30.32.20.23.34.20.50.35.30.30.20.23.35.20.50.31.35.30.30.20.23.36.20.50.31.35.30.35.20.23.37.20.50.31.35.30.36.20.54.31.30.30.30
LEN  : 77

[2026-03-17.02:04:47]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:47]
ASCII: .#1:0
HEX  : 0A.23.31.3A.30
LEN  : 5

[2026-03-17.02:04:47]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:47]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:48]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:48]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:48]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:48]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:49]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:49]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:49]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:49]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:50]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:50]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:50]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:50]
ASCII: . #0 P1500 #1 P1821 #2 P1841 #3 P502 #4 P500 #5 P1500 #6 P1505 #7 P1506 T1000
HEX  : 0A.20.23.30.20.50.31.35.30.30.20.23.31.20.50.31.38.32.31.20.23.32.20.50.31.38.34.31.20.23.33.20.50.35.30.32.20.23.34.20.50.35.30.30.20.23.35.20.50.31.35.30.30.20.23.36.20.50.31.35.30.35.20.23.37.20.50.31.35.30.36.20.54.31.30.30.30
LEN  : 77

[2026-03-17.02:04:50]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:50]
ASCII: .#1:0
HEX  : 0A.23.31.3A.30
LEN  : 5

[2026-03-17.02:04:50]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:50]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:50]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:51]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:51]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:51]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:51]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:51]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:52]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:52]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:52]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:52]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:53]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:53]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:53]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:53]
ASCII: . #0 P1500 #1 P1821 #2 P1841 #3 P502 #4 P500 #5 P1500 #6 P1505 #7 P1506 T1000
HEX  : 0A.20.23.30.20.50.31.35.30.30.20.23.31.20.50.31.38.32.31.20.23.32.20.50.31.38.34.31.20.23.33.20.50.35.30.32.20.23.34.20.50.35.30.30.20.23.35.20.50.31.35.30.30.20.23.36.20.50.31.35.30.35.20.23.37.20.50.31.35.30.36.20.54.31.30.30.30
LEN  : 77

[2026-03-17.02:04:53]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:53]
ASCII: .#1:0
HEX  : 0A.23.31.3A.30
LEN  : 5

[2026-03-17.02:04:53]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:53]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:54]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:54]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:54]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:54]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:55]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:55]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:55]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:55]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:56]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:56]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:56]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:56]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:57]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:57]
ASCII: . #0 P1500 #1 P1821 #2 P1841 #3 P502 #4 P500 #5 P1500 #6 P1505 #7 P1506 T1000
HEX  : 0A.20.23.30.20.50.31.35.30.30.20.23.31.20.50.31.38.32.31.20.23.32.20.50.31.38.34.31.20.23.33.20.50.35.30.32.20.23.34.20.50.35.30.30.20.23.35.20.50.31.35.30.30.20.23.36.20.50.31.35.30.35.20.23.37.20.50.31.35.30.36.20.54.31.30.30.30
LEN  : 77

[2026-03-17.02:04:57]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:57]
ASCII: .#1:0
HEX  : 0A.23.31.3A.30
LEN  : 5

[2026-03-17.02:04:57]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:57]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

[2026-03-17.02:04:57]
ASCII: ..
HEX  : 0A.00
LEN  : 2

[2026-03-17.02:04:57]
ASCII: .AL BL CL DL EL FL VG VH
HEX  : 0A.41.4C.20.42.4C.20.43.4C.20.44.4C.20.45.4C.20.46.4C.20.56.47.20.56.48
LEN  : 24

^CTraceback (most recent call last):
  File "monitorUSB0-9600V01.py", line 31, in <module>
    ch = ser.read(1)
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 442, in read
    ready,_,_ = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt
pi@raspberrypi ~/raspberryPi2 $

https://www.earthcam.com/mountainwxman? … ge_parkway

Use the confirmed port and 9600 baud rate
bot = serial.Serial("/dev/ttyUSB1", 9600, timeout=1)

print "--- AL5D JOG UTILITY ---"
print "Enter 0 to Exit"

while True:
----try:
--------user_input = raw_input("\nNext Move (Ch Pulse): ")
--------if user_input == "0":
------------break

--------parts = user_input.split()
--------if len(parts) != 2:
------------print "Use: channel pulse"
------------continue

--------ch = int(parts[0])
--------pw = int(parts[1])

--------# Safety limits
--------if pw < 500: pw = 500
--------if pw > 2500: pw = 2500

--------# Build the SSC-32U command
--------cmd = "#" + str(ch) + "P" + str(pw) + "T1000\r"
--------bot.write(cmd)

--------# Query for completion
--------while True:
------------bot.write("Q\r")
------------if bot.read(1) == ".":
----------------break
------------time.sleep(0.05)
--------print "Done."

----except Exception as e:
--------print "Error: " + str(e)

bot.close()
# ssc32u_handshake.py
import serial
import time

# Identify the port connected to the SSC-32U
# On the RP2, this is typically /dev/ttyUSB1
robot_port = "/dev/ttyUSB1" try:
....bot = serial.Serial(robot_port, 115200, timeout=1)
....print "Connected to port: " + robot_port
....
....# Step 1: Send the Version Query to the SSC-32U
....print "Querying SSC-32U for Version..."
....bot.write("VER\r")
....
....# Give the board a millisecond to breathe
....time.sleep(0.1)
....
....# Step 2: Read the response
....response = bot.readline().strip()
....
....if response:
........print "SUCCESS! SSC-32U Reports: " + response
....else:
........print "FAILURE: No response from SSC-32U. Check power/cable."
........
except Exception as e:
....print "ERROR: Could not open serial port: " + str(e)

Offline

Like button can go here

  1. Index
  2. » Meta New Mars
  3. » Utility

Board footer

Powered by FluxBB