- Netduino Forums
- → Nicky's Content
Nicky's Content
There have been 78 items by Nicky (Search limited from 30-March 23)
#41953 BitBanger firmware support
Posted by Nicky on 20 December 2012 - 04:12 PM in Netduino Plus 2 (and Netduino Plus 1)
#41952 How to do Ethernet communication in netduino in c#
Posted by Nicky on 20 December 2012 - 04:07 PM in Netduino Plus 2 (and Netduino Plus 1)
#41931 Shield Base Firmware (beta 4)
Posted by Nicky on 20 December 2012 - 11:59 AM in Netduino Go
#41925 Shield Base Firmware (beta 4)
Posted by Nicky on 20 December 2012 - 10:29 AM in Netduino Go
#41885 Newbie - Issue with Shieldbase
Posted by Nicky on 19 December 2012 - 05:38 PM in Netduino Go
#41671 Interenet conectivity
Posted by Nicky on 17 December 2012 - 02:44 PM in General Discussion
#41628 Multithreading
Posted by Nicky on 16 December 2012 - 03:59 PM in Netduino Plus 2 (and Netduino Plus 1)
Are you sure its just the threading? I'm running 4 - 5 threads at the same time, UDP listener, webserver, serial server, main thread and sometimes a background worker to store data, I notice no (big) performance disadvantages on a standard ND+.
You know you can set priorities on your thread? I assume you have something going on in your main thread (the starting one) that keeps the other from executing.
Sounds like me and Noom are experiencing the same, so I can tell:
- Main-thread: Idle
- Every second, an event raises, refreshing sensors + screen and saves data (writes 100 bytes of json (automatic parsing)) if enough time has passed.
- When ever theres data to be sent, an uploader worker sends the file with a lightweight http request (1 request line, 3 line header, 100 bytes payload).
That is basicly whats killing my NGo ... singlethreaded, it can refresh, save and send data in less than a second. Multithreaded, it kills it self.
#41623 Multithreading
Posted by Nicky on 16 December 2012 - 02:14 PM in Netduino Plus 2 (and Netduino Plus 1)
#41594 Netduino +GUI
Posted by Nicky on 15 December 2012 - 03:08 PM in General Discussion
#41593 Netduino Go Ethernet
Posted by Nicky on 15 December 2012 - 02:52 PM in Netduino Go
I would be happy to look at the Wireshark file to see if I can figure out what's going wrong.
That would be great. Althrough I really don't have time to work with this anymore the 7 days. Have to focus on the other stuff, but after Dec. 21st could be cool. I don't know what Wireshark is through? Guessing that it's some network monitoring. I've used a tool from Microsoft, but can't tell if Wireshark is better
Great question. It's Apache 2.0. I started with a driver ported from C written by hanzibal in C# which was GNU (with permission). Then I tried to get permission from the authors myself to go Apache. I got no response, but I soon found out that the C version was actually based on the Microchip sample code with little modification. So I wrote my own driver based on that and not based on any GNU code and licensed that as Apache 2.0. That is the driver used in the Beta of mip and the original GNU driver is no longer included. So everything is Apache. This allows it to be used commercially.
Yeah, that was kind a like I understood it. I've tried making my own driver based on the datasheet, and got some functions working, but discarded it, when I saw your version was the only one included in the download. Eventhrough the problem i had on local network, I still think it's a impressive library. I know most of it's is just protocols, but the amount of time spendt on this ain't small.
So, you are thinking of wrapping mIP with a new class that implements System.Net methods and classes? Definitely possible. And I think a lot of people would appreciate that. But, one of my goals is to simplify networking and save some overhead by not implementing all the typical layers. Although with the new ST chips, it's really becoming less of an issue because of all the extra memory. But, still, mIP can run out of memory under heavy traffic.
Yes, something like that. But instead of making a new class that implements System.Net, I was thinking about modifying the System.Net namespace to use mIP instead of the NativeSocket. Althrough the assembly has to be named something else, or it would require a custom firmware, it can still expose the System.Net classes.
Regarding the memory, maybe that could be handled by dropping/rejecting packets in a sophisticated way. I don't know if the receivefilters could be changed during operations, but then the ENC28 could check the port on TCP packets before passing it through. So if a HTTP server is listening on port 80, then all other packets are dropped (unless they are in the in the ephmeral range (or what ever it's called)).
Anyways, that was just a quick thought, I'm not completely into all aspects of the library, or the ENC28 capabilities.
#41539 Netduino Go Ethernet
Posted by Nicky on 14 December 2012 - 08:48 AM in Netduino Go
Ah, you've tried mIP? Have you tried the newly released Beta? Do you have any feedback?
-Valkyrie-MT
Yeah, it's quite impressive, but I've had problems accessing server on our local network. ARP works fine, TCP sends SYN, but never receives SYN/ACK - my development machine sends SYN/ACK 3 times before sending the RST.
I also can't figure out if the driver included in the download is under GNU license or Apache?
Anyways, I would love to see a more framework like version of the library. Why? To make it easier to reuse the code, on multiple devices.
I'm currently using a modified System.Net library, to have Networking on the Go using a Netduino Plus (not the version on codeplex in my signature, thats an old, bad, implementation) - it should be possible to implement mIP this way. I just don't have the time right now. Have to hand in my exam in 7 days. Are you, or the community interrested in the this, I could continue working on it during the holidays/beginning of january.
#41459 Network Question
Posted by Nicky on 13 December 2012 - 07:39 AM in Netduino Plus 2 (and Netduino Plus 1)
#41422 Netduino Go Ethernet
Posted by Nicky on 12 December 2012 - 09:47 AM in Netduino Go
As somebody who bought into the Netduino Go's vision based on what was posted by your company on this forum, I honestly feel like I've been mislead and bought into a technology that isn't ready for my needs. (I'm also waiting for a one-wire library and a shield base that doesn't require four sockets to use.) I don't mean to be an *ss, but honestly, lots of promises have been made to your customers that aren't being fulfilled. When can we expect real dates for these products/features?
I must agree. I've been working on my finals the last few months, based on Netduino Go because there would be a module ready.
Instead of working on the project it self, I've spent countless hours getting Ethernet running on the Go... both with and without mIP.
#40846 Basic Question - Can I use Netdudino to build something and Isolate
Posted by Nicky on 03 December 2012 - 02:38 PM in Netduino Plus 2 (and Netduino Plus 1)
Netduino is production hardware, as well as it is good for prototyping.
If you wan't to make an independent board, you can take the *.brd files, change the layout to what you need, and then send it to production.
There is a Netduino Mini, which is a way more compact board than the regular Netduino.
However, if you manage to design your own board from scratch, ie using a STM32F mcu as on the Netduino Plus 2 and Netduino Go, you should be able to use a modified firmware and get .NET MF running on the board.
To sum up, it is possible, but you have to know your datasheets, electronics and requires a chip that is beeing supported by the .NET MF.
//Nicky
#40845 Deploying to micro-controllers
Posted by Nicky on 03 December 2012 - 02:32 PM in Netduino Plus 2 (and Netduino Plus 1)
#40518 How To Calculate Seconds Since Date/Time?
Posted by Nicky on 30 November 2012 - 04:24 PM in Netduino Plus 2 (and Netduino Plus 1)
#40413 FTP Server
Posted by Nicky on 29 November 2012 - 10:52 AM in Netduino Plus 2 (and Netduino Plus 1)
#40412 Use SPOT.Presentation with the Netduino Plus 2
Posted by Nicky on 29 November 2012 - 10:49 AM in Netduino Plus 2 (and Netduino Plus 1)
#40243 Replacing texst in strings
Posted by Nicky on 26 November 2012 - 05:38 PM in Netduino Plus 2 (and Netduino Plus 1)
public static class Extensions { public static string Replace(this string str, string what, string with) { int index = -1; while ((index = str.IndexOf(what)) != -1) { if (index > 0) { str = str.Substring(0, index) + with + str.Substring(index + what.Length); } } return str; } }
And then uses it by:
string str = "something"; str.Replace("\r", "");
#40181 Can't find System.Net.Sockets.dll on v4.1
Posted by Nicky on 25 November 2012 - 08:24 PM in Netduino Plus 2 (and Netduino Plus 1)
#40160 Can you IP connect through microusb cable?
Posted by Nicky on 25 November 2012 - 01:15 PM in Netduino Plus 2 (and Netduino Plus 1)
#39418 hosting a web page on a netduino webserver
Posted by Nicky on 15 November 2012 - 05:14 PM in Netduino Plus 2 (and Netduino Plus 1)
#39402 Send data to remote php server
Posted by Nicky on 15 November 2012 - 08:32 AM in Netduino Plus 2 (and Netduino Plus 1)
#39358 4.2.1 with Nwazet DAQ and Touch Screen
Posted by Nicky on 14 November 2012 - 06:07 PM in Netduino Go
#39350 4.2.1 with Nwazet DAQ and Touch Screen
Posted by Nicky on 14 November 2012 - 05:19 PM in Netduino Go
a. Yes, it can be replaced with the same touchscreen model. If you look at the display carefully, it's held in a metal cradle from which it can be extracted to swap a new one. It's also possible to replace the touchscreen with a regular display (same model but no touchscreen)
Ah that wasn't exactly what I meant.. it's the yellow screen when it initializes i was referring to
b. Yes, it's normal for two reasons: there's SPI latency between the Netduino Go and the Touch Display module, then the set of commands send to the display is interpreted and bit-banged onto the IC display driver bus (the STM32F205 does not have an FSMC peripheral, so bit-banging is the only option). This results in some flickering when refreshing the screen. I hope this makes sense
Ah I see.. and this is the case for all Go Modules, right?
- Netduino Forums
- → Nicky's Content
- Privacy Policy