Hi All,
I use Pi-3 as a very remote micro controller over VNC SSH connection and need the Nova modem to turn on automatically if pi reboot. The raspberry version I use is Jessie.
I tried to run sudo hologram modem connect through crontab, with file location /usr/local/bin/hologram but was not successfull.
see:
GNU nano 2.7.4 File: /tmp/crontab.8YooEa/crontab
daemon's notion of time and timezones.
Output of the crontab jobs (including errors) is sent through
email to the user the crontab file belongs to (unless redirected).
For example, you can run a backup of all your user accounts
at 5 a.m every week with:
0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
For more information see the manual pages of crontab(5) and cron(8)
m h dom mon dow command
@reboot sudo hologram modem connect /usr/local/bin/hologram.io
Will appreciate any suggestion / other approach , as I need to start the field trial as soon as possible
many thanks!
Nova modem is always powered after raspberry pi reboot (i.e. red led light). What I needed was for modem to connect to internet automatically after boot, so I can have remote access.
My solution was to use the following command on terminal:
sudo nano/etc/rc.local
then type the sudo command and full path before the exit 0 line:
sudo hologram modem connect& usr/bin/sudo
press C^ X
Save,
Only bug I have is:
need to run:
sudo hologram modem disconnect
prior to reboot otherwise the nova modem won’t connect, if I shut power off then turn it on, no problem with modem connection.
This is my goto article on how to start scripts on start. After many headaches I now only prefer Method 4: SYSTEMD.
If your Pi is power cycling quickly here is how I would debug.
Is the Pi getting adequate power? If not the issue might be brown outs. We recommend using a 5v2.4a power adaptor.
After reboot if the Nova is still connected but the SDK is not aware of it try running sudo hologram modem disconnect before running the connect command.
Scroll down and make the very last line of code whatever command or process you want to run.
For instance, I run a program that activates a GPIO program to listen for a button press and then it executes my program.
Example:
Log into your pi
enter password
In terminal type
sudo nano .bashrc
scrool to the very last line of code and enter your program file like so
sudo python /home/pi/button.py &
hit control X and then enter and BOOM, you’re in business baby.