Serial Communication with a PC issue??

17 May 2010 . Edited: 17 May 2010

To Whom It May Concern,

I am new to mbed. I have some doubt about this topic. Is there anyone done this before?

The mbed hardware connection as the image below.

First, I try to implement this topic in both Windows XP SP3 and Vista. However, it does not work like "http://mbed.org/handbook/SerialPC".

In terms of Windows XP SP3,

I download the driver "mbedWinSerial_16466.exe" first, and then install it.

The first error I encountered as below.

driver install error message

Then, I download Terminal Applications which is "Tera Term"(http://sourceforge.jp/projects/ttssh2/downloads/46035/teraterm-4.65.exe/), and then install it. After completely install it, then I run it.

 

Meanwhile I compile the code as below, and then copy the binary file into mbed, and push the reset button.

#include "mbed.h"

Serial pc(USBTX, USBRX); // tx, rx

int main() {
    pc.printf("Hello World!\n");
}

You know. Nothing happens!!

After that, I try it again in Ubuntu Linux. It does not work either.

 

Thank you for any help you can give me.

17 May 2010 . Edited: 17 May 2010

Hi,

I suspect the issue is a corrupted download of the serial installer, and that you were using Internet Explorer to download it. It seems like this happens occasionally, as we've had a number of reports (see http://mbed.org/forum/mbed/topic/237/) of the same problem. The solution is to download with another browser (e.g. Firefox or Chrome).

I initially thought we may have something wrong our end, but a quick google shows this pretty high on iTunes and Skype FAQs too, so looks like it is more a general Internet Explorer quirk. Still, I'll attempt to find a workaround/solution as it is very annoying.

I hope this gets you up and running, and sorry for the problems.

Simon

18 May 2010

Hi Simon Ford,

Thank you for your help. I have some doubt about this driver "mbedWinSerial_16466.exe". I thought it is only for Windows. Do I need to install it before I associate with Ubuntu Linux?

From this page,"http://mbed.org/handbook/SerialPC", it shows

"Your mbed Microcontroller can appear on your computer as a serial port. On Mac and Linux, this will happen by default. For Windows, you need to install a driver: "

If it will happen by default, how come I can not talk to Ubuntu Linux via mbed? What is wrong with that?

Could you please give some idea about how to talk to Ubuntu Linux in this case? Thank you so much.

18 May 2010

Hi~Simon,

I would like to say sorry to you. My bad. I did not see it before I reply you.

The answer is as below.

http://mbed.org/forum/helloworld/topic/753/?page=1#comment-3712

Mac/Linux Users

1. Install a Terminal Application

If you do not already have it, install GNU Screen

2. Setup the Connection

  • Connect using screen by typing the command screen /dev/<devicename> in your console window
    • To find the device name of your mbed Serial Port, see Serial PC Host Interface Section
    • To exit screen, press Ctrl-A, then ":quit"

 

Just in case,

It works by typing the command screen /dev/ttyACM0.

 

Anyway, thank you so much.