- Netduino Forums
- → hanzibal's Content
hanzibal's Content
There have been 386 items by hanzibal (Search limited from 02-July 23)
#50857 a new i/o pin
Posted by hanzibal on 27 June 2013 - 06:30 AM in Netduino Mini
#50669 Strange AnalogInput readings
Posted by hanzibal on 20 June 2013 - 07:42 PM in General Discussion
#49366 Netduino Plus 2 Web Server
Posted by hanzibal on 12 May 2013 - 07:20 PM in Netduino Plus 2 (and Netduino Plus 1)
I just had another look at your code and I see that you check Available before doing anything at all. Maybe you have changed that now, but I think Available can be zero which just means that no data has been read in advance for you and that you must read it all by yourself - there's still an incoming request to be serviced. If not already done, put a Debug.Print statement immediately after the Accept statement and see what happens.
#50107 WebServer with full file management support on SD card
Posted by hanzibal on 30 May 2013 - 11:54 AM in Project Showcase
I see. What are you using this for yourself?
#50680 Strange AnalogInput readings
Posted by hanzibal on 20 June 2013 - 11:52 PM in General Discussion
#50744 Strange AnalogInput readings
Posted by hanzibal on 23 June 2013 - 09:44 PM in General Discussion
So you mean the pull-down I suggested for the open analogue pin was the one thing that helped?
#55289 .NET Fart Detector
Posted by hanzibal on 10 January 2014 - 09:04 PM in Project Showcase
Ha, ha - that is just hilariously awseome!
As a child, I actually dreamt of creating a fart detector in order to answer the inevitable question "who was that?" and now, some 30 years later its finally here - your are a true genius!
EDIT: It's mostly methane is it not?
#55432 .NET Fart Detector
Posted by hanzibal on 17 January 2014 - 01:47 AM in Project Showcase
#55428 .NET Fart Detector
Posted by hanzibal on 16 January 2014 - 05:41 PM in Project Showcase
#50104 WebServer with full file management support on SD card
Posted by hanzibal on 30 May 2013 - 10:14 AM in Project Showcase
...Is it really the first one?
As a web server I think not but as Networked Attached Storage, I suppose it is. In a data acquisition application you don't have to take the card out to examine the log which ought to be an appreciated feature.
It is fully self made (the C# standard libs, like Windows.Forms and System.Net.WebClient are used, but I think it's not what you meaned?
in DuinoFinder I used the same code, but the GUI (there I took Gtk instead of Windows.Forms, what is also for Unix available))
I was thinking more in terms of whether you can access the files as kind of a network share like SAMBA (or something like that) using the standard Windows Explorer. I get that impression from looking at your pictures.
Sorry, I don't know, I haven't made any investigations in that direction yet. My devices have only a single slot for SD card. Is there an extra hardware necessary?
I didn't mean that seriously but yes, you would need an external SD card slot and drive that over SPI.
#49677 Serial to SD -- Need Fast Writing
Posted by hanzibal on 21 May 2013 - 01:39 PM in Netduino Plus 2 (and Netduino Plus 1)
.... though I don't know how netmf will feel about it, or even if the spi the sd is on will be reachable....
Oops, didn't think of that, might be a problem.
With the mini I always use a simple SD card holder breakout on the regular SPI port.
#49638 Serial to SD -- Need Fast Writing
Posted by hanzibal on 21 May 2013 - 09:11 AM in Netduino Plus 2 (and Netduino Plus 1)
Managing FAT32 adds a lot of overhead. You could try using the SD card in raw mode without a file system.
Of course, you can't use the regular NETMF functions for this, instead you have to treat the SD card like the SPI slave device that it is. You'd also have to use a special PC app to extract the data from the SD.
I know Nwazet has a data acquisition module called DAQ and I think they use their own FAT32 implementation for that. Perhaps you could look into the underlaying implementation of that and find some code for doing raw SD card writing:
http://nwazet.com/co...Q/10-FileSystem
If not, there ought to be some Arduino code for this that you could port.
#49484 Netduino Plus 2 Web Server
Posted by hanzibal on 16 May 2013 - 06:49 AM in Netduino Plus 2 (and Netduino Plus 1)
#50083 WebServer with full file management support on SD card
Posted by hanzibal on 29 May 2013 - 02:16 PM in Project Showcase
Ah, the world's first Netduino NAS - very nice work!
About the Duinoexplorer - is that a fully custom made application or does it somehow integrate with windows?
What transfer speed can you reach when downloading a reasonably large file?
Does it support uploads too?
If you put a second SD card in there, you could have software RAID too
#49794 Serial to SD -- Need Fast Writing
Posted by hanzibal on 22 May 2013 - 07:32 PM in Netduino Plus 2 (and Netduino Plus 1)
I don't recall what the standard blocksize is but if it normally is less than what you typically write, then the speed increase would make sense as you basically would only have to make one hop through the linked list or whatever FAT32 uses to keep track of the multiple parts that files consist of. If I'm not mistaken, FAT uses an initial table of contents with file names etc and a pointer to the first block of each file which in turn points to the next and so forth like a linked list. Jumping around the blocks would obviously take longer than just writing to or reading from a single byte stream. I argued that the FS itself introduces a significant overhead that raw writes wouldn't. I've seen an Arduino play a music video on a Nokia 5110 LCD and that was only made possible using raw reads from the SD and a streamlined home brew file format where bits of video and music was interleaved.
#49966 3x4 Matrix Keypad bounce problem
Posted by hanzibal on 25 May 2013 - 08:31 PM in Netduino 2 (and Netduino 1)
#49815 Netduino Plus 2 Web Server
Posted by hanzibal on 23 May 2013 - 09:03 AM in Netduino Plus 2 (and Netduino Plus 1)
It is this code snippet (taken from your code above) that I'm referring to:
Dim bytesReceived As Integer = clientSocket.AvailableIf bytesReceived > 0 Then...
Now, I'm not sure about how this works in the .NETMF (and Netduino) world, but in a Windows environment, clientSocket.Available would only contain the part of the data that is immediately available.
That is, clientSocket.Available does not necessarily contain the full request data (headers and such) but only some initial part of the data that has been pre-read for you by the framework at the point in time at which your listener receives the incoming request. The rest of the data you must read yourself by calling the corresponding read method on the socket. You can see clientSocket.Available as being a read-ahead buffer.
This means, that just because clientSocket.Available is zero, that does not mean that there's no request. I believe that clientSocket.Available would typically be more likely of be non-zero for requests coming from a LAN than from a WAN since the LAN would be faster. This could explain the issues your having with this.
I have a really hard time believing a h/w flaw is causing the problems you're experiencing.
#49975 3x4 Matrix Keypad bounce problem
Posted by hanzibal on 26 May 2013 - 06:30 AM in Netduino 2 (and Netduino 1)
#49971 3x4 Matrix Keypad bounce problem
Posted by hanzibal on 25 May 2013 - 09:52 PM in Netduino 2 (and Netduino 1)
#56696 Netduino & RF transmitter to pair with and control smart electricity socket
Posted by hanzibal on 07 March 2014 - 03:59 PM in Project Showcase
I wouldn't have my gear connected to the internet accessible from the outside world.
In some home automation product broshures, manufacturers push for things like being able to control the lighting in your home from away on vacation in another country or perhaps starting your sauna from the car on the way home. Dangerous madness.
#56706 Netduino & RF transmitter to pair with and control smart electricity socket
Posted by hanzibal on 08 March 2014 - 11:52 AM in Project Showcase
In my home, I got a networked IR gateway (iTach) for controlling all my A/V gear and built an RF bridge for controlling wall oulets like the ones you're using. I'm using my iPhone/iPad as a WLAN remote control but it only works within the domestic LAN.
http://www.avsforum....for-itach-irule
#50492 Another Newbie Steps into the Arena
Posted by hanzibal on 14 June 2013 - 08:51 PM in General Discussion
#50778 Strange data received from SRF02 I2C
Posted by hanzibal on 24 June 2013 - 11:13 PM in Netduino Plus 2 (and Netduino Plus 1)
#50806 Strange data received from SRF02 I2C
Posted by hanzibal on 25 June 2013 - 07:07 PM in Netduino Plus 2 (and Netduino Plus 1)
#51657 Make instance of module static
Posted by hanzibal on 24 July 2013 - 08:41 AM in Netduino Go
- Netduino Forums
- → hanzibal's Content
- Privacy Policy