Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
$ sudo apt-get install python2.7 python2.7-dev supervisor stunnel4 ntp
$ sudo pip install configobj pyzmq protobuf pyserial


Info

The pyzmq Python package requires a compiler and the Python development package (headers and library) to build a Python extension.


Serial devices

The AP Bridge software interacts with the I/O of the AP Mote through serial devices: The Serial API port of the AP Mote is used for general communication between the AP Bridge and the AP Mote, and another I/O is used to reset the AP mote.  In the  Include Page_def_usb_IPmgr_def_usb_IPmgr reference the DC2274 reference design, the reset line of the AP Mote is connected to the FTDI interface chip, such that writing to the TX line of the reset port sends a hardware reset to the AP Mote.  If the Linux system connects to the Serial API port directly, a GPIO is used to drive the AP mote reset line.

...

The update-apc-config.py script can also be used to perform manual configuration of the AP Bridge instances as described in the  Include Page_def_ip_vmgr_AP_UG_def_ip_vmgr_AP_UGVManager AP Bridge User's Guide

Startup and shutdown

In the reference software distribution for the Raspberry Pi, the AP Bridge is managed by the supervisor process controller. 

...

Refer to the commands section of the  Include Page_def_ip_vmgr_AP_UG_def_ip_vmgr_AP_UGVManager AP Bridge User's Guide for a complete list of available commands.

...

In the event that the VManager system and AP Bridges are not synchronized, the SmartMesh IP network will continue to work normally, however mapping network time to UTC time accurately may be impossible. 

GPS connectivity

A future version of the AP Bridge software will support The VManager 1.1 release provides support for using a GPS device for time keeping in the AP Bridge software. In the reference configuration for a GPS-enabled AP Bridge, the GPS device's PPS signal is used to feed both the AP Mote and the NTP software running on the AP Bridge device. The AP Bridge software uses GPSd to read the time from the GPS device and to track whether the GPS device is properly synchronized. 

TODO: describe how GPSd is configured, AP Bridge parameters to connect to GPSd

TODO: describe special configuration of NTP to enable GPS inputs, special configuration of RPi kernel to enable PPS GPIO

Troubleshooting

TODO: migrate troubleshooting to a new page

Verifying device time synchronization

...

No Format
$ ntpdate -q pool.ntp.org
...
25 Mar 14:09:49 ntpdate[12569]: step time server 132.163.4.101 offset -26.481737 sec


TODO: list the GPS verification steps

References

...