PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 LK8000 International Support
 Developers
 Kobo - way to run script when NICKEL start
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sundancer
Pulcino

Czech Republic
34 Posts

Posted - 09/02/2016 :  08:00:38  Show Profile  Reply with Quote
Hello,
KOBO user/hacker here. Anyone know if its possible to run a .sh script only when NICKEL is started (to turn off external modules with commands to save battery)?

Right now I only know about possibility to run my scripts on KOBO start, placing them to X:\LK8000\kobo\ folder. But these are always.

brunotl
Pterodattilo

France
1090 Posts

Posted - 09/02/2016 :  10:17:01  Show Profile  Reply with Quote
2 Script can be used :
- "/mnt/onboard/LK8000/kobo/init_nickel.sh" is on Nickel Start
- "/mnt/onboard/LK8000/kobo/init.sh" on LK8000 Start
Go to Top of Page

sundancer
Pulcino

Czech Republic
34 Posts

Posted - 29/02/2016 :  22:40:03  Show Profile  Reply with Quote
I tested it on Kobo GLO. Anytime I use this script to access the /dev/ttymxc0 port to send a sleep command to bluefly vario or another insturment the kobo doesnt start the nickel and gets frozen. SDcard image must be rewritten to make it work again.

My script looks like:
sleep 10
stty ospeed 19200 ispeed 19200 -F /dev/ttymxc0
stty -F /dev/ttymxc0 raw
echo '$UNSLP*'>/dev/ttymxc0

(this is one versin of many I have tried)

Anyone tested using this script? Isnt that a bug?
Go to Top of Page

sundancer
Pulcino

Czech Republic
34 Posts

Posted - 23/03/2016 :  15:52:43  Show Profile  Reply with Quote
Retested on Kobi mini.
Still freezes even with new verion.
When I try to run KOBO (NICKEL) mode, the screen stays white and green icon keeps blinking. But nickel doesnt start.

I tried this with xcsoar and same script works well...
Go to Top of Page

brunotl
Pterodattilo

France
1090 Posts

Posted - 23/03/2016 :  17:51:45  Show Profile  Reply with Quote
i don't understand how that can work, "/dev/ttymxc0" is created after your script is launched ( it's same for LK & xcs )...

Go to Top of Page

Aleksandar
Falchetto

Yugoslavia
167 Posts

Posted - 03/11/2017 :  09:20:12  Show Profile  Visit Aleksandar's Homepage  Reply with Quote
Hello fellow,
I am not c++ programmer, I am in the database sector. I have Kobo and blue fly vario. For now I am interested for that theme and I will be grateful if someone can write me. How I can with that script write new configuration for BlueFlyVario?

Cheers.

Best regards,
Aleksandar Cirkovic
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.11 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy