Wild ducks project/Testing
How to make a phone call using AT commands
This is the basic information you need to follow to make a phone call using the modem, a PC with Tera Term windows. We are presenting that in the following format:
- Q: for AT command Query
- A: for AT command Answers
- Test AT commands working
- Q: AT
- A: OK
- Check network registration status
- Q: AT+CREG=?
- A: +CREG: (0-2)
- A: OK
- Register on the network
- Q: AT+CREG=1
- A: OK
- Make a phone call (XXXX to be replaced by appropriate numbers)
- Q: ATD0777137XXXX;
- A: OK
- Hang up the call
- Q: ATH
- A: OK
Basic JTAG support for the BeagleBoard can be achieved through several inexpensive interfaces. At the SF we have chosen the Flyswatter from TinCan Tools, since it offers also support for the UART1 serial port of the BeagleBoard (which normally spits out booting details as well as basic console once the Kernel has booted).
The diagram below shows the connection/system architecture of the debug environment.
- Flyswatter This board is based on the FTDI 232D IC, which combines two physical interfaces as a single USB interface (composite device) to the PC. In reality is two serial ports, Serial A is dedicated to JTAG with some additional circuitry where Serial B is RS232 native. This is where things get a bit complicated, since we will need to install 2 different drivers on the PC side to obtain full support. And it is a bit tricky as we'll see later.
- Open OCD is the result of a diploma thesis by Dominic Rath and it has been widely adopted. You can read more here. Basically it is a daemon that communicates with the JTAG compliant TAPs of the devices under test. By opening a Telnet session to port 4444 you can interact with the HW and perform some basic debugging functions. Additionally, it supports GDB commands over a session on port 3333, and this is the main feature that we ill exploit
Downloading the files
So far we have only focused on PC environments (apologies) but Open OCD is available in source and you can potenttially build it for any paltform. Yagarto and Freddi Chopin are two very good sites for ready-built Open OCD distributions.
I have used Freddie's site since it also offers the JTAG section driver for the Flyswatter guaranteed to work with his Open OCD windows release.
- Step1 get the FTDI Drivers from here
- Step2 get the Open OCD (includes the FTDI drivers for JTAG) from here
Installing the drivers
- WARNING -- The date/version of the FTDI drivers (Step1) need to be rolled back in order to be able to install the JTAG driver
To do so, you need to unzip the driver to a temp location, you will see a folder named CDM 2.06.00 WHQL Certified, edit the [Version] section of the ftdibus.inf file as below
DriverVer=10/22/2009,2.06.00 Change this to 07/06/2009,2.0.0 (no particular reason for the chosen date/version, most likely many other combinations will work but we only tested this one)
- Now plug in the Flyswatter to the PC and when prompted for the driver location (manual selection) point to the location of the modified ftdibus.inf
- From Step2 install the package for Open OCD and navigate to the Drivers folder where it has installed, and unzip "Lib2xx" (TBC) in the same folder
- Now go into the device manager, under the USB section you should see 2 instances for a USB Serial interface. Uninstall USB Serial A, wait a few seconds, unplug the Flyswatter and plug it again. You should be prompted for the drivers for USB Serial A, and now point to the location where Lib2xx was extracted to. After installation you should now see a different USB device in the list by the name of "xxxxx". Voila, you're done!
- If you still have problems call Arnaud on 0774567889 and he will resolve all your problems :-)