Source

gator /

Filename Size Date modified Message
TestConcurrency
debian
gator_controller
gator_programmer
gator_srvapi
gator_srvapi2
gator_webui
tests
347 B
1.4 KB
206 B
2.5 KB
282 B
172 B
1.5 KB
33 B
111 B
1.8 KB
2.1 KB
886 B
1. Udev configuration 

Sample udev rules to enumerate connected modems:

SUBSYSTEM=="tty", SUBSYSTEMS=="usb", KERNELS=="1-8.4.4:1.0", SYMLINK+="modem0"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", KERNELS=="1-8.4.3:1.0", SYMLINK+="modem1"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", KERNELS=="1-8.2:1.0", SYMLINK+="modem2"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", KERNELS=="1-8.1:1.0", SYMLINK+="modem3"

Plug in modems one by one in the order of their connections to TA adapters 
Run the following command to determine USB bus number of the modem just plugged in:

udevadm info --query=all --path `udevadm info --query=path --name /dev/ttyACM0`|grep DEVPATH

Where /dev/ttyACM* are device files which correspond to modems

Insert a corresponding part of DEVPATH into KERNELS as shown in the example above.
Name the file with a line for each modem, e.g. 70-acm-modems.rules, and place it in 

/etc/udev/rules.d/;

Then run:

udevadm trigger && udevadm settle

There must appear a symlink /dev/modem* for each line, that would point to the corresponding port 
(even after reboot), so you always have to connect each modem to the same port.

Use these symlinks as any conventional device files.

2. Compilation
-------------------------------------------------
1) Ensure libudev-dev is installed on development machine. If missing -- install it:
sudo apt-get install libudev-dev

2)In the directory where bootstrap is located, run:
	./bootstrap
	./configure

3) Run 'make'
This will produce two binary files:
	src/gator-prog
	src/gatorscrub-dial