Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Tue Nov 21, 2017 3:46 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Oct 12, 2009 10:44 pm 
Offline

Joined: Mon Oct 12, 2009 10:31 pm
Posts: 5
I am trying to figure out the best way to communication with the G75 from a RedHat Linux system. The G75 is being separately programmed on a Windows system, but I need have Linux-based software interact with the terminal via either serial or ethernet connection. Are there Linux drivers for this interface, or can I communicate using standard serial or ethernet protocols?

If there is sample code somewhere, in C or C++, that does this, I would appreciate a pointer to it.

Thanks.


Top
 Profile  
 
PostPosted: Tue Oct 13, 2009 7:04 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
As the G75 is a fully programmable terminal, you can communicate in just about any way imaginable.

One simple way to test communication with your application would be:

Create a label (LabelV2) named testLabel. Create a SerialProtocolV2 object in your workspace as well and configure it to talk whichever COM port you like. Set the com port's baud and communication settings as desired in Power On Setup. Download your application and connect the terminal to your Linux box.

On your Linux box, open a serial port (exactly how you do this is beyond the scope of this forum) and send the following strings out the serial port:
Quote:
testLabel.value="Hello World";
testLabel.bgColor=224

This will make the label turn red and display Hello World.

From there you can continue to use the prepackaged serial protocol or develop your own. (All of this works over Ethernet as well)

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Tue Oct 13, 2009 10:46 am 
Offline

Joined: Mon Oct 12, 2009 10:31 pm
Posts: 5
Jeremy,

Thanks for the information! I'll give that a try. Do you know whether submitting this text via a terminal emulator would work?

Glenn


Top
 Profile  
 
PostPosted: Tue Oct 13, 2009 10:48 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
You mean using a terminal emulator on the Linux box to talk to the G75? It should work, although you may have to be very accurate in your typing and you would want to turn on any local echo feature since the G75 won't be echoing the characters you type.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Tue Oct 13, 2009 10:49 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Also, I found one minor error in my original post. Use these strings:
Quote:
testLabel.value="Hello World";
testLabel.bgColor=224;


(I omitted the final semicolon)

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Tue Oct 13, 2009 11:23 am 
Offline

Joined: Mon Oct 12, 2009 10:31 pm
Posts: 5
That's great. Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group