View unanswered posts | View active topics It is currently Fri Aug 18, 2017 8:21 pm



Reply to topic  [ 2 posts ] 
script_timeout 
Author Message

Joined: Thu Aug 30, 2012 8:56 pm
Posts: 3
I've been working for days trying to understand why one of my event handlers never finishes executing (I never saw the text that I sent to UART at the end of the handler).
It turns out that there is a new (I think it's new) feature that BlueGiga introduced:
script_timeout

It will stop your event handler after a certain time. You set it to a number between 0 to 65,535 ("BGScript steps"). 0 mean disable. The default is 1000 (which is very short [a simple while loop with ~80 iterations]). It's not clear why they set the default to 1000. In the documentation they recommend using it with BLED112. When I asked BlueGiga support they told me that "This is typically just a development time "watchdog" used to prevent deadlocks. The timeout will generate an event, which can be catched with BGScript and for example boot the device to DFU mode."

You set it in a configuration file called config.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<config>
<connections value="1"/>
<script_timeout value="0" />
</config>

You have to add this line to project.xml:
<config in="config.xml" />

I hope that it will help you in avoiding spending time on this annoying issue.
Uzi


Wed Oct 31, 2012 5:52 pm
Profile
Site Admin

Joined: Thu Aug 02, 2012 11:36 am
Posts: 166
Hi Uzi,
thanks for sharing this info with the other readers of the forum.

Cheers,
Michael.


Wed Oct 31, 2012 10:56 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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
Designed by ST Software for PTF.