Home/Support/Support Forum/Digiweb stops responding
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Digiweb stops responding

0 votes
I have write application in python to periodically retreive data from sensor. Additionaly I register web callback routine to read data and return it in XML form. After some period the web callback routine stops responding I receive response:

<title>Object Not Found</title></head><body>
<h1>Object Not Found</h1>The requested URL '/dms' was not found on the embedded Digi ARM device.<p>Return to <A HREF="">last page</A><p>

Regular response should be:

<?xml version="1.0"?><Dms><Stat><Parameter name="sensor_1-T">23</Parameter><Parameter name="sensor_1-SRH">70.84</Parameter><Parameter name="sensor_1-TRH">70.59</Parameter></Stat></Dms>

Is there a way to trace errors in runtime if I set program in Auto-start? Do I have any view inside execution environment?
asked Jun 30, 2009 in 3rd Party Python and API development in other Languages by Boris1 New to the Community (3 points)

Please log in or register to answer this question.

8 Answers

0 votes
Yes, if you have the script set to auto-start in the 'set python' command, it will direct its sys.stdout and sys.stderr output to the trace facility built into the system.

You can then view the results by connecting to the CLI of the device and enabling trace with 'set trace state=on'. This will cause the output to print out from the printf mask as a critical message. Since critical messages are on by default, you will not need to change the 'mask' parameter.

Hope this helps.
answered Jul 1, 2009 by DigiGuy42 Community Contributor (102 points)
0 votes
Thank's for the tip. I would certainly use it. In mean time I found the problem I have. I missed in one place to put try/except statement on ddo_set_param. It happened because battery died on remote sensor and the sensor stops responding. In that case ddo_set_param bails out with Exception.

Thank's for the help anyway.
answered Jul 2, 2009 by jurkovicb New to the Community (1 point)
0 votes
I am doing M.Sc Electronics in Madurai. For my Project i am using Digi Drop in networking kit . I have finished Python programs . Now my prof asks to disp temperature and light values that i have acquired form Router in to Web page index.html. Unable to understand Digi web usage. Please help me with your examples. Please do this favour , my id is pankaj@gaurishiv.org
answered May 10, 2010 by pankajusic New to the Community (6 points)
0 votes
I'd recommend registering for then downloading the iDigi Dia python app, since it has examples to read the temperature/light values built into it. You can download this here: http://www.idigi.com/resources.jsp
answered May 10, 2010 by Admin Veteran of the Digi Community (732 points)
0 votes
thanks for your valuable suggestion..
i have one doubt that iDigi Dia python app will work in Connecport X4 gateway or not?
waiting for ur reply
answered May 13, 2010 by pankajusic New to the Community (6 points)
0 votes
You can also try and download the Digi ESP for Python and iDigi Dia. It is a graphic IDE recently released by Digi that contains the iDigi Dia app with lot of other features, examples, tutorials and getting started guides to ease the development process.

Read this post:


Kind regards!
answered May 14, 2010 by descalon New to the Community (40 points)
0 votes
The Dia works great on an X4, the X4 and X8 are really the two products it was initially developed for and runs on them admirably.

I do second the use of the Digi IDE. It's a great tool and getting even better all the time.
answered May 14, 2010 by DigiGuy42 Community Contributor (102 points)
0 votes
If you use X4/X8, you should look at the Digi 'watchdog' module:

It allows you to reboot the gateway should particular threads halt due to a try:except: issue.

The X2 doesn't have this because it lacks the external hardware to make it reliable.
answered May 14, 2010 by lynnl Veteran of the Digi Community (1,047 points)