I’m looking at the Hologram commands and do not see a simple way to get the current time. This would be nice if my pi reboots.
My Pi does not have a Real Time Clock so it would be nice to pull the current time from my cellular connection. I am using Hologram Nova and have the SDK installed. I can successfully send messages to my dashboard and route them.
I used dmesg and it appears that I can see the tty which the modem is being assigned to:
[ 9.455987] usb 1-1.2: New USB device found, idVendor=1546, idProduct=1102
[ 9.455995] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9.456000] usb 1-1.2: Product: u-blox Wireless Module
[ 9.456003] usb 1-1.2: Manufacturer: u-blox
[ 9.456007] usb 1-1.2: SerialNumber: 358887093407490
[ 9.501464] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
[ 9.504178] cdc_acm 1-1.2:1.2: ttyACM1: USB ACM device
[ 9.506608] cdc_acm 1-1.2:1.4: ttyACM2: USB ACM device
[ 9.508719] cdc_acm 1-1.2:1.6: ttyACM3: USB ACM device
[ 9.510830] cdc_acm 1-1.2:1.8: ttyACM4: USB ACM device
[ 9.514155] cdc_acm 1-1.2:1.10: ttyACM5: USB ACM device
[ 9.516553] cdc_acm 1-1.2:1.12: ttyACM6: USB ACM device
When I cat’ed it the first time it seemed like ttyACM0 had some timestamps in it but ever since I did that I am not getting anything out of the tty’s. Still learning about Linux…
Any suggestions would be appreciated!