General information
Category:
ActiveX controls in VFP
Title:
Mimic barcode reader
Environment versions
Network:
Windows 2003 Server
Hello,
here is a problem i have with serial communication:
I have a wood machine that comes with a software that reads barcodes from a serial barcode reader (RS232) in order to get specific cutting information. This barcode has 26 characetrs. The barcode reader also send carriage return as suffix value. The program works ok with these settings. The change i must do is as follows:
The barcode reader must be removed from this pc and an other pc will be installed right next to the first one. The new pc wil produce the 26 character information and send it to the original pc through serial ports. In this way normaly nothing need to be changed to the first pc.
So i connect the two pc's with serial cable and the new pc runs this code:
At the init event of a form i open serial port with MSCOMM ocx
** Init Event
thisform.olecontrol.CommPort = 1
thisform.olecontrol.settings ='9600,n,8,1'
thisform.olecontrol.portOpen =.t.
** one button of the form has the following code:
thisform.olecontrol.output = cStr +chr(13)+chr(10) && cStr stands for the 26 character barcode
Even though i 've tested with hyperterminal and the receive string seem's ok, the original pc's program founds error in receiving.
What could be the mistake here?
Thanks in advance
Daskalopoulos Xenofon
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only