18 Replies - 1459 Views - Last Post: 14 September 2010 - 04:01 PM
#1
Serial Communication
Posted 14 September 2010 - 02:44 PM
I've got my serial device connected to a serial to USB cable, on the device sits two files, one is the 16bit dos app which is the main application, and the other is the plain text file that stores data.
I basically (if I can) want to move that file from the device to the PC, this is what I cannot figure out. Can someone please point me in the right direction?
Replies To: Serial Communication
#2
Re: Serial Communication
Posted 14 September 2010 - 02:49 PM
CodeProject Serail Communication
#3
Re: Serial Communication
Posted 14 September 2010 - 02:55 PM
#4
Re: Serial Communication
Posted 14 September 2010 - 02:57 PM
Here's a working one:
http://www.codeproje...munication.aspx
#5
Re: Serial Communication
Posted 14 September 2010 - 02:58 PM
#6
Re: Serial Communication
Posted 14 September 2010 - 03:00 PM
But still.... confused on how to get this file over.
#7
Re: Serial Communication
Posted 14 September 2010 - 03:02 PM
Quote
What kind of device is this? A serial port hard drive?
Connecting to a USB<->Serial adapter doesn't magically take away the need to talk to the device in its own protocol. It just gives you a virtual COM port to do it through.
If your device is expecting a command like "DIR:" so it can respond with the directory entries then you still have to give it that command. If your device wants to send data in packets of 196 bytes with a 3 byte header and 4 byte checksum then you still have to handle that protocol.
#8
Re: Serial Communication
Posted 14 September 2010 - 03:05 PM
tlhIn, on 14 September 2010 - 02:02 PM, said:
Quote
What kind of device is this? A serial port hard drive?
Connecting to a USB<->Serial adapter doesn't magically take away the need to talk to the device in its own protocol. It just gives you a virtual COM port to do it through.
If your device is expecting a command like "DIR:" so it can respond with the directory entries then you still have to give it that command. If your device wants to send data in packets of 196 bytes with a 3 byte header and 4 byte checksum then you still have to handle that protocol.
I know it doesn't take away the need to talk the device in it's own protocol I was just adding that info in case.
There really isn't much information about this scanner. The only documentation I have is a programming guide that is just an list of example functions to send commands to the scanner by way of a 16bit dos application that is run on it.
#9
Re: Serial Communication
Posted 14 September 2010 - 03:12 PM
Quote
your serial scanner has its own operating system and has a 16bit application that is running on it?
I seriously doubt that.
More likely that is a sample application of what you are supposed to write and how you talk to the scanner.
This post has been edited by tlhIn'toq: 14 September 2010 - 03:13 PM
#10
Re: Serial Communication
Posted 14 September 2010 - 03:15 PM
Operating System Proprietary DOS system
CPU 16-bit 80188 Processor
Memory 256K Flash ROM
512K / 2.5MB / 4.5MB RAM
(Stores over 17,000 24-character records per 500K / 0.5MB)
Keypad 26 alphanumeric keys plus one scan trigger
Display 128 x 64 pixels
#11
Re: Serial Communication
Posted 14 September 2010 - 03:15 PM
It scans.
It returns a structure or byte stream that is the image it scanned.
You turn that into a bitmap.
#12
Re: Serial Communication
Posted 14 September 2010 - 03:18 PM
#13
Re: Serial Communication
Posted 14 September 2010 - 03:22 PM
Christoph, on 14 September 2010 - 02:15 PM, said:
Operating System Proprietary DOS system
CPU 16-bit 80188 Processor
Memory 256K Flash ROM
512K / 2.5MB / 4.5MB RAM
(Stores over 17,000 24-character records per 500K / 0.5MB)
Keypad 26 alphanumeric keys plus one scan trigger
Display 128 x 64 pixels
PROPRIETORY disk operating system.
So its unlikely you can do anything with the application anyway. It's not MS DOS. The application is most likely assembly language for the 80188 processor. Do you speak assembly language?
I have to guess this is some kind of RFID or barcode scanner based on the idea it has a scan trigger. I'm not into interrogating someone asking for help, for information they should have volunteered in the first question post. If you don't want to answer a simple question like "what kind of device is this"... then it must be you need a Non Disclosure Agreement for the work you're doing. Since all this is so secretive I guess I can't help.
But I would expect you quit worrying about getting the application or the file and concentrate on the functions that answer your request for a given record. It probably returns a structure of some kind.
Quote
What more documentation were you looking for than a programming guide with examples? That's a luxury compared to some SDK's
#14
Re: Serial Communication
Posted 14 September 2010 - 03:27 PM
It's not the scanner part I'm worried about, that's good to go. I just don't know how to retrieve that file from the scanner on the PC side.
Am I just asking a stupid question? Maybe I should go have a drink.
#15
Re: Serial Communication
Posted 14 September 2010 - 03:28 PM
Email it to me and I'll see what I can see.
tlhintoq@dreamincode.net
|
|

New Topic/Question
Reply




MultiQuote





|