Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mimic barcode reader
Message
From
22/07/2008 05:28:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Mimic barcode reader
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01333054
Message ID:
01333054
Views:
67
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
Map
View

Click here to load this message in the networking platform