RPC over USB serial testing step by step

Dependencies:   mbed-rpc mbed

RPC over usbserial testing with python step by step ( tested on KL25Z on 29 Aug 2013).

1. Get start - mBed firmware installation.

mBed firmware.

http://mbed.org/media/uploads/samux/mbed_if_v2.0_frdm_kl25z.s19

2. Install RPC_USBSerial into KL25Z.

  • Register into mbed.org;
  • Select platform KL25Z in compiler;
  • Import program, Compile, download RPC_USBSerial.bin to PC;
  • Save RPC_USBSerial_KL25Z.bin to MBED drive;

3. Install mbed usbserial driver to PC.

  • Serial Communication with a PC;

http://mbed.org/handbook/SerialPC;

  • Windows serial configuration.

http://mbed.org/handbook/Windows-serial-configuration

Find COM Port name at:

  • Control Panel
  • > Syetem
  • > Hardware
  • > Device Manager
  • > Ports(COM & LPT)
  • > Mbed Virtual Serial Port(COM?) (My one is "COM11" in picture below)

/media/uploads/jooter/mbed_virtual_serial_port.png

4. Install Python and Pyserial

5. Have fun.

  • Modify Port number in serial_raw_rpc_test.py.txt
  • Copy/Paste from serial_raw_rpc_test.py.txt to python (command line);
  • Copy and run one line at a time to have real fun;

:)

Committer:
jooter
Date:
Thu Aug 29 00:09:41 2013 +0000
Revision:
0:b8cfe8c7e985
RPC over USB serial  testing step by step

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jooter 0:b8cfe8c7e985 1
jooter 0:b8cfe8c7e985 2 KL25Z RPC testing step by step
jooter 0:b8cfe8c7e985 3
jooter 0:b8cfe8c7e985 4 Get start - mBed firmware installation
jooter 0:b8cfe8c7e985 5 http://mbed.org/platforms/KL25Z/
jooter 0:b8cfe8c7e985 6
jooter 0:b8cfe8c7e985 7 mBed firmware
jooter 0:b8cfe8c7e985 8 http://mbed.org/media/uploads/samux/mbed_if_v2.0_frdm_kl25z.s19
jooter 0:b8cfe8c7e985 9
jooter 0:b8cfe8c7e985 10
jooter 0:b8cfe8c7e985 11
jooter 0:b8cfe8c7e985 12 Install RPC_USBSerial into KL25Z
jooter 0:b8cfe8c7e985 13 Register into mbed.org;
jooter 0:b8cfe8c7e985 14 Select platform KL25Z in compiler;
jooter 0:b8cfe8c7e985 15 Import program, Compile, download RPC_USBSerial.bin to PC;
jooter 0:b8cfe8c7e985 16 Save RPC_USBSerial.bin to MBED drive;
jooter 0:b8cfe8c7e985 17
jooter 0:b8cfe8c7e985 18
jooter 0:b8cfe8c7e985 19 Serial Communication with a PC
jooter 0:b8cfe8c7e985 20 http://mbed.org/handbook/SerialPC
jooter 0:b8cfe8c7e985 21
jooter 0:b8cfe8c7e985 22
jooter 0:b8cfe8c7e985 23
jooter 0:b8cfe8c7e985 24 Windows serial configuration
jooter 0:b8cfe8c7e985 25 http://mbed.org/handbook/Windows-serial-configuration
jooter 0:b8cfe8c7e985 26
jooter 0:b8cfe8c7e985 27
jooter 0:b8cfe8c7e985 28 Find COM Port number, "COM?", at:
jooter 0:b8cfe8c7e985 29 Control Panel > Syetem > Hardware > Device Manager > Ports(COM & LPT) > Mbed Virtual Serial Port(COM?)
jooter 0:b8cfe8c7e985 30
jooter 0:b8cfe8c7e985 31
jooter 0:b8cfe8c7e985 32 install python 2.7
jooter 0:b8cfe8c7e985 33 install pyserial http://sourceforge.net/projects/pyserial/files/pyserial/2.5/pyserial-2.5.win32.exe/download
jooter 0:b8cfe8c7e985 34
jooter 0:b8cfe8c7e985 35
jooter 0:b8cfe8c7e985 36 Copy/Paste from serial_raw_rpc_test.py.txt to python command line terminal