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.

skobyjay's Content

There have been 53 items by skobyjay (Search limited from 16-July 24)


By content type

See this member's


Sort by                Order  

#44204 NeonMika.Webserver

Posted by skobyjay on 26 January 2013 - 01:48 AM in Project Showcase

Cool, thanks Marcus. I appreciate the help



#44039 Memory leak

Posted by skobyjay on 23 January 2013 - 08:49 PM in Netduino Plus 2 (and Netduino Plus 1)

By implement Idisposable I mean can you wrap it with a using statement like you do with the filestream object? Did you try to use a simple string array with only the size that you need rather than using array list? I think this should reduce memory used. Because array list is built on a basic array and a basic array only has memory allocated for the size it needs to be rather than having to grow dynamically with each add.



#43983 Memory leak

Posted by skobyjay on 22 January 2013 - 10:29 PM in Netduino Plus 2 (and Netduino Plus 1)

Does the http response class you are using implement Idisposable? If so, wrap it with using. Just another thought



#43947 Memory leak

Posted by skobyjay on 22 January 2013 - 04:48 PM in Netduino Plus 2 (and Netduino Plus 1)

I know Get requests are typically lighter than Postbut have you tried to use Post to populate your database? I don't know how large your files are but it might be worth a shot. If the files are large then you could create smaller files. This would reduce the HTTP activity anyway with fewer and larger requests.



#43937 Memory leak

Posted by skobyjay on 22 January 2013 - 03:25 PM in Netduino Plus 2 (and Netduino Plus 1)

No problem, let me look at this code tonight, and give it more thought, Throughout the day I like a good challenge. Wow that's crazy removing the try catch increased the request size! Never heard anything like that. I know that throwing exceptions can be expensive but not having a try catch in the code that doesn't throw errors.. Confusing I'll get back to you.



#43944 Memory leak

Posted by skobyjay on 22 January 2013 - 04:29 PM in Netduino Plus 2 (and Netduino Plus 1)

http://www.dotnetper...om/array-memory

We might be splitting hairs but check this article out. You might see a bump in performance by using a standard string array so that memory doesn't have to be allocated and indexes have their positions changed when items are added.



#43875 Memory leak

Posted by skobyjay on 21 January 2013 - 03:44 PM in Netduino Plus 2 (and Netduino Plus 1)

Can you post an update of your source? I'm wondering if something else could be rearranged. Also have you written a console application that performs the same action as your Netduino application code? I'm wondering if your server that handles the http request might be the bottle neck. It probably isn't but it's worth ruling that out while you are testing for performance. I would time these requests and response times.



#43886 Memory leak

Posted by skobyjay on 21 January 2013 - 07:39 PM in Netduino Plus 2 (and Netduino Plus 1)

Maybe you could try to just have the Netduino copy the files to a network share and then have a scheduled console application that reads the files and executes the http requests.



#43656 Memory leak

Posted by skobyjay on 18 January 2013 - 02:15 PM in Netduino Plus 2 (and Netduino Plus 1)

Just curious, Have you tried to use the standard .Net HTTP request and response objects instead of the simple socket classes? I would be curious how the application behaves then. An idea I have is instead of creating completely new HTTP objects and socket connections for each line of data, which sounds expensive. Have you tried to only create one HTTP request and use that over the life of your application And have your foreach just use the same HTTP object and socket object and only changing the query string values? Have you used a tool like red gate memory profiler or performance profiler? These tools have been helpful for me in the past.



#43874 Memory leak

Posted by skobyjay on 21 January 2013 - 03:32 PM in Netduino Plus 2 (and Netduino Plus 1)

Hmm, let me think about this. I'll try to make a sample app to reproduce, see if I can optimize anything for you.



#43719 Memory leak

Posted by skobyjay on 19 January 2013 - 02:38 AM in Netduino Plus 2 (and Netduino Plus 1)

okay, thats fine. just refactor your code so the code below is okay execute once.

 

SimpleSocket Socket = new WiFlySocket(strRemoteHost, 80, WifiModule);            HTTP_Client WebSession = new HTTP_Client(Socket);            

 

 

Then put this part in your "foreach"

 

try            {                HTTP_Client.HTTP_Response Response = WebSession.Get("/default.aspx?" + queryStringData);                Debug.Print("value: " + queryStringData);            }

 

I am curious about what result you will get. Oh and just for laughs remove all the try catches for now, just keep it simple. I can't imagine you are sending that much data, if you don't mind, what does your typical fine line look like and what size is the file?




#43945 Memory leak

Posted by skobyjay on 22 January 2013 - 04:34 PM in Netduino Plus 2 (and Netduino Plus 1)

Just init your string array to be the count of lines in your file. Then populate, see what memory looks like



#43721 HttpServer V.2

Posted by skobyjay on 19 January 2013 - 03:01 AM in Project Showcase

do you have any code of how to utilize your lib? The links solution is just the lib not example project.




#43504 Cheap Sound Modules?

Posted by skobyjay on 15 January 2013 - 11:39 PM in General Discussion

Okay, thanks Dave. I appreciate it



#43535 Cheap Sound Modules?

Posted by skobyjay on 16 January 2013 - 03:40 PM in General Discussion

Great thanks, hopefully I can get something put together!



#43494 Cheap Sound Modules?

Posted by skobyjay on 15 January 2013 - 09:58 PM in General Discussion

hey guys, I'm curious. Is this still the best option to play back audio files on a Netduino plus 2? I was hoping to be able to play wav or MP3 files from the SD card already on the duino. Ultimately, I want to output audio to an audio jack and put that into an input on other device. Is that possible without another component ?



#43725 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 19 January 2013 - 03:58 AM in Netduino Plus 2 (and Netduino Plus 1)

do you have the link to post 91? I can't seem to find it...




#43775 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 19 January 2013 - 09:55 PM in Netduino Plus 2 (and Netduino Plus 1)

I'm really pulling the newb questions today, but what are the LE and BE folders in the BIN folder with the DLL's? I had to copy those along with my DLL's for the Webserver references. I have tried to Google but no luck...




#43749 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 19 January 2013 - 01:59 PM in Netduino Plus 2 (and Netduino Plus 1)

Awesome, thanks for the link Dave. I definitely need to learn more about the MF. Been living in the Web and Windows world too long.



#43720 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 19 January 2013 - 02:42 AM in Netduino Plus 2 (and Netduino Plus 1)

You are looking at the Netduino as a remote storage device and this is not what the Netduino is.  When the Netduino is powered, the application stored on the Netduino is running.  If the app is written to run in loop mode it continues to execute without end.  If there is no loop the application will run when powered up and run to it's end.

 

You can run something like the NeonMika web server on the Netduino which will host a webpage that a user can access via the Netduino's IP or NetBios name.  This web application can then allow a user to make changes on the webpage and submit the pages which use jquery and .NET to receive and store the settings and update the settings.xml file.

 

I am not sure what exactly you are looking to accomplish, but this sounds like the solution you may be looking for.

 

Dave, Question, I'm running the latest firmware on my ND Plus 2, The Mika webserver doesn't seem to work out of the box for me, lots of build errors. Do you know of any examples or references that have actual working examples for the Mika webserver?




#43246 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 13 January 2013 - 02:54 AM in Netduino Plus 2 (and Netduino Plus 1)

Okay cool, thanks for the indept responses. I really appreciate it. I will let you know what I end up doing to accomplish my goal.




#43237 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 12 January 2013 - 10:06 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Dave, thanks for the quick response.

 

 I think you described what i'm hoping to accomplish perfectly. I have a few more questions:

 

1) would this solution require that the user is connected to a network?

2)  Is there a way to auto launch (like in a console or windows app I would just use Process.Start()) the webpage that the NeonMika web server would host? I'm trying to minimize the steps required by a user such as having them find the IP for the Netduino and browse to it in a browser manually.

 

My backup plan would be to build a WPF windows app and equip my module with a FTDI Basic Breakout - 3.3V and use serial communction to update the XML file. I'm trying to do this to give the best user experience.  




#43223 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 12 January 2013 - 05:01 PM in Netduino Plus 2 (and Netduino Plus 1)

Hello,

 

I apologize if this is a newb question.

 

Is it possible to have a Netduino execute an "AutoPlay" (similiar to having an auto.inf on a cd or usb stick) feature when connected to a PC?

 

I'm ultimately wanting to launch an HTML file hosted on the SD card or even launch a windows application hosted on the SD card so the user can make changes to the predefined settings xml file on the SD card. is this possible? I would prefer to have it hosted on the SD card for the Netduino so the user doesn't have to install anything on their PC.

 

Am I asking for too much here?




#43726 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 19 January 2013 - 04:07 AM in Netduino Plus 2 (and Netduino Plus 1)

when I download the zip from http://neonmikawebserver.codeplex.com/

 

I get a zip with folders called "executable", and "framework" among others.

 

The project in builds but is referencing 4.1 not the 4.2 MF.




#43727 AutoPlay Feature - Netduino Plus 2

Posted by skobyjay on 19 January 2013 - 04:18 AM in Netduino Plus 2 (and Netduino Plus 1)

not sure what I"m doing wrong, I downloaded  and opened the soution in location

 

NeonMika.WebserverExecuteableNeonMikaWebserver

 

it builds but is using the 4.1 framework not 4.2, if I update the projects in the soution to be 4.2 I'm getting alot of build errors. where is the "WebServer" solution you are referencing?





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.