Beijer Electronics (formerly QSI Corporation)

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

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Apr 08, 2011 7:49 am 
Offline

Joined: Thu Oct 09, 2008 2:37 pm
Posts: 13
Using an A12 display panel with QTERM-G75 terminal preference.
The display panel is running Qlarity 2.9, and using Qlarity Foundry v2.63.

The A12 documentation indicates that the serial port mode can be changed to RS-232, RS-422 etc. RS-232 is
the default mode and I would like to know how the mode can be changed to RS-422 via software. The Power On Setup does not allow changing the serial port mode.

Regards,
Ken


Top
 Profile  
 
PostPosted: Fri Apr 08, 2011 8:43 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
The documentation on this can be found in section 6.3.3 of the QTERM-G58 WinCE manual. It is missing from the QTERM-A12 manuals at this time.
http://www.beijerelectronicsinc.com/pdf ... nce_manual

6.3.3 Serial Port

Refer to the following MSDN Web site regarding programming serial connections for information
about and examples of the Windows CE serial port API:
http://msdn.microsoft.com/en-us/library/aa913128.aspx.
The serial port driver uses the stream driver interface. COM1 and COM2 drivers have port
names of COM1: and COM2:, which can be passed to the CreateFile function to open these
ports. COM2 is only available on units with the dual serial port option.
The MinTermCE.exe is a simple terminal program (refer to section 4.7.2) that can be used to
test communications over the QTERM-G56/G58 serial ports.
The QTERM-G56/G58 is available with one serial “multiprotocol port,” which is a software-
selectable EIA-232/422/485 serial port. The multiprotocol port 485 interface supports
software-selectable AC terminations and a fail-safe network, which holds the 485 signal lines
in a known state when no transceiver is transmitting. The multiprotocol serial port is COM1:
on all G56/G58 units. Configuration of the multiprotocol port is done thru a registry setting as
described below.
The registry key [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1] contains two values
used to configure the multiprotocol port.
"PortType" (a dword value)
Value of 0 selects 232 mode
Value of 1 selects 422 mode
Value of 2 selects 485 with fail-safe enabled
Value of 3 selects 485 with termination enabled
Note that if the following registry value (“SetupBitsValue”) has a setting other than 0,
the “PortType” setting will be ignored.
"SetupBitsValue" (a dword value) - the bits in this register map to control bits of the
multiprotocol IC as follows:
Bit 0 selects between 232 mode and 485 mode (1=485 mode)
Bit 1 controls a signal called fast
Bit 2 controls the half duplex setting
Bit 3 controls the shutdown signal (0=shutdown)
Bit 4 controls the 485 termination (1=termination enabled)
Bit 5 controls the 485 fail safe
All other bits are unused
Example registry settings:
Following are the defaults for the prototype unit.
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
"PortType"=dword:0 ;select 232 mode
"SetupBitsValue"=dword:0 ;
Changes to these registry settings take effect only after a reboot.

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
PostPosted: Mon Apr 25, 2011 7:01 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
If you need to get out of Qlarity and access the underlying Windows CE operating system, send one of us an email and we will let you know how to do that

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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