{"id":223,"date":"2009-10-22T10:28:19","date_gmt":"2009-10-22T08:28:19","guid":{"rendered":"http:\/\/www.hjgode.de\/wp\/?p=223"},"modified":"2021-02-13T07:13:29","modified_gmt":"2021-02-13T05:13:29","slug":"windows-mobile-install-ftdi_ser-serial-to-usb-adapter","status":"publish","type":"post","link":"http:\/\/www.hjgode.de\/wp\/2009\/10\/22\/windows-mobile-install-ftdi_ser-serial-to-usb-adapter\/","title":{"rendered":"Windows Mobile: Install FTDI_SER serial to USB adapter"},"content":{"rendered":"<p>Sometime you may need additional serial connectors for your windows mobile device. Here is the odyssey I had with a FTDI adapter:<\/p>\n<h4>How I installed a FTDI serial to USB adapter within ITC CN50 running Windows Mobile 6.1.<\/h4>\n<p>Although the USB to Serial adapters with FTDI chips can be installed with drivers from <a title=\"FTDI driver downloads\" href=\"http:\/\/www.ftdichip.com\/Drivers\/VCP.htm\" target=\"_blank\" rel=\"noopener\">FTDI<\/a>, these will not work out of the box with WM6.1.<\/p>\n<h2><!--more-->Initial Test with CN50<\/h2>\n<p>First I copied the Armv4 driver files ftdi_ser.dll and FTDIPORT.INF to \\Windows on the device.<\/p>\n<p>Inserted a Micro USB\/B to USB A host connector (<a title=\"Digikey H11576-ND\" href=\"http:\/\/parts.digikey.com\/1\/parts\/1415796-cable-micro-usb-a-std-a-0-075m-zx40-a-5s-75-stdaj.html\" target=\"_blank\" rel=\"noopener\">Digikey H11576-ND<\/a>)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-224\" title=\"micro-usb-adapter\" src=\"http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/micro-usb-adapter.jpg\" alt=\"micro-usb-adapter\" width=\"160\" height=\"160\" srcset=\"http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/micro-usb-adapter.jpg 160w, http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/micro-usb-adapter-150x150.jpg 150w\" sizes=\"(max-width: 160px) 100vw, 160px\" \/><\/p>\n<p>Inserted the USB2SER adapter &#8220;<a href=\"http:\/\/www.ftdichip.com\/Products\/EvaluationKits\/US232R-10.htm\" target=\"_blank\" rel=\"noopener\">US232R-10 &#8211; Premium USB &#8211; RS232 Serial Converter Cable<\/a>&#8220;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-225\" title=\"US232R-10\" src=\"http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/US232R-10.jpg\" alt=\"US232R-10\" width=\"272\" height=\"78\" srcset=\"http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/US232R-10.jpg 272w, http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/US232R-10-150x43.jpg 150w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/p>\n<p>The device prompts for the driver name and I typed &#8220;ftdi_ser.dll&#8221; although it should not do so, as I copied the files previously. See also<\/p>\n<p>Then I started to try to communicate using COM10 (verified with registry). But there was no communication possible. The VCP test application did not list any port to open, so I entered COM10: (or SER0 for patched driver) but without success.<\/p>\n<p>I also tested without success using a Loopback adapter as described here <a class=\"linkification-ext\" title=\"Linkification: http:\/\/www.airborn.com.au\/serial\/rs232.html\" href=\"http:\/\/www.airborn.com.au\/serial\/rs232.html\">http:\/\/www.airborn.com.au\/serial\/rs232.html<\/a>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-226\" title=\"loopback-rs232\" src=\"http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/loopback-rs232.jpg\" alt=\"loopback-rs232\" width=\"168\" height=\"169\" srcset=\"http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/loopback-rs232.jpg 168w, http:\/\/www.hjgode.de\/wp\/wp-content\/uploads\/2009\/10\/loopback-rs232-149x150.jpg 149w\" sizes=\"(max-width: 168px) 100vw, 168px\" \/><\/p>\n<p>Using the VCP PC drivers for WinXP the serial adapter worked fine, so the hardwware is not faulty.<\/p>\n<p>I also tested on CN3 (WM6.1) at the dock connector without the micro-USB cable. But this did also not work.<\/p>\n<p>Finally I tested on a WinCE5 device (CK61) and this worked OK. So I compared the registry of WinCE5 and WM6.1 after driver install and adapter connection. I found the following (red) keys are missing on the WM6.1 device and so I added them manually:<\/p>\n<pre>REGEDIT4\r\n\r\n;[HKEY_LOCAL_MACHINE\\Drivers\\Active\\48]\r\n;\"FullName\"=\"SER0\"\r\n;\"Hnd\"=dword:005A1A80\r\n;\"Key\"=\"Drivers\\\\USB\\\\ClientDrivers\\\\FTDI_DEVICE\"\r\n;\"Name\"=\"SER0:\"\r\n\r\n[HKEY_LOCAL_MACHINE\\Drivers\\USB\\ClientDrivers\\FTDI_DEVICE\\FTE06D03]\r\n\"ConfigData\"=hex(3):01,04,3f,3f,10,27,88,13,c4,09,e2,04,71,02,38,41,9c,80,4e,c0,34,00,1a,00,0d,00,06,40,03,80,00,00,d0,80\r\n\"DeviceContext\"=dword:00000000\r\n\"InitialIndex\"=dword:00000000\r\n\"LatencyTimer\"=dword:00000010\r\n\r\n[HKEY_LOCAL_MACHINE\\Drivers\\USB\\ClientDrivers\\FTDI_DEVICE]\r\n\"ConfigData\"=hex(3):01,04,3f,3f,10,27,88,13,c4,09,e2,04,71,02,38,41,9c,80,4e,c0,34,00,1a,00,0d,00,06,40,03,80,00,00,d0,80\r\n\"DeviceArrayIndex\"=dword:00000000\r\n\"Dll\"=\"ftdi_ser.dll\"\r\n\"Index\"=dword:00000000\r\n\"InitialIndex\"=dword:00000000\r\n\"LatencyTimer\"=dword:00000010\r\n\"Prefix\"=\"SER\"\r\n\"Version\"=\"1.1.0.2\"\r\n\r\n<span style=\"color: #ff0000;\">[HKEY_LOCAL_MACHINE\\Drivers\\USB\\LoadClients\\1027_24577\\Default\\Default\\FTDI_DEVICE]\r\n\"DLL\"=\"ftdi_ser.dll\"\r\n\r\n[HKEY_LOCAL_MACHINE\\Drivers\\USB\\LoadClients\\1027_24592\\Default\\Default\\FTDI_DEVICE]\r\n\"DLL\"=\"ftdi_ser.dll\"\r\n\r\n[HKEY_LOCAL_MACHINE\\Drivers\\USB\\LoadClients\\1027_24593\\Default\\Default\\FTDI_DEVICE]\r\n\"DLL\"=\"ftdi_ser.dll\"\r\n\r\n[HKEY_LOCAL_MACHINE\\Drivers\\USB\\LoadClients\\Default\\Default\\255\\FTDI_DEVICE]\r\n\"DLL\"=\"ftdi_ser.dll\"<\/span>\r\n<\/pre>\n<p>Using this registry changes and after reinserting the adapter, I was able to communicate using the patched driver, where all COM was replaced with SER. Maybe the original driver will work too, it uses COM10 as port, where the patched driver uses SER0.<\/p>\n<h2>VCP test tool<\/h2>\n<p>Although the VCP Test application is not the best in regards of error checking (you can enter whatever you want for port and it always makes you think it was able to open the port), I include it here only for completeness.<\/p>\n<p>Original VCP test tool: <a class=\"linkification-ext\" title=\"Linkification: http:\/\/www.ftdichip.com\/Projects\/CodeExamples\/VC++\/VCPTest_vcpp.zip\" href=\"http:\/\/www.ftdichip.com\/Projects\/CodeExamples\/VC++\/VCPTest_vcpp.zip\">http:\/\/www.ftdichip.com\/Projects\/CodeExamples\/VC++\/VCPTest_vcpp.zip<\/a><\/p>\n<p>Patched Driver:\u00a0 <a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"http:\/\/www.hjgode.de\/wp\/download\/2242\/?tmstv=1776000060\" rel=\"nofollow\" id=\"download-link-2242\" data-redirect=\"false\" >\n\tFTDI driver install cab using the standard COM prefix and not SER\t(3884 downloads\t)\n<\/a>\n UPDATED 13.02.2021<\/p>\n<p>Same driver as cab with COM instead of SER: <a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"http:\/\/www.hjgode.de\/wp\/download\/2076\/?tmstv=1776000060\" rel=\"nofollow\" id=\"download-link-2076\" data-redirect=\"false\" >\n\tFTDI (CE ARM) patched driver\t(5429 downloads\t)\n<\/a>\n UPDATED 13.02.2021<\/p>\n<p>Here is the source code of the modded VCP test tool:\u00a0 <a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"http:\/\/www.hjgode.de\/wp\/download\/2078\/?tmstv=1776000060\" rel=\"nofollow\" id=\"download-link-2078\" data-redirect=\"false\" >\n\tModded VCP test tool\t(4363 downloads\t)\n<\/a>\n UPDTAED 13.02.2021<\/p>\n<h2>Additional links<\/h2>\n<p>Link to <a href=\"http:\/\/www.ftdichip.com\/Documents\/InstallGuides.htm\" target=\"_blank\" rel=\"noopener\">Installation guides<\/a>: <a class=\"linkification-ext\" title=\"Linkification: http:\/\/www.ftdichip.com\/Documents\/InstallGuides.htm\" href=\"http:\/\/www.ftdichip.com\/Documents\/InstallGuides.htm\">http:\/\/www.ftdichip.com\/Documents\/InstallGuides.htm<\/a><\/p>\n<p>The <a href=\"http:\/\/www.ftdichip.com\/Documents\/InstallGuides\/Windows_CE_Installation_Guide.pdf\" target=\"_blank\" rel=\"noopener\">CE installation guide<\/a>: <a class=\"linkification-ext\" title=\"Linkification: http:\/\/www.ftdichip.com\/Documents\/InstallGuides\/Windows_CE_Installation_Guide.pdf\" href=\"http:\/\/www.ftdichip.com\/Documents\/InstallGuides\/Windows_CE_Installation_Guide.pdf\">http:\/\/www.ftdichip.com\/Documents\/InstallGuides\/Windows_CE_Installation_Guide.pdf<\/a><\/p>\n<p>Update 23. march 2011: Anyone looking for a two port solution? Try the drivers provided by <a href=\"http:\/\/www.handera.com\/Products\/SD50-Series-Downloads.aspx\" target=\"_blank\" rel=\"noopener\">Handera<\/a> (SD50).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometime you may need additional serial connectors for your windows mobile device. Here is the odyssey I had with a FTDI adapter: How I installed a FTDI serial to USB adapter within ITC CN50 running Windows Mobile 6.1. Although the USB to Serial adapters with FTDI chips can be installed with drivers from FTDI, these [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[166,162,163,164,165,7,15],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-programming","tag-adapter","tag-ftdi","tag-ftdi_ser-dll","tag-serial","tag-usb","tag-windows_ce","tag-windows-mobile"],"_links":{"self":[{"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/posts\/223"}],"collection":[{"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":8,"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":2790,"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/posts\/223\/revisions\/2790"}],"wp:attachment":[{"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hjgode.de\/wp\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}