Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 7:02 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: G55 Feedback
PostPosted: Mon Jan 26, 2009 7:50 pm 
Offline
User avatar

Joined: Fri Feb 01, 2008 4:50 pm
Posts: 101
I had been having some trouble with serial communication when I realized that my G55 had been outputting feedback over the serial port. I actually changed this awhile back, so I thought the problem was gone, but noticed that I was still getting feedback on the download dialog in the Foundry editor. I have tried using both Display and UDP feedback settings to no avail. In fact, I have even checked the settings at runtime with GetSystemSetting to make sure that these settings were holding, which they were. Still, though, I am getting feedback on the serial port. Any idea what the issue might be??


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Tue Jan 27, 2009 7:45 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Any chance you can tell us the exact version of firmware you are using?

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 12:03 am 
Offline
User avatar

Joined: Fri Feb 01, 2008 4:50 pm
Posts: 101
I was using the original firmware that was on it, likely 1.5 or so, but in an attempt to fix the serial feedback issue I installed the newest 1.6 firmware. The feedback options were expanded, but the problem still persisted.


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 7:46 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
What kind of feedback are you talking about? Can you give an example of a feedback message that is incorrectly sent over the serial port. If possible I would like to reproduce this here.

Just so we are on the same page, can you set feedback to display only.

-----------

Nice Avatar, by the way :D

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 1:49 pm 
Offline
User avatar

Joined: Fri Feb 01, 2008 4:50 pm
Posts: 101
Basically any _print() calls are sent over the serial port.


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 1:54 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
That is correct and by design. _Print was never intended to look at the feedback setting and try to mimic it.

You might be looking for something a bit more like:

#if _TOOL_ANY Tool_Trace("My Debug String") #endif

If you replace your _Print calls with that it will print out while running in Qlarity Foundry but be silent on the terminal.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 2:00 pm 
Offline
User avatar

Joined: Fri Feb 01, 2008 4:50 pm
Posts: 101
DOH, it was right in the documentation too! Well I feel like an idiot :P. What exactly is the feedback for?


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 2:03 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Feedback refers to lower level system feedback. In common use, the only feedback you would ever see is the "Download application" prompt. (There are some extreme errors that can occur that might trigger system feedback, but they are very, very uncommon).

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 2:14 pm 
Offline
User avatar

Joined: Fri Feb 01, 2008 4:50 pm
Posts: 101
Originally we used print because not only could we look at messages in the foundry editor, but also because we could look at messages while having the terminal plugged into the computers com port. Is there any way to reproduce this functionality past writing my own code to facilitate this need?

If I did do this myself, I would probably do something along the lines of having a global print() statement, and where each print() call would be surrounded by
Code:
#if DEBUG

&
Code:
#endif


I still want to implement some sort of logging system, so maybe I will just do that, and add functionality to send the messages to external sources (ie. using udp messages). What are your thoughts?


Top
 Profile  
 
 Post subject: Re: G55 Feedback
PostPosted: Wed Jan 28, 2009 2:17 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Code:
func MyPrint(data[] as byte)
#if _tool_any
    tool_trace(data)
    return
#endif

#if DEBUG
    transmit(com1, data +"\n", false)
#endif
    return
endfunc

_________________
Jeremy
http://www.beijerinc.com


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