domodom
Home page > mini6410 > How to use the rs232 port (DB9 connector).

How to use the rs232 port (DB9 connector).

Wednesday 6 October 2010, by Dom

The COM1 serial port is not working with the Windows CE 6.0 BSP of the mini6410 board, it is written in the chinese documentation.

To be honest, i didn’t try to find why, i guess this serial port is used for debug somewhere in the BSP.

Whatever, a solution to go around this problem is to switch the physical serial port connected to the COM1 logical serial port. This configuration is in the registry (\WINCE600\PLATFORM\SMDK6410\FILES\platform.reg file), where you just have to replace :

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial0]
"DeviceArrayIndex"=dword:0
"Index"=dword:1
"Port"="COM1:"

by :

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial0]
"DeviceArrayIndex"=dword:1
"Index"=dword:2
"Port"="COM2:"

and

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
"DeviceArrayIndex"=dword:1
"Index"=dword:2
"Port"="COM2:"

by :

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
"DeviceArrayIndex"=dword:0
"Index"=dword:1
"Port"="COM1:"

After the kernel generation, it is possible to access to the serial port with the "COM2:" logical name. For example, in a C++ source code :

CreateFile(TEXT("COM2:"), GENERIC_READ | GENERIC_WRITE, 0 , NULL, OPEN_EXISTING, 0, NULL);

Be carefull, you have to use a crossed cable between the mini6410 and your computer (not the regular cable used for the mini2440, it would be too easy... ;o) A good mean to verify your cable is to check the reception of the data send by the Superboot bootloader when booting from a SD Card (see following article)

2 Forum messages

  • How to use the rs232 port (DB9 connector). 6 February 2011 18:52, by zindandelen

    Hi domodom;

    I’m sorry my english.

    I use this configuration then win ce does not boot. And rollback changes then win ce boot successfuly. Do you have any idea about this?

    Thank you so much.

    • How to use the rs232 port (DB9 connector). 8 February 2011 13:47, by Dom

      Hello,
      I don’t see a reason why it wouldn’t boot, are you sure you didn’t make a mistake somewhere else ?
      When you see it doensn’ boot, what do you see ? Is there data on one one the other serials ports ?

SPIP | Contact me | | Site Map | Follow-up of the site's activity RSS 2.0      Version Française | English version