I'm working on an application which uses serial port to communicate with some external devices. I used friendlyarm mini2440 and Wince5 and everything was OK but when I switched to wince 6 I got new problem in serial port. The communication still works but sometimes(almost) incoming data from device isn't read completely and some bytes are lost. I tested different serial baud rates, device protocol and so on but there was no success. The same application works fine on wince5 so I guess there is something wrong with serial drivers for wince6. Does anybody has suggestion about this problem?
Serial port driver for WINCE 6
i have this problem too, i don't use WinCe5 yet but when i connect my Magnetic card reader to my device i don't get any data but when i use similar program in Xp i can get card reader data, when i connect my device to Xp i can send and receive data too, please help me this is so important. and Dear A.G, if you use a english version of WinCe5 can you get me link of your Wince? thanks a lot.
hey danics, maybe your problem related to this topic: http://www.andahammer.com/faq/?PHPSESSID=80344caa9a3dbe737a8e2edc5b6f9bd8 please notice to second question, it's about how to wired the mini2440 DB9 as a DCE device.
Dear Meysam, i dont understand exactly what are DB9 and DCE? please give me some more information! i connect Magnetic card reader to the PC with RS232 cable, i get card information, but when i connect this reader with same cable to my mini2440 i cant get any data,so whats the problem?
DTE stands for Data Terminal Equipment, and DCE stands for Data communications Equipment. DTE is typically either a dumb terminal or the serial port on a computer/workstation.DCE is typically a modem, DSU/CSU, or other piece of data communications equipment, hence the names.you can find more there: http://www.google.com/url?sa=t&source=web&cd=2&ved=0CB4QFjAB... so in cabling to connect a DCE device such as mini2440 to another DCE device like your card reader you should notice they have same manner in data transmission.so in simple way,if you connected a Magnetic card reader to the PC with RS232 cable and you going to do it by mini2440 you have to make new cable with revert TX,RX connections, It means you have to connect Rx pin to Tx and vice versa in new cable.
thanks a lot Meysam, i test that with my card reader and then let you know. thanks a lot , i think this resolve can solve my problem thanks a lot. i think you can speak in Persian too, if you havent problem i have so many question of you, thanks again.
you're welcome yes,I'm Persian but It's better If you ask your questions in this forum whither people can help you more and learn about that too,you can be sure we will help you.
ok thanks again Meysam, i change Rx and Tx and i get some data but those didn't appear good. i get some data like this: ???":":":" i check my baudrate and another properties and they seem good, then i check my DB9 connectors again, but those seem havent any problem, now i test my connector with a AVR programmer, i create a application with Bascom and i get a text with use of Input syntax,i print a "Hello" on connected device like Pc or mini2440 and send a 15 length text. on PC i get "Hello" and i can send text successfully, but in mini2440 i get "Hello" but i cant send any data. so whats the problem again, i m so tired from this SerialPort class please help me? thanks a lot.
First you have to test sent command and what what's received on the device,so for this purpose you should connect the mini2440 by its serial cable(I suppose you used it to load Wince on your mini2440) to your PC and use HyperTerminal from your PC and vxHpc on your mini2440 to monitor data transmission on mini2440 serialport.you can find vxHpc here: http://www.cam.com/vxhpc.html Second if you made new serial cable,you have to check other pin connections to be same as original cable.maybe there are some short circuits between some pins in serial wiring(almost 4-6 pins). please let me know about results