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.

dx9s

Member Since 17 Mar 2012
Offline Last Active Jun 16 2015 04:20 PM
-----

Topics I've Started

Wifi State query?

11 June 2015 - 09:33 PM

(I am sure there are several ways)

 

What is the way to read the state of the Wifi connection? In a sense, a way to derive my own "Yellow/Green" (referring to the LED by the Wifi antenna) state of the link.

 

I can see using this in a way where they would reasonably constantly going in and out of Wifi range and knowing the "wireless" link state would be helpful.

 

I hope the simplest way is also the "correct" way, in case there are several.

 

--Doug (dx9s)


Netduino 3 Wifi LED Indicator

04 June 2015 - 04:01 PM

I might be wrong, (and I searched a little bit in this forum but perhaps I missed it) but I think the little LED next to the Wifi Antenna is a "status" indicator".

 

I think the indicator has at least three states:

 

Unlit: Wifi isn't active (this appears during a reset for example)

 

Yellow/Orange: Wifi is enabled but not connected to AP (the color is between Yellow and Orange)

 

Green: Wifi is enabled and connected to AP

 

Perhaps there are other states (like red) indicating some unrecoverable fault. I have yet to test Wifi connectivity enough in this area.

 

Just thought that I would share that with the group.

 

--Doug (dx9s)


Netduino 3 built in peripherals questions

03 June 2015 - 08:14 PM

 I believe the Netduino 3 Wifi uses (correct me if I am wrong) this hardware: http://www.st.com/st.../DM00071990.pdf .

 

I was reviewing the built in peripherals and came across page 37+ (I am still reading the DS).

 

3.26-28 (various digital audio interfaces)

3.32 Controller area network (bxCAN)

3.33 Universal serial bus on-the-go full-speed (OTG_FS) (and 3.34 OTG_HS)

3.35 Digital camera interface (DCMI)

3.36 Random number generator (RNG)

3.39 Temperature sensor

 

It does note that it is really only good for relative temperature sensing. I haven't looked closely at the SecretLabs implementations of any of these, I suspect some of these might already be in use.

 

I only see is SecretLabs.NETMF.Hardware.Netduino:

AnalogChannels, BaudRates, InterruptModes, Pins, PWMChannels, ResistorModes, SerialPorts, SPI_devices

 

I would not imagine the CAN/DCMI/RNG or the audio interfaces be available anywhere else but this Assembly.

 

I am not even sure if there is connectivity for DCMI or (bx)CAN or the Audio or OTG in the existing schematic/layout -- but perhaps access to RNG and the relative temperature sensor would be of some interest/value to somebody.

 

Not really sure what value some of those have. I understand that some of the pins that bxCAN/DCMI/OTG_FS/DCMI/(the audio interfaces) can use are probably already in use with other functions and that it probably is impossible given the current board layout.

 

Just an observation / curiosity.

 

--Doug (dx9s)

 

 


Netduino 3 Wifi - Hello World Success!

31 May 2015 - 08:22 PM

Well after windows update after windows update (started Friday -- ended up "giving" up and continuation Saturday -- computer had not been on for over 10 months -- takes a long time to update a "Developer" machine with all these development libraries)...

 

Success!!

 

First Hello World was the blinking light.

 

Second hello world was connecting to my wireless and setting up a mini web server (borrowed most of the code from an existing example -- only changed two lines basically).

 

Got that done 30 minutes before midnight last night. Very cool.

 

I will past the source code inline (it's pretty short) in a follow up, but I've noticed a few things. It seems that after a while the N3 Wifi or something goes into a state where it takes longer to reply or times out. I suspect it might be some power management or perhaps an issue with the code in general. I might need to double check the headers to make sure it is HTTP/0.9 (no keep-alive supported or attempted as it is currently HTTP/1.0 and see if that makes any difference).

 

Anybody have any better "web server" projects already written? I'd like to be able to actually serve pages from SD card for some of the things I am thinking of doing.

 

Eventually I'd like to do an AJAX like interface to be able to from web client trigger Javascript to send AJAX (json) packet to a "service" that then routes the information to the correct service-object to real-time change it's state via a web client. In order to do that, be nice to have a set of known jQuery libraries ready to serve (from SD) to web client to make a "client heavier" application. Weird idea but I think it will work okay given enough time developing.

 

I attached my program.cs inline below.

 

The Deploy interface for configuring Wifi is a little unusual and (if I understand it correctly) it appears possible to change the mac address (not recommended)?! Having the Wifi settings as a software controllable option and read from SD card would make it safer to some extent.

 

 

 

--Doug (dx9s)

 

P.S.> I did update the firmware to latest one I saw on the download page. Not sure, but figured it was a good idea. 4.3.2.2 it was.


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.