Beijer Electronics (formerly QSI Corporation)

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

All times are UTC - 7 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Mar 03, 2010 9:34 am 
Offline

Joined: Wed Mar 03, 2010 9:19 am
Posts: 3
Hi all

I am trying to program a G70 but with very little success.

I have one Com Port on the G70 connected to my PC serial port.

Connected as follows:
G70 to Other equipment

Pin 9 to PSU +15V
Pin 5 to PSU 0V and PC Serial Port Pin 5
Pin 3 to PC Serial Port Pin 2
Pin 2 to PC Serial Port Pin 3

I have configured the G70 as follows:

FLASH MEMORY:
App Mode: Download

COM1:
Baud Rate 4800
Data Bits: 8
Parity: N
Stop Bits: 1
Flow Ctrl: None

FEEDBACK:
Serial: ON
Video: ON

Qlarity is set as follows:

Download application to unit:
Serial
Port - COM1
Baud Rate - 4800
Data format - 8n1

When clicking "Download application" from the "Fle" menu I receive Complied -- No Errors.
The problem is that when I click "Download application" in the download window I just receive the "Verifying that terminal is attached........." message

When clicking "Set unit time" I receive the "Terminal did not respond to set time request" error.

Please help!!!

Thanks in advance

Mart


Top
 Profile  
 
PostPosted: Wed Mar 03, 2010 10:05 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Have you placed your terminal in download mode? You cannot download unless the terminal is expecting one.

To do so, enter Power On Setup, then select Flash Memory and App Mode and select either Download or Develop (choose Develop if you are going to repeatedly load new software to the unit, i.e. if you are running a test-debug cycle).

When you do so, the terminal should prompt both on the screen and out the serial port "Download Application," possibly with additional information.

As an aside, you will drive yourself stark raving mad trying to download any but the most trivial applications at 4800 baud. If you will be communicating with a device that runs at 4800 baud, I suggest you set your terminal default baud rate to 115,200.

In your application, add the following code to your global code section:

Code:
func Startup()
    handles MSG_INIT

    SetSystemSetting(SYS_COM1BAUD, 4800, SYSACT_DONOW)
endfunc


This will let you download at 115,200, but as soon as the terminal begins running your application, you will switch to 4800.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Wed Mar 03, 2010 10:08 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
It also looks like your pins 2 & 3 are wrong. From a G70 to a PC it is a straight through connection, pin 2 goes to 2 and pin 3 goes to 3 (See 1.2.1 in the Qlarity Hardware Manual to verify the QTERM-G70s pinout).

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
PostPosted: Wed Mar 03, 2010 10:13 am 
Offline

Joined: Wed Mar 03, 2010 9:19 am
Posts: 3
Hi guys

Thanks for your answers

I have the unit set to :
FLASH MEMORY:
App Mode: Download

And I was trying 4800 baud just to see if anything would help.
I'll reset to 115200 when I try again.

I told our tech manager that it would probably be 2-2 and 3-3 but oh no! he knew better ;o)

I'll try that and let you know how it goes!

Thanks again


Top
 Profile  
 
PostPosted: Wed Mar 03, 2010 10:23 am 
Offline

Joined: Wed Mar 03, 2010 9:19 am
Posts: 3
It worked!

Thanks a million guys!!


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