Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Install mbed Windows Drivers
Make sure you installed the drivers on your windows PC to get the virtual serial port. A installation guideline and the drivers can be found in the following wiki page. /handbook/Windows-serial-configuration
Revision 0:53fc79c7af10, committed 2013-10-22
- Comitter:
- mazgch
- Date:
- Tue Oct 22 21:22:05 2013 +0000
- Child:
- 1:7334dcb895d0
- Commit message:
- Simple transparent serial port to the cellular modem,
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C027.lib Tue Oct 22 21:22:05 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/ublox/code/C027/#7f910a8e77ee
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Oct 22 21:22:05 2013 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "C027_PinNames.h"
+
+int main()
+{
+ // open the mdm serial port
+ Serial mdm(MDMTXD, MDMRXD);
+ mdm.baud(MDMBAUD);
+ // tell the modem that we can always receive data
+ DigitalOut mdmRts(MDMTRTS);
+ mdmRts = 0; // (not using flow control)
+
+ // open the PC serial port and (use the same baudrate)
+ Serial pc(USBTX, USBRX);
+ pc.baud(MDMBAUD);
+
+ while (1)
+ {
+ // transfer data from pc to modem
+ if (pc.readable() && mdm.writeable())
+ mdm.putc(pc.getc());
+ // transfer data from modem to pc
+ if (mdm.readable() && pc.writeable())
+ pc.putc(mdm.getc());
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Oct 22 21:22:05 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file