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

Rewrite the sailtrack-x708_* scripts #29

Open
matteocarnelos opened this issue Mar 21, 2024 · 2 comments
Open

Rewrite the sailtrack-x708_* scripts #29

matteocarnelos opened this issue Mar 21, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@matteocarnelos
Copy link
Member

Currently, the sailtrack-x708_* scripts are written in bash. Consider moving to an other language for these scripts. This would make it easier to modify and debug, and it would make them more consistent with the other non-bash scripts.

@matteocarnelos matteocarnelos added the good first issue Good for newcomers label Mar 21, 2024
@Magform
Copy link
Member

Magform commented Mar 22, 2024

It seems also that we have some problem with GPIO pin, in particular reading the satuts of sailtrack-x708_pwr.service I've seen this.

root@sailtrack-core:/# systemctl status sailtrack-x708_pwr.service 
● sailtrack-x708_pwr.service - SailTrack-X708_PWR
     Loaded: loaded (/etc/systemd/system/sailtrack-x708_pwr.service; enabled; preset: enabled)
     Active: active (running) since Fri 2024-03-15 18:17:04 CET; 1h 23min ago
   Main PID: 279 (sailtrack-x708_)
      Tasks: 2 (limit: 1069)
        CPU: 10min 15.569s
     CGroup: /system.slice/sailtrack-x708_pwr.service
             ├─   279 /bin/bash /boot/sailtrack/sailtrack-x708_pwr
             └─119326 "[sailtrack-x708_]"

Mar 15 19:40:20 sailtrack-core sailtrack-x708_pwr[279]: /boot/sailtrack/sailtrack-x708_pwr: line 20: /sys/class/gpio/gpio5/value: No such file or directory

@Magform
Copy link
Member

Magform commented Mar 31, 2024

It seems also that we have some problem with GPIO pin, in particular reading the satuts of sailtrack-x708_pwr.service I've seen this.

root@sailtrack-core:/# systemctl status sailtrack-x708_pwr.service 
● sailtrack-x708_pwr.service - SailTrack-X708_PWR
     Loaded: loaded (/etc/systemd/system/sailtrack-x708_pwr.service; enabled; preset: enabled)
     Active: active (running) since Fri 2024-03-15 18:17:04 CET; 1h 23min ago
   Main PID: 279 (sailtrack-x708_)
      Tasks: 2 (limit: 1069)
        CPU: 10min 15.569s
     CGroup: /system.slice/sailtrack-x708_pwr.service
             ├─   279 /bin/bash /boot/sailtrack/sailtrack-x708_pwr
             └─119326 "[sailtrack-x708_]"

Mar 15 19:40:20 sailtrack-core sailtrack-x708_pwr[279]: /boot/sailtrack/sailtrack-x708_pwr: line 20: /sys/class/gpio/gpio5/value: No such file or directory

Upon further investigation, it seems this problem stems from a malfunction with the Geekworm X708 V2 shield. Despite the error message, the script itself appears to be functioning correctly.
To address this issue and ensure consistency, I'm currently developing a Python script to replace the existing bash script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants