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.

Chris Walker's Content

There have been 606 items by Chris Walker (Search limited from 24-May 23)


By content type

See this member's


Sort by                Order  

#62686 System.Exception when I now run my code after upgrade to 4.3

Posted by Chris Walker on 14 May 2015 - 08:08 PM in Netduino 3

Hi Riaan,

Ah, this makes sense :)

Here is the schematic for Netduino Plus 2:
http://www.netduino....2/schematic.pdf

And here is the schematic for Netduino 3 Wi-Fi:
http://www.netduino....i_schematic.pdf

(Cpu.Pin)0x12 is a direct hardware access mapping to STM32 MCU pin B2.

On Netduino Plus 2, we included a dual-FET on pin PB2 that enabled power to shields. This was a feature exclusive to the gen2 boards. We included that feature mostly to enable low power draws during USB enumeration for compatibility with official USB enumeration current specs, but we found that users overwhelmingly preferred being able to power the board via 3.3V/5V (without reverse-FET power loss) instead. We realized that it was going to be confusing to expose this feature to users, since all GPIO pins would also need to be turned off until the FET was enabled...and so for all the above reasons we removed this FET on gen3 (and focused on adding features and enhancing the power subsystem's raw power and low-current efficiency instead).

On Netduino 3 Wi-Fi, MCU pin B2 is connected to the CC3100's /RESET pin. If you try using that pin from code, either your code or the CC3100 initialization code will fail (due to an exclusive lock on that pin).

Does your project require being able to power up/down the shield on the fly? If so, then the gen2 hardware may be the best pick for your application. Almost all shields are designed in a way which doesn't require changing their power on/off state on the fly, but I know there are always edge cases (and scenarios where you might want to save current).

BTW, once we have Shield Base supported on Netduino 3, you could technically also hack into the FETs that control power to each GoBus port...although we generally recommend against messing with the plug-and-play subsystem.

Does that shed more light on your experience?

Chris



#62672 System.Exception when I now run my code after upgrade to 4.3

Posted by Chris Walker on 14 May 2015 - 08:14 AM in Netduino 3

Hi Riann,

Looking at this, indeed! I have a singleton class and it seems like the error happens when I have a singleton (static constructor) used. Just running a normal application seems fine until I add that code. It works in met Netdu

Ah yes... NETMF calls static constructors before the main application starts (regardless of whether or not the respective classes are used...which is different than standard .NET behavior).

Can you step into your static code and see where the exception gets thrown?

Just like to say though, I really really really LOVE this product. Where I previously had to run a pc and connect to moxa GSM devices which is expensive and really over designed for what I want to do I can now simply use my netduino and do everything in one little box.

I love that you love Netduino so much :) Please share your projects with the community when you can!

Chris



#62316 Support for older firmware versions

Posted by Chris Walker on 30 April 2015 - 06:49 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Mike,

Is this for a Netduino 2 or a Netduino Plus 2?

NETMF 4.3.0 was pre-release-only. NETMF 4.3.1 was effectively the "release" version of firmware.

Here is the 4.3.0 beta 1 firmware for Netduino 2:
http://forums.netdui...re-v430-beta-1/

I highly recommend moving to the 4.3.1 or 4.3.2 firmware. The big thing you need to do is uninstall the NETMF 4.3 ("pre-release") SDK and install the newer NETMF 4.3 QFE2 (release-quality) SDK.

Does that get you on the right path?

Chris



#62951 Strangeness with System.Security

Posted by Chris Walker on 28 May 2015 - 03:22 AM in Netduino 3

Hi DevBiker,

Netduino 3 Wi-Fi doesn't have support client authentication, although we could support that in the future if it's a popularly-requested feature.

What were you trying to do with System.Security.dll in particular?

BTW, some of the NETMF DLLs rely on native code being already-deployed to a mainboard...but there's not necessarily a good way to know that in advance. I'm not sure about System.Security.dll--but that sounds like it could be the case here. The NETMF runtime just tends to stop during boot if it gets unhappy over a mismatch.

Chris



#63421 Strange Analog Output

Posted by Chris Walker on 08 July 2015 - 05:05 AM in General Discussion

Hi rseedle,

Which Netduino mainboard are you using? What version of firmware?

And...do you have anything plugged into the other analog pins? [If not...can you try connecting them all to GND really quickly to see if that affects your results?]

Welcome to the Netduino community,

Chris



#64069 Stops writing to database

Posted by Chris Walker on 09 September 2015 - 11:54 PM in Netduino Plus 2 (and Netduino Plus 1)

Hey alharlow,

Nevyn's tip on blinking the blue LED (on a timer) is what I'd do, to start...

Also: are you using Netduino.IP or the traditional lwIP networking stack?

Chris



#63881 SSL Authentication issues

Posted by Chris Walker on 14 August 2015 - 07:01 PM in Netduino 3

Hi dbelcham,

What version of firmware are you running? Can you upgrade to the latest firmware really quickly (if you're no already on it), which should give you a more specific Exception? And also, importantly, a socket exception error code.

If you're already on the latest firmware (posted sticky at the top of the Netduino 3 forum and posted on the download page)...can you provide an exact code sample (<=10 lines of code is best, but a few more are fine) that we can test out locally?

Thank you, and welcome to the Netduino community.

Chris



#62850 Split: Waiting on Netduino.IP preview builds

Posted by Chris Walker on 24 May 2015 - 11:17 PM in Netduino.IP Technical Preview

Hi wendo,

Thank you very much for your feedback. We're here. We're listening. Point taken.

Yes, some of this is problems with NETMF (which I'll also be avoiding) but none of the projects I've ever tried on the Netduino have ever been able to run long term. If you want your devices at the center of IOT then they need to be reliable, and not take years after release to get there

So sorry about the NETMF+lwIP networking bugs. We have a very feature-rich networking stack in NETMF but unfortunately it hasn't always performed as well as we'd like. Netduino.IP is a pretty big hammer to solve the issue, and I wish we could have delivered it sooner.

We are checking new code in over at the Netduino.IP GitHub repo while we're getting new builds ready, if you'd like to play with the code before the official preview builds are posted. The link layer code, network config interop code, Ethernet code, and network address resolution code is all tested and posted over there--and the IPv4Layer and UDP code should be posted shortly as well.

https://github.com/n...ino/Netduino.IP

On reliability...can you give us a bit more detail on the reliability issues (long-term) you were experiencing with lwIP on Netduino? We have had a lot of long-term reliability success with the wireless hybrid Netduino.IP stack and we want to make sure we bring that same long-term reliability to the wired/core Netduino.IP stack for Netduino Plus 2 as well.

On builds...I will make sure we get a compiled build of the Netduino.IP preview for Netduino Plus 2 posted in the next few days. I know that you may have moved on from NETMF+lwIP, but you're a valued part of our community and I hope you'll stick around and kick the tires on the new code. NETMF fills a really crucial role in the IoT ecosystem and hopefully we can make it shine together.

Chris



#62851 Split: Waiting on Netduino.IP preview builds

Posted by Chris Walker on 24 May 2015 - 11:25 PM in Netduino.IP Technical Preview

Hi ukkiwisurfer,

So sorry for any poor communication regarding the new Netduino.IP stack. We didn't mean to leave you hanging there. [If you'd like to play with the new code...much of it is already checked into the GitHub repo.]

On openness and capability: what can we do to make the Netduino platform and NETMF even better for your requirements? NETMF plays a crucial role in the modern IoT...and we want to make it great.

We're really glad to have you around in the community, and hope you'll stick around (or come back in a few weeks) and play with the new Netduino.IP builds and give us your feedback. NETMF and Netduino both benefit from your expertise and experiences...and hopefully we can show our gratitude as we make this platform even better together.

Chris



#63787 SPLIT: UDP packet size

Posted by Chris Walker on 06 August 2015 - 03:35 AM in Netduino.IP Technical Preview

Hey Tim,

Generally speaking it's best to keep UDP packets down in the <=~500 byte range, but it's possible to make them up to ~1500 bytes in size. Each packet contains the _entire_ message you're sending.

Regarding buffer size (from the original thread): that's for TCP RX buffers. TCP streams data across multiple packets and buffers the stream in memory. UDP doesn't know if one packet is related to another packet.

What is the size of data you're trying to send via UDP? [Perhaps we need to add an extra exception instead of failing gracefully somewhere here.]

Chris

P.S. I've repurposed UDP before for streaming data. If you add a sequence # to the front of your UDP packets, you can reassemble them on the other side. But unless there's a really good reason to do this manually, use TCP: it does this for you.



#63973 SPLIT: Transitioned from Windows to Linux

Posted by Chris Walker on 25 August 2015 - 04:05 AM in Mono

Hi Charles,

I have been away for quite a long time... And I came across my Netduino Plus yesterday and I'm thinking about getting back into it.
 
Since I last programmed with C#, I have transitioned from Windows to Linux and really loathe the idea of going back. What is the status on this project?

Early support for Netduino using Xamarin Studio on Mac is up and running today, if you want to play. It's technically Alpha--but it works end-to-end including the debugger.

Chris



#62706 Split: Netduino feature requests

Posted by Chris Walker on 15 May 2015 - 06:33 PM in Netduino 2 (and Netduino 1)

Hi energywave:

On USB Serial...we will have a USB Serial module (GoBus) for Netduino a bit later this year. If we also built a basic Netduino with 3 GoBus ports, would that take care of this well for you? [We're also looking at ways to allow sidechannel USB profiles through the main USB interface...but there are some side effects there we would need to address.]

On watchdog and basic EEPROM-like storage...on the short list for feature requests. No timeline for official support, but your voice has been added. [It's also possible for the community to add this as a feature in a custom firmware release.]

On RTC and battery...there are some size and pin limitations around this. We are looking at an affordable add-on GoBus module option with a coin cell holder (that would automatically sync time). There may be other ways to address this in the future as well.

On all of the above: we're listening, and we're actively building new hardware and adding new features to take good care of you guys. Please keep letting us know what you want/need and we can either point you in a good direction to accomplish your goal, build out new functionality, add to the feature request list, etc.

Thanks energywave!

Chris



#63515 SPLIT: Integrated MAC and 10 vs 100 mbps

Posted by Chris Walker on 14 July 2015 - 04:23 PM in Netduino 3

Hi xc2rx,

For full-speed 100mbps data transfer, you're probably best off looking at native code solutions (or higher-end PC hardware). NETMF is really targeted towards lower-bandwidth applications, single-chip devices, etc. We used the integrated PHY on Netduino Plus 1...but it offered little real-world application performance benefit over an external MAC+PHY solution. And with an external MAC+PHY solution, makers building custom boards can scale down to a 64-pin lower-resource chip and still affordably hook up Ethernet if/when desired.

We designed Netduino.IP to logically separate out the link layer (MAC portion) from the IP implementation. So if you wanted to create a native code interop driver for an on-chip MAC you can use the rest of the stack as-is.

Chris

P.S. Netduino.IP also has built-in driver support for the Asix AX88796C which supports 100mbps speeds for people whose hubs/switches prefer 100mbps devices.



#64139 SPLIT: DHCP MaxDHCPMessageSize

Posted by Chris Walker on 18 September 2015 - 07:22 AM in Netduino.IP Technical Preview

Hi Tim,

Fixed in Netduino.IP v1.0.1 (in the 4.3.2.3 firmware).

Whew, no more outstanding issues for Netduino.IP on GitHub :)

Please let me know how the updated firmware works for you! And thanks again for surfacing this issue.

Chris



#63786 SPLIT: DHCP MaxDHCPMessageSize

Posted by Chris Walker on 06 August 2015 - 03:30 AM in Netduino.IP Technical Preview

Thanks Tim. There are some rules around IPv4 vs IPv6 packet sizes, min buffers, etc. The stack will always take minimum-sized TCP packets (and defaults to larger, regular size IPv4 frames).

Could you post this as an Issue on the Netduino.IP GitHub repo, and then we'll double-check the broadcast minimum DHCP message size?

Unless you're not getting an IP address via DHCP, this setting is unlikely to cause any issues--but in any case we want to make sure the stack is nice and standards-compliant throughout :)

Thanks Tim,

Chris



#61443 SPI usage

Posted by Chris Walker on 02 February 2015 - 09:23 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Wernfried,

With STM32 micros, peripheral clocks (UART, SPI, etc.) have a lower bound. If you specify a rate slower than that lower bound, they'll "bottom out" (unable to divide the clock any further).

You can work around this by lowering the MCU speed or mucking with the peripheral clocks--but at a base level NETMF's SPI feature will only go as slow as the biggest divisor lets it go.

If you run at, say, 60KHz, does the clock track accurately?

Chris



#63550 SPI Performance issues

Posted by Chris Walker on 16 July 2015 - 02:37 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Sukasa,

What speed is the processor on your board? The SPI clock speed is a "/2, /4, /8, /16, /32" (i.e. /(2^x)) clock speed...so unless you're running at 80MHz or 160MHz you'll get a lower speed than 10mbps. [somewhere between 5mbps and 10mbps).

Each transaction should happen at the speed specified by that device's SPI Config.

Do you have a logic analyzer that you can use to see the wire traffic?

Chris



#62292 Spark Core (TI CC3000) Porting for Super WiFI Mini?

Posted by Chris Walker on 29 April 2015 - 08:04 PM in Netduino Mini

A quick shout out to Netduino community member Valkyrie-MT for his work on CC3100.

Thank you so much for all your contributions.

You were a big inspiration behind the new Netduino 3 Wi-Fi hardware.

Chris



#61591 Sources on GitHub

Posted by Chris Walker on 10 February 2015 - 07:46 PM in General Discussion

Quick link:
https://github.com/netduino/

We're adding sources to GitHub (and moving to GitHub) during the Netduino.IP Technical Preview and 4.3.2 firmware beta programs. When 4.3.2 launches, we expect to be fully up and running on GitHub.

If by chance you submit an issue there and don't see it addressed, please let me know.

Chris



#62074 Simple delay timer

Posted by Chris Walker on 10 April 2015 - 02:46 AM in Visual Basic Support

Hi Jeff,

The Timer class constructor takes both dueTime (time to first timer call) and period (time between each timer call).
https://msdn.microso...y/ee432718.aspx

Just set the period to zero...and your timer will be called exactly once.

Does that get you on the right path?

Welcome to the Netduino community,

Chris



#62996 Silly problem with power over USB

Posted by Chris Walker on 01 June 2015 - 05:17 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Wernfried,

The router specification says USB has 5V, 100mA


As Paul wisely noted, the port on your router is not a standard-power (~5V, 500mA) USB port. It only provides 100mA and is designed for lower-power USB devices and self-powered (i.e. battery- or wall-adapter-powered) USB devices.

Netduino does require quite a bit less current than x86 mainboards, but you'll still want to power it off of a standard-power USB port since its current requirements may go above 100mA.

This also applies to USB hubs... If you plug a bus-powered USB hub (i.e. no external power adapter) into your computer it will typically take the 500mA of power it received and allocate only 100mA to each port. This is fine for keyboards--but you need a powered USB hub (which provides 500mA to each USB port) for Netduino and other more powerful devices/devboards.

Chris



#63600 Shield Compatibility Specs

Posted by Chris Walker on 21 July 2015 - 11:44 PM in Netduino 2 (and Netduino 1)

Hi Bernie,

The main things you'll want to verify, for compatibility:
1. Does the accessory work with 3.3V logic signals?
2. Does the accessory require special Arduino drivers? Or does it use basic I2C, SPI, UART logic that can be used from (directly, or via a custom driver) C#?
3. How much current does the accessory require?

Netduino has been designed for best-in-class hardware compatibility with Arduino shields. There are even some Arduino shields which work with Netduino but don't work with Arduino's newer Due boards. In the end it's usually a concern of software support (although there are a few cases where the hardware isn't compatible).

Chris



#63085 Shield Base or Netduino 3

Posted by Chris Walker on 09 June 2015 - 05:00 AM in Netduino Go

Hi Stoo,

If you're looking for Wi-Fi support, Netduino 3 Wi-Fi is a really great choice. It'll work with the production GoBus modules you already have (and will work with Shield Base too, once we add in support for that). Most users who want to use the plug-and-play modules are opting for Netduino 3 Wi-Fi at the moment.

Then again, you already have hardware... So many choices :)

BTW, you can actually use the older firmware with Visual Studio 2013. No requirement to upgrade to the latest-and-greatest. Just change the target framework in your project properties to ".NET Micro Framework 4.2."

Welcome to the Netduino community,

Chris



#62495 Several IoT events for those interested.

Posted by Chris Walker on 06 May 2015 - 11:35 PM in General Discussion

Wishing I were hanging out with you guys in the Netherlands... Thanks for sharing these, Beastyboy.



#62375 Seven Segment Display Module

Posted by Chris Walker on 01 May 2015 - 11:06 PM in Netduino Go

Very cool, Matt.

BTW, you can use the exact same code to work with Komodex's 7segment module on both Netduino Go and Netduino 3 Wi-Fi. Pretty cool stuff.

Matt--are there any demos of the 7seg module running on Netduino 3 that you can share photos of here? You have an awesome weather demo, IIRC?

Chris




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.