Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Stavros Tekes's Content

There have been 17 items by Stavros Tekes (Search limited from 20-April 23)


By content type

See this member's

Sort by                Order  

#22235 Catch me Up

Posted by Stavros Tekes on 30 December 2011 - 12:36 PM in General Discussion

thumbs up for the watchdog managed support

+1 for adding managed support for watchdog.




#20037 Netduino Firmware v4.2.0 RC3 (all editions)

Posted by Stavros Tekes on 01 November 2011 - 08:59 AM in Beta Firmware and Drivers


This implies to me that it's the double -> int type inference. What's scares me is that this could be messing up calculations all over my code and I might be missing it.

-Valkyrie-MT


Valkyrie is a digger... Well done!!!!



#19584 Netduino Firmware v4.2.0 RC3 (all editions)

Posted by Stavros Tekes on 22 October 2011 - 11:19 AM in Beta Firmware and Drivers

I think this is a great test case and is easy to reproduce, so I opened a ticket just for this. People can vote for it here:

http://netmf.codeple...m/workitem/1320

Good find Stavros!

-Valkyrie-MT


Hi Valkyrie,

I had it posted on the netduino issue tracker since I didnt know if the problem was on netmf or netduino. The link to that is http://netduino.code....com/workitem/6

Cheers



#19544 Netduino Firmware v4.2.0 RC3 (all editions)

Posted by Stavros Tekes on 21 October 2011 - 03:24 PM in Beta Firmware and Drivers

This looks a bit like this issue:
http://netduino.code....com/workitem/2
Or am I wrong? :)


Could be yeah.

Didnt know people started uploading issues there. If it proves to be different than the one you posted, I will post it there too. Thanks Stefan



#19539 Netduino Firmware v4.2.0 RC3 (all editions)

Posted by Stavros Tekes on 21 October 2011 - 03:02 PM in Beta Firmware and Drivers

System.Math.Pow seems not to be implemented too


I am also getting strange some results on performing math equations with double. For example:
doubleVar = (double)((3000.0 * someInt) / 16777216.0);

In the above case when the int is 824280, the result should be 1473.9282131195068
However the result in doubleVar is -62.07177734375.

I stopped in debug and I can get the correct result in the immediate

Am I missing something?



#19537 Netduino Firmware v4.2.0 RC3 (all editions)

Posted by Stavros Tekes on 21 October 2011 - 02:30 PM in Beta Firmware and Drivers

Known Errata

  • StringBuilder.Replace can cause corruption
  • Int64.Parse and Double.Parse throw NotImplementedException
  • "Caught Exception" in debug window immediately after boot (cosmetic only)


System.Math.Pow seems not to be implemented too



#19503 Netduino Firmware v4.2.0 RC3 (all editions)

Posted by Stavros Tekes on 21 October 2011 - 07:32 AM in Beta Firmware and Drivers

Awesome news indeed. Chris is AppDomains set to true for this one? "CreateInstanceAndUnwrap" is firing again a 'System.NotImplementedException'.. :( UPDATED: Checked and turns out AppDomains is set to false. Were there issues that made you keep it to false for the RC3 version too? Thanks



#19269 .NET MF 4.2 RTM released

Posted by Stavros Tekes on 16 October 2011 - 07:41 PM in General Discussion

Thanks both for replying so fast (damn its a pity I wasn't stuck with something to ask for help), Chris just ignore us when we keep asking about a release date. Better have all the time the team needs to sort out all the code and make sure those floating points stay where they were supposed to. Stavros



#19265 .NET MF 4.2 RTM released

Posted by Stavros Tekes on 16 October 2011 - 07:23 PM in General Discussion

Hi, any new on the 4.2 RC3 "build" based on the 4.2 RTM release? We are eager to work with it, as it seems that most of the problems have been resolved (i.e sockets.connect timeouts, external assembly loading). Fingers crossed but I think Secret Labs should be really close to releasing it. Cheers, Stavros



#18985 Watchdog timer

Posted by Stavros Tekes on 10 October 2011 - 07:33 AM in Project Showcase

I finally got my watchdog circuit to work reliably. Whenever the program hangs, it reboots the N+ board. To make this work, I added an external chip whose output drives the N+ reset line with a negative pulse when needed. This circuit needs a periodic pulse to tell it that the software is still running, the absence of a pulse for more than a certain time, will then reset the N+; In my case, I set the timeout interval to about 30 seconds. This gives the N+ software time to do very lengthy tasks without the need to sprinkle pulse generating code everywhere.

Question: Is that any interest in such a shield, or would people just like to make their own? The circuit is not complicated, although the chip is a tiny surface mount one.


Hi Robert, could you give us printout of the schematic you used? I am curious if I can run a quick test to see if it can fit my needs too

Cheers,

Stavros



#18327 Socket.Connect blocks all threads?

Posted by Stavros Tekes on 22 September 2011 - 01:43 PM in Netduino Plus 2 (and Netduino Plus 1)

I am seeing the same thing on both versions. It is true that sometimes an exception will be generated, but not always. Sometimes it just locks up the entire machine, including all threads. To overcome this and potentially other lockups, I am adding an external watchdog timer chip. My plan is to use the MAX6751 which seems to have everything I need. Adding this chip to my design will be next week's goal. It's a shame that the ARM's built in watchdog timer is not supported.


Hi Robert,

This is very interesting, we were looking for something like that. Keep us posted if it can work.

Also for making sure a socket.connect timeouts at some point, you might also want to look at this thread. The idea is to create the socket.connect at a thread and then create a "watchdog" thread that sleeps for some time and after that it kills the socket.connect thread.



#18312 Launching an application from an SD card fails. AppDomain.CreateInstanceAndUn...

Posted by Stavros Tekes on 22 September 2011 - 06:00 AM in Beta Firmware and Drivers

I have just tried this on an N+ I have got a System. NotImplemented Error in mscorlib.dll against AppDomain.CurrentDomain.CreateInstanceAndUnwrapp(.....)

I used MFDeploy and discovered AppDomains set to false. What should I do?


Hi Erich, I reckon you are using the 4.2 RC1 version of the micro framework. Read Chris's answer above that they will most probably fix that in the next release of the framework. Hope that helps



#18180 Kaushik SPOT Services for .NET Micro Framework

Posted by Stavros Tekes on 19 September 2011 - 07:09 AM in Project Showcase

Thanks, sounds really promising and will definitively have a look



#18043 Launching an application from an SD card fails. AppDomain.CreateInstanceAndUn...

Posted by Stavros Tekes on 15 September 2011 - 12:41 PM in Beta Firmware and Drivers

Turns out AppDomains is false on 4.2 RC1 Does anyone know, how this can be changed? 4.1 is fine too, the prob is that it hangs so many times giving us a headache, while 4.2 in netduino plus is much more stable. Cheers



#17899 Netduino+ WeatherStation / Environment Monitor / Webserver

Posted by Stavros Tekes on 12 September 2011 - 07:05 PM in Project Showcase

I guess you should add some outputs to see at which point it gets stuck. Maybe the memory consumption gets bigger as time passes by and the netduino crashes... I think it is a good practice to have a thread "observing" the running processes or the system health so it can for example try to reconnect if the socket connection gets dropped for some reason or kill other threads the seem unresponsive and start them over. Very interested on your project, as we are also trying to gather data from external devices (serial port and analogue ports). Good luck with it, and keep up posted



#16666 Launching an application from an SD card fails. AppDomain.CreateInstanceAndUn...

Posted by Stavros Tekes on 12 August 2011 - 12:16 PM in Beta Firmware and Drivers

At last, I finally figured it out! :)

Here's the code of the target assembly being loaded from the SD card as a little-endian .pe file.

  • This assembly only references Microsoft.SPOT.Native and mscorlib, both of which are already loaded in the calling assembly below. This is important because assemblies are explicitly loaded. Any dependency also needs to be dynamically loaded.
  • Note the bold string in Print(): it will be in the output at the very end of this post.


Hi Fabien, and all others in the thread

Thanks for the contribution, it could eventually help to a remote update of our software.

Has anyone tested this with the netduino plus?

I am using MF 4.2 RC1 and I am trying your exact code (as all my tries have failed) and I receive the same exception in CreateInstanceAndUnwrap you had.


Cheers

Stavros



#16618 Netduino Plus Firmware v4.2.0 RC1

Posted by Stavros Tekes on 11 August 2011 - 10:22 AM in Beta Firmware and Drivers

Chris do you think that with the 50% patch, will the 4.2 RC1 release more ram in the netduino plus?




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.