This is a console for interacting with Vodafone dongles.
Dependencies: mbed-rtos VodafoneUSBModem mbed
This is a bridge between a serial driven console and a serial driven cellular modem or modem interface. This was written to complement our collaboration with mbed: See https://mbed.org/users/mbed_official/code/VodafoneUSBModem/ for further information.
For example, one can use GNU screen or PuTTY (two popular consoles) to interact with a Vodafone K3770 USB dongle. In the image below I used the UNIX version of PuTTY:
Support is provided for line-based consoles, which send one line at a time, and for character based consoles.
For character based consoles, the following line-editing features are provided:
- In-line editing (deletion, left/right arrow keys, insertion)
- Command history (via up/down arrow keys)
Line buffer length, and command history depth, are compile-time options.
--
How to use:
Compile and save to mbed.
Connect PuTTY or GNU screen to serial port.
If you use GNU screen you probably already know what you are doing.
If you use PuTTY, you need to set the options to specify the serial device and, set the baud rate, and set the "Connection Type" to "Serial":
You need to set the keyboard to send Control-H for backspace, and use "Linux" function keys and keypad:
Revision 14:3f5fd1d95f5f, committed 2013-09-25
- Comitter:
- ashleymills
- Date:
- Wed Sep 25 08:43:19 2013 +0000
- Parent:
- 13:1e635f84412a
- Commit message:
- Updated dependencies.
Changed in this revision
diff -r 1e635f84412a -r 3f5fd1d95f5f VodafoneUSBModem.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/VodafoneUSBModem.lib Wed Sep 25 08:43:19 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/VodafoneUSBModem/#7b311719374d
diff -r 1e635f84412a -r 3f5fd1d95f5f VodafoneUSBModem_bleedingedge.lib --- a/VodafoneUSBModem_bleedingedge.lib Mon Mar 11 16:43:31 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/donatien/code/VodafoneUSBModem_bleedingedge/#adfd686297d6
diff -r 1e635f84412a -r 3f5fd1d95f5f main.cpp --- a/main.cpp Mon Mar 11 16:43:31 2013 +0000 +++ b/main.cpp Wed Sep 25 08:43:19 2013 +0000 @@ -5,7 +5,11 @@ DigitalOut myled(LED1); -void atConsoleWork(void const*) { +int main() { + DBG_INIT(); + DBG_SET_SPEED(115200); + DBG_SET_NEWLINE("\r\n"); + // create serial Serial term(USBTX, USBRX); term.baud(115200); @@ -26,11 +30,3 @@ Thread::wait(1); } } - -int main() { - DBG_INIT(); - DBG_SET_NEWLINE("\r\n"); - - Thread atConsoleTask(atConsoleWork, NULL, osPriorityNormal, 1024*6); - while(1) { Thread::wait(10000); } -}
diff -r 1e635f84412a -r 3f5fd1d95f5f mbed-rtos.lib --- a/mbed-rtos.lib Mon Mar 11 16:43:31 2013 +0000 +++ b/mbed-rtos.lib Wed Sep 25 08:43:19 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#53e6cccd8782 +http://mbed.org/users/mbed_official/code/mbed-rtos/#ee87e782d34f
diff -r 1e635f84412a -r 3f5fd1d95f5f mbed.lib --- a/mbed.lib Mon Mar 11 16:43:31 2013 +0000 +++ b/mbed.lib Wed Sep 25 08:43:19 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/#5e5da4a5990b +http://mbed.org/users/mbed_official/code/mbed/#a9913a65894f