Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Ext Teledyne Test #2

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Merge Ext Teledyne Test #2

wants to merge 15 commits into from

Conversation

derickcoder44
Copy link
Member

Tested Code on pi with modems connected (including all setup and autostart scripts) and everything seems to work fine

Changes:

  1. starts a service that runs modem_test_clam_shell.py
  2. connects to modem over serial and puts it into command mode (doesn't matter whether pi or modem boot up first)
  3. waits for pi to bootup and sends initial ping to charecterize modem connection
  4. sends a series of range commands with a set wait time between each range
  5. monitors serial connection entire time
  6. logs everything to a log file with the timestamp
  7. on user login runs a script that monitors and displays this log file
  8. wrote a setup script to move service and boot files into the right place

[TODO] need to work on closing the threads more gracefully in modem_test_clam_shell.py

having an issue with decoding the serial port
still having error making command instance
starts after modem boots
FEAT: added deep logging for every part of this test
TODO: closes threads non-gracefully (may need to look at using something
else for displaying output)
[TODO] need to test with live serial port
…aths

[FEAT] wrote setup.sh that make scripts executable and adds scripts into services to autostart modem test on boot and show log when user logs in
[FEAT] changed the order of timings to wait till pi fully boots up
[FEAT] made a bash script that runs the python script to display the logs
[FEAT] added basic instructions in README to setup autostart on a pi
[TODO] find a way to define the home directory in the service instead of explicitly writing it out
@derickcoder44 derickcoder44 self-assigned this Aug 18, 2024
Copy link

@oldstylejoe oldstylejoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me what you wrote and what came from teledyne. Since the code worked on the boat, I'd recommend merging the PR (after you fix the ds_store and pycache dust).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recommend to add .DS_Store and remove the .DS_Store files from the branch. Also, remove pycache from the commit.

Copy link

netlify bot commented Aug 30, 2024

Deploy Preview for teledyne-test ready!

Name Link
🔨 Latest commit db121c8
🔍 Latest deploy log https://app.netlify.com/sites/teledyne-test/deploys/66d65d37d946f9000890f085
😎 Deploy Preview https://deploy-preview-2--teledyne-test.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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