problems trying to use a smart card reader - Windows Mobile Software Development

Hi,
I'm trying to use a simple smart card reader with the xda, which means
opening COM1 and speaking with the device. My software works well on Ipaq PocketPC, but communication fails if I use the XDA instead. As I get the port opened, the problem seems to be a hardware thing (i.e the cables). One hint is: We didn't measure any voltage at the XDA's RS2323_RTS and RS232_DTR lines, while we did so at the Ipaq.
Does this problem sound familiar to anyone ? What about the missing voltage ? Or may it be just a cable problem in the end - How then should I connect both devices ?

suibhne said:
Hi,
I'm trying to use a simple smart card reader with the xda, which means
opening COM1 and speaking with the device. My software works well on Ipaq PocketPC, but communication fails if I use the XDA instead. As I get the port opened, the problem seems to be a hardware thing (i.e the cables). One hint is: We didn't measure any voltage at the XDA's RS2323_RTS and RS232_DTR lines, while we did so at the Ipaq.
Click to expand...
Click to collapse
Probably quite useless, but how do you connect the smartcardreader to the XDA? I think you´re using the Pin-connector at the bottom of the xda. Do you use the same cable, that you use with your Ipaq?
You know it is the same connector, but with different pin layout.....
Regards
Stefan

Hallo Stefan,
Danke erstmal für den Tip ! Hätte ja sein können, und ich habe extra noch mal nachgefragt, ob das ein XDA-Kabel ist...
Now, I do use the Pin-connector at the bottom of the xda, but it's a cable made especially for the XDA, so there's not lying the problem. The connections made by this cable may not be the right ones; anyway there remains the voltage problem, consisting in that the plugged card reader may not get any voltage supply. Has anyone around had this problem ?
Regards
Christian

Related

Serial Cable

Hi all,
This forum being the greatest about HTC, I think you guys will have the answer :
I would like to use my TyTN to connect to the console of a router (using serial connection) :
1. Does anyone know where I could find a miniUSB-DB9 adapter ?
2. Will there be a driver for serial port, or is it natively managed with COM ?
Such cables exist but for PC, but not miniUSB and with a Windows driver, no info about the same thing for PocketPC.
Anyone knows ?
Thanks
zEar - HTC TyTN
Re
----
DELETED Message where I thought I found it..
Understood the problem..
Hi all,
AFAI understood I cannot find a solution due to the lack of USB Host support in the TyTN. I still wonder if the port can be used in direct low level serial mode as you see in bootloader. Could WinMobile use it ?
Another way would be to have a device that would be usb host, putting the phone into slave mode, but maybe I dream...
Thanks for any reply..
there is a bluetooth to serial adaptor which has been reported to work with the tytn.
COM1
Hi,
After much googleing there's still hope. Windows Mobile presents a COM port : 'COM1 via cable' and in the specs of the TyTN there is RS232 communication.
I still cannot figure out if the miniUSB connector pins could be simply mapped to the corresponding RS232 signals. Probably not
Anyway I flashed the XDA-Live wm6 ROM and it's great ! the battery seem to last longer (still 70% after 2 days!)
Thanks to the xda-dev community

About: Why GPS doesnt work for some programs

Alright,
As most of you have already noticed some GPS program's just dont work on the P3300... odd? yes but it can be explained.
The GPS unit wich is used in the HTC p3300 uses COM4 to communicate, 4800 buadrate, all working nicely. BUT... the p3300 doesnt seem to set the EV_RXCHAR flag, wicht is used by most common COM handlers, this flag indicates there is new data in the receive buffer.
Because most hobby projects use common COM handlers, they think they'r not receiving any data at all and will do nothing.
Some say solving this is possible by using Franson GPSGate.
I have not yet try'd this because im trying to find something freeware. and the franson version is limited to 14 days.
As it seems the free progam JAL portsplitter (recommended bij GPS Tuner) creates a new comport and can be set to redirect the data from the GPS to other apps, but now WITH the EV_RXCHAR flags set.
Dear sir,
Thank you for contacting HTC Europe support.
Regarding your query, this handset was designed to work with, specifically, TomTom and other highend programs, as such this not a flaw or known issue but rather a feature of the device.
As such there will be no solution or update to address this.
Click to expand...
Click to collapse
So HTC wil not be changing the softwarez for this....
Its not a bug... it's a feature
Update:
I have contacted HTC on the issue because the P3300 is about the only device that has this issue, also asked about the upcoming ROM update and if it is fixed.
I hope the PortSplitter i posted solves most issues for now.
The iMate pda-n suffers from exactly the same fault - interesting find though all the same thanks
Mike
!!!
This is a very serius "about"
Update in startpost
Unfortunatelly it does not work on my HTC P3300... I choose in Input "GPS Port" but in the output it doesn't have any choice... I tried to add i vurtual port but when i choose add nothing happen...
Hi guys,
I know it has been a very long time since this topic was updated, but I was wondering if anyone knows a tool that is able to change the sirf settings. I used to have a pda with a bluetooth gps receiver and I had a program that could change a lot more than just the refresh rate. There were options that could actually harm the device if set up the wrong way.
I was wondering if the stated missing feature is part of the gps chipset and can be modified or added or is it part of the entire system and can't be altered?
Regards
Sebastian
Hi,
has anyone sucessfully turned on Static Navigation? With beta-Versions for editors it was possible with MMSirf, but with Final versions it isn't, (this told me a mod of pocketnavigation)...
But it is only under 2,5kmh not 4 kmh as with most devices...
But its a pity, though...
Stefan
SurfaceCleanerZ said:
Hi,
has anyone sucessfully turned on Static Navigation? ...
Click to expand...
Click to collapse
Static navigation is "On" by default!
Currently there is no solution to switch it to "Off", isn't it?
ok, I made a mistake: I want to go geocaching and so I want to get location data while standing still!
Stefan
Hello,
gives news with GPS- Programming ? I am also interrest on a solution to switch off sn on a artemis.
old Thread, so i not sure someone interrest.
Yes, i got it, sure.
it is possible to deactivate GPS SN on a artemis.
now he display continues gps coordinates also in slow speed < 2.5 kmh.
In Bootloader , mtty and SirfDemo.
is someone interested then i can give some information.
So it looks possible to Programm something on the sirf.
Sorry for my English.
Hi,
very cool!
How did you get this?
regards,
Stefan
well, so i have do some test and its working.
so i have modify 3 mda C3 and 1 p3300.
sn are off on all 4 units .
only if you remove the Accu the it will be back.
the problem is its working not on all PC.
on one old 1Ghz athlon with a usb 1.1 ist working. on my new PC its not working. Sirfdemo hangs up wenn SIRF goes into Binary Sirfmod.
i think the binary data crash the usb port.
it looks like the bitclock of the serial sirfdata is not 100% ok.
Step by step
dissable activ sync UsbConnection
on artemis go ito Bootloader and connect to the usb
on pc start mtty.exe ,select ( Port \\.\WCEUSBH001)
(I use mtty multiport usb v0.01)
Press Return, a Cmd comes on Screen
now enter GPSRouting 57600
now starts some output ,looks like NMEA
$GPGSA,A,1,,,,,,,$GPGGA,132149.693,,,,,0,00,,,M,0.0,M,,0000*56
$GPGSA,A,1,,,,,,,$GPGGA,132150.693,,,,,0,00,,,M,0.0,M,,0000*5E
.....
close mtty
now install sirfdemo (i use 3.87) on the PC
( gpspassion.com/forumsen/topic.asp?TOPIC_ID=25575)
edit the sirfdemo.ini
-[DataSrc]
-Src=0
-SerPort=\\.\WCEUSBSH001
-SerBaud=57600
and save it
open sifdemo
on setup/target select GSWLT3.... and dissable. autodetection
now press the connect button.
after some sec. you will see one or more lines in the left (debug view, and errors in the right window.
now enter action menue and press switch to sirf
its works so you will only see some in the error window and no new line in the left window.
now sel. navigation menue and press static navigation, sel. Dissable and press set.
after some sec you will see an entry in the response window
wenn not retry it.
it is done then sel action menue and press switch to NMEA
a option menue comes up. you must change baudrate to 57600 !!
then press ok
now close sirfdemo.
open mtty
if you see now line by line NMEA log so it is ok, if you will see endless charters
so the switch back to NMEA are not ok. ---- Power off all and restart.
now reset the artemis and test the gps.
!!! removing the accu will reset the new setting.
i am not sure it was possible to destroy something with this.
so i have testing many many time and always is fine after removing the accu.
sorry for my english.
Hi,
one question:
"now install sirfdemo"
where PC oder PDA?
An Link to mtty would be nice!
Thanks for your HowTo!
btw: Ich denke eine dt. Anleitung dürfte für die meisten einfacher sein und ausreichen. Stell die doch zusätzlich unten an...
nema: You mean NMEA!
It is very interesting that you get it working, because prior Trials told, that the pin for this of the chip is not connected.
regards,
Stefan
Did anyone made any permanent solution SN (static nav)? I tend to remove my battery quite often due to SD and SIM cards inside.
It would be great if someone could write and app which would manage to connect to the GPS chipset from inside WM5/6 and change the SN, even if that would be a temporary solution. I could run the tweak when i go Geocaching.
Hope to hear some good news soon,
Bushman

TomTom V6.000 - GPS Problem

Hi Folks,
just bought the Artemis and...
I installed TomTom V6.000.
I downloaded the QuickGPS-File.
I Followed the instructions in this post:
http://forum.xda-developers.com/showthread.php?t=351202
Programs Tab
GPS Program Port COM4
Hardware Tab
None and 9600
Access Tab
Manage GPS automatically should be selected.
Start TomTom up and got to Change Preferences/ Show GPS Status, tap "Configure" and go through the various pages, the best one to use is "Built in GPS receiver" as it is the most simple setting only versions 6,020 and 6,030 have this facility. If you are using some other version go for "Other NMEA GPS Receiver", Baud Rate 9600, and select COM4
Click to expand...
Click to collapse
I get the signal after...hm lets say...20mins...if at all. Most of the time i don't get a signal anyway...
The last device i had was a MIO A701, there i got the the Signal after 1min
What did i configure wrong? Nobody wants to wait for GPS-Signals half an hour
anybody has an idea?
hmm i think i found the problem
it's the metal-case i bought from www.pdamax.de:
somehow it prevents the integrated GPS-receiver from getting the Signal.
If i turn on tomtom without having the p3300 in the metal-case, the signal is ready in about 1-2mins.
If i plug it back in the case with running tomtom and already established GPS-connection, tomtom looses one after another satelite.
what crazy ****... 20€ for a protection-case which doesn't allow GPS-navigation.
Anybody made the same experiences or am I the only fool?!
lol no you're not a fool.
Its commonly known that GPS-signals can hardly get through concrete/metal.
btw, did you post this?
!!!!ACHTUNG:
Dieses Metal-Case blockiert offensichtlich den GPS-Empfänger! Habe diese Erfahrung leider mit meinem Artemis machen müssen.
yup, was so angry that i couldn't repress myself..

qteck 9090 aus Weatherstation? with Linux?

Hi Gues,
could that work, to run a qteck 9090 as WeatherStation Interface between Internet (over internal SIM) and a WeatherStation ?
wview project? oder WeatherDisplay?
Is the USB Interface Docking able to provide Interface for other resources than an PC?
regards
Oliver
starting with the usb: no.
the blueangel has no chance of being a usb host, it is a client like a flash drive or an external hard disk, which means, since there can be no client-client connections there, you cannot attach any other hardware to the blueangel for it to use.
i don't know exactly what you have in mind there, since the first sentence is hard to understand, but you can use the BA as a remote client to connect to a host system over wireless communications like gprs, wlan or bluetooth, and control or oversee the host and manage it.
if, on the other hand, you were planning to use the BA as a "thin client" to connect a weatherstation directly to, to send you the relevant data, it would probably not work, because of the usb host issue.

TMC to USB Port (for Chinese GPS)

Dear All,
I would like to share my experience in this TMC project.
Recently I bought a Chinese GPS 100 unit to connect to my JVC KD AVX40
This has an av out in 320x240 and JVC has an AV in.
You can control the unit via touchpad.
It works correctly to my unit so I decided to get a TMC for this product.
This unit has One USB port which is in Host mode.
So Put a normal USB hub on it and it worked well with Pendrive and External Mouse
Next step, I got a FTDI USB to Rs232 device.
It has FTDI 232BM chip for UART connection it's very important to use chip like this , because of the windows ce driver
I've opened it and I removed chip called SP213EHCA.
In every RS232 there are 2 chips on the board. One is for USB to UART , and the second is for Uart To Rs232.
Because the every TMC receiver uses TTL communication which is working on 3.3v I need to "convert" the unit to USB to UART TTL only.
Obviously you can build a small circuit for this communication, but for myself it was easier to use this solution.
After I removed the Rs232 chip.
Datasheet Page 5 for picture of the pin outs.
You can download it from the FTDI website
The Tmc Receiver pin out is :
Pin definition:
Pin1 Vcc: 5V +- 10%
Pin2 TX: 3.3V TTL level, TMC data output.
Pin3 RX: 3.3V TTL level, receive commands.
Pin4 GND <-- It's not ground It's 5V !!!
Pin5 GND (for mini-USB only)
I soldered a mini USB mother type connector to the chip legs:
PIN2 goes to chip leg 24
PIN3 goes to chip leg 25
PIN5 goes to chip leg 17
So after this I connected the Royaltek TMC unit to my "hacked Rs232" board.
I put the "hacked rs232" to hub and I used a USB mini usb cable for power the tmc unit, so I connect the cable to hub and after that to the tmc.
After this I used this driver for windows ce 5.0
You can download it from the ftdi web site
I have to use mortscript which copy a self made reg file to the registry and copy the ftdi dll to /windows/ folder
Reg:
REGEDIT4
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577\Default]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577\Default\Default]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1027_24577\Default\Default\FTDI_DEVICE]
"DLL"="ftdi_ser"
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\255]
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\255\FTDI_DEVICE]
"DLL"="ftdi_ser"
[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\FTDI_DEVICE]
"Index"=dword:00000001
"InitialIndex"=dword:00000001 <--- This is for which com port to use 1...9
"Dll"="ftdi_ser"
"Prefix"="COM"
"Version"="1.0.2.11"
"ActiveSyncSetting"=dword:0003e880
"LatencyTimer"=dword:00000010
"DeviceArrayIndex"=dword:00000000
This reg file is directly uses COM PORT 1 (It was free in my device )
After this I created a very small circuit which holds the usb power for 20sec
parallely my reg and driver is installing in this time.
When I reached 20sec My Hive based Windows Registry will recognize the FTDI device and there are no pop up meassegas appear ....
IGO recognized the TMC device hardware
The reason I write this how to , because I read so many forums ,and web pages to find a solution for this , but i didn't find anything.
GNS is providing a TMC receiver for CAR PC but with a prolific based USB to UART chip, and the ARM based cpu is not understanding the driver
Ough I forget the tmc receiver what used:
Royaltek RTA-3000
Have a nince day I hope that I could help to someone
guika said:
Dear All,
Snip, snip
Have a nince day I hope that I could help to someone
Click to expand...
Click to collapse
I got the same JVC stereo, how can I unlock for multizone DVD? Thank!
If i understand it correctly that you mean, you want to unlock the dvd region limitation.
I didn't unlocked it, but the main problem, that the unlock lock status is came from the dvd FW, which is not possible to reach it, via this unit. I searched for the web, and JVC also, for some FW update. There isn't any. So from my side i say it's not possible in easy way.
I have tested this solution and since half year aho its working fine under -20 to +50 so it is a solution.
Sent from my GT-I9000 using XDA App
Compatibility
Also tested with FT2232H
This soultion is working , only bug that because of the dual uart the windows device pop up a notification for the second uart driver.
Also working.
Not working with Moxa chip.
Not working with Prolific PL-2303. ( Because the driver for the chip is not going to get open com port in wince 5 :S )
It seems that the only solution is the FTDI chip.
I've made a test with bluepanter and Wayteq and a very old Blaupunkt.
Solution is worked when I changed the usb mode to Host in wince.
It's seems for the blepanter and the wayteq it make not so much sense bacuse you could buy their original accessories.
For the blaupunkt is okay.
Also this could be okay for the 1-2 din chinese gps. Needs to be tested.
Reception improving
I had issue with the tmc reception.
So the solution is make a fm Y cable, and share the outdoor antenna to the head unit and to the tmc receiver.
After the installation, I realised that the reception was not so good, because I miss calculated with the phantom power to my roof antenna, after the phantom power installation everything went fine.
I got reception where I never had it before. TMC news downloading time improved as well.
Take care with the phantom power because it could kill the TMC receiver, use only one way adapter !
hi,
many many thanks for you thread...i had some questions...
i have bought an Dynavin DVN-MC2000 and this unit is without TMC but it have an GPS-In Mother-Usb cable...i think this goes directly to the wince5.0 system.
Where did you buy your RT-3000 and do you have the complete name of the FTDI Modul?!
Maybe we can develop a solution together i could make fotos from my open DVN-MC2000 if it helps
Maybe a ohoto would be great.
I bought the tmc unit in hungary in an avarage shop.
About ftdi i had one in my work desk. But it doesnt matter the meaing is it should any type which is supporting from the wince ftdi driver side. See ftdi web.
Sent from my GT-I9000
Hello all!!
I've been reading the post and I have to congratulate you, very interesting!
If you do not mind I'll use this thread because I want to ask you a question, I haven´t found any response in any expert forum.
I have a problem with my car radio. It is a chenese radio with GPS and TMC integrated.
From the beginning the TMC worked correctly but It had problems with the GPS. It didn´t work properly (may be the driver was wrong or it was bad installed on the WIN CE5). The provider din´t give me a solution and I found a forum in France. There someone sent me an European WIN CE 5 ROM with the GPS installed a working properly. The problem is that this guy didnt have any ROM with the TMC driver integrated and now I dont have it installed.
My actual state is: WIN CE + GPS HW (installed and working) + TMC HW (not insalled)
My question is:
How could I install the TMC in my radio WIN CE5? The HW exists but my WIN CE 5 does not have the drivers and of course the IGO can not find it.
Thank you very much!
pd: sorry about my english!!!
elmike1980 said:
Hello all!!
I've been reading the post and I have to congratulate you, very interesting!
If you do not mind I'll use this thread because I want to ask you a question, I haven´t found any response in any expert forum.
I have a problem with my car radio. It is a chenese radio with GPS and TMC integrated.
From the beginning the TMC worked correctly but It had problems with the GPS. It didn´t work properly (may be the driver was wrong or it was bad installed on the WIN CE5). The provider din´t give me a solution and I found a forum in France. There someone sent me an European WIN CE 5 ROM with the GPS installed a working properly. The problem is that this guy didnt have any ROM with the TMC driver integrated and now I dont have it installed.
My actual state is: WIN CE + GPS HW (installed and working) + TMC HW (not insalled)
My question is:
How could I install the TMC in my radio WIN CE5? The HW exists but my WIN CE 5 does not have the drivers and of course the IGO can not find it.
Thank you very much!
pd: sorry about my english!!!
Click to expand...
Click to collapse
From the first i need to know what kind of tmc chip do you have. Royaltek/GNS and after that we can get closer to the problem. Qhit the upper sokution you can put in the driver if we will figure out the chip manufacturel.
Sent from my GT-I9000
I am sure that the integrated chip is GNS tipe.
The only thing that can hapen if we install a wrong driver is that it would not work, wouldnt it?
But the other things would work good...
thank you!
elmike1980 said:
I am sure that the integrated chip is GNS tipe.
The only thing that can hapen if we install a wrong driver is that it would not work, wouldnt it?
But the other things would work good...
thank you!
Click to expand...
Click to collapse
Generally yes.
But first. You will need to do some test. I will post it later. Because right now in this days i have a lot to do. I wont forget your problem so i will post it here what to check first to start your problem solving....
Sent from my GT-I9000
thank you very much!
I will wait for your answer.
regards.
please dont forget me!!
bye!
Dony worry i wont
Sent from my GT-I9000 using XDA App
Hello Guika,
Where did you get your Chinease GPS 100? can you send me the link?
Thanks,
cjean said:
Hello Guika,
Where did you get your Chinease GPS 100? can you send me the link?
Thanks,
Click to expand...
Click to collapse
http://www.car-audio.hu/?base=items&filter=cat&type=item&catid=0&cid=141&id=714
Sent from my GT-I9000
elmike1980 said:
thank you very much!
I will wait for your answer.
regards.
Click to expand...
Click to collapse
I found something maybe from your IGO8 folder is missing one file called gpstmc.dll
Check this forum
http://www.mobilepassion.org/viewtopic.php?t=2355
I will check it.
Anyway I think that I need the driver for TMC receiver. I have the HW but it is not installed. Do you know were could I find TMC drivers for Win CE 5? with them the problem would be solved-install and the IGO would take it automatically (I had it installed the first time, but the GPS didnt work).

Categories

Resources