sfx's Content - Netduino Forums
   
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.

sfx's Content

There have been 52 items by sfx (Search limited from 06-June 23)


By content type

See this member's


Sort by                Order  

#60202 .NET Micro Framework V4.3 SDK-R2-Beta

Posted by sfx on 24 September 2014 - 07:43 AM in General Discussion

Thanks for the heads-up CW2!

 

For those of us who have already installed the experimental VS2013 tooling from SecretLabs, do we now need to uninstall it or can these distributions exist side by side?

 

Take care,

 

Nathan




#60213 .NET Micro Framework V4.3 SDK-R2-Beta

Posted by sfx on 24 September 2014 - 11:30 PM in General Discussion

Hi Chris,

 

Thanks for the instructions.

 

I've followed your points -> Uninstall NETMF SDK -> Uninstall Netduino SDK -> Install NETMF SDK -> Install Netduino SDK.

 

Unfortunately, however, I can no longer see any Netduino project templates when creating a new project. I've tried rebooting a couple of times, but to no avail. Do you know what tooling I might be missing from SecretLabs?

 

Take care,

 

Nathan




#60215 .NET Micro Framework V4.3 SDK-R2-Beta

Posted by sfx on 25 September 2014 - 01:17 AM in General Discussion

Hi Chris,

 

Thanks for the quick reply.

 

The SDK that I uninstalled was "netduinosdk_vs2013_experimental.exe". The SDK that I installed (following the new NETMF SDK) was "netduinosdk_NETMF43.exe".

 

Should I now uninstall the latter and reinstall the former?

 

Take care,

 

Nathan




#60232 .NET Micro Framework V4.3 SDK-R2-Beta

Posted by sfx on 26 September 2014 - 01:02 AM in General Discussion

Hi Chris,

 

I've done as you said and everything seems to be working well now. Thanks for your help!

 

Nathan




#58921 convert data types to byte[] and back for streaming

Posted by sfx on 27 June 2014 - 02:35 AM in General Discussion

Hi nb63,
 
The .NET Micro Framework is only a subset of its much larger parent (a highly abridged version, if you will). As such, much of the BCL is not included in order to keep the on-device memory footprint appreciably smaller.
 
I have had a similar issue to you when dealing with custom objects, but have managed to cross process boundaries by using interfaces along with my own Xml messaging/command transport. In essence, this meant that I had to devolve my objects into a meaningful string representation (e.g. an Xml or JSON payload containing state, type and command data) that could then be later restored via a shared parser with interfaces. The NETMF has the facility to convert UTF8 strings to and from byte arrays, so making something similar to old-school .NET Remoting is one way of handling your problem, albeit without the same degree of flexibility.
 
Of course, all of this depends on whether you're using NETMF on each of your edge devices. If you're not, then these other devices will need a way to parse the content and then instantiate the state of your message within the context of its own environment.
 
I can understand that this would be a real bugbear for you, but hang in there. Given the electric (pun intended) pace of the IoT, I'm sure something like this would be on the NETMF team's radar.
 
Take care,
 
Nathan



#60231 enc28j60_lwip_recv: input alloc packet failed

Posted by sfx on 25 September 2014 - 09:31 PM in Netduino 2 (and Netduino 1)

Hi Wendo,

 

Can you show us how your code is being called from a timer? The more context we have the better we will be able to troubleshoot the problem. For instance, in the past, I have had problems with application "halts" when using timers in the conventional way.

 

Nathan




#59099 InterruptPort/Events slow the first time

Posted by sfx on 08 July 2014 - 01:14 PM in General Discussion

Hi Frode,

 

I'm running VS 2013 with NETMF 4.3 QFE1, but I didn't find the interrupt port to respond slowly during debugging. I ran your code a handful of times and each time found the actuating latency to be largely uninhibited.

 

Hope that helps.

 

Nathan




#59102 InterruptPort/Events slow the first time

Posted by sfx on 08 July 2014 - 01:23 PM in General Discussion

Hi Frode,

 

Yes, that's right. I just tested it again and found that the initial press after deploy was trapped by the debugger almost immediately.

 

Nathan




#59038 Is Netduino (or Gadgeteer) still viable?

Posted by sfx on 06 July 2014 - 08:13 AM in General Discussion

Hi Thomas,

 

I'm an experienced software developer on the Microsoft stack, but am only relatively new to the devices scene. Having said that, however, I have poured a great deal of my time recently (and a little money) into learning about the IoT, as well as some of those devices that will likely comprise the movement. Of course, no one can be sure how the IoT will mature, but the .NET Micro Framework appears to have developed a renewed focus in recent times - both by folks inside Microsoft as well as by the broader open source community. In my opinion, provided that SecretLabs can continue to innovate, Netduino seems to be well positioned to capitalise on the momentum that is moving the IoT forward.

 

As developers, what we care about most are the languages and frameworks that will be used to engage the hardware that supports our vision. The nascent IoT reminds me of how Cloud technology nearly a decade ago was being positioned to envelop everything. Indeed, it seems to be still touted as a software panacea of sorts. Whether you have bought into the Cloud punch-line or not, there is one thing that is undeniable; the improvements in tooling support to make Cloud technology a viable offering have been astounding.

 

If IoT is anything like the early days of Cloud computing, then you're likely not even going to be able to keep up with all the improvements that will start to occur within the devices you use, as well as the ones that you haven't even thought of yet.

 

Take care,

 

Nathan




#60126 Mayhew Labs Mux Shield II

Posted by sfx on 16 September 2014 - 12:12 PM in Beta Firmware and Drivers

Hi All,

 

I’ve been wanting to expand the number of analog inputs in my N2+ so I purchased a Mux Shield II (Mayhew Labs), but have been unable to get the thing working. All I’ve had to go on is the Arduino user guide and code samples which I’ve attempted to port to NETMF, unsuccessfully it seems. Has anyone else had any experience using this multiplexing shield? I noticed that a forum member, Eric Falsken, created a code sample for the previous Mux Shield but I’m unable to get that working with the new board. His post can be found here:

http://forums.netduino.com/index.php?/topic/2975-mayhew-labs-muxshield-and-ti-74hc4067/?hl=74hc4067

 

I would definitely appreciate some help on this since accessing more analog inputs without having to design my own circuit was something I was really hoping for with this shield.

 

The user guide for the shield can be found here:

http://mayhewlabs.com/media/Mux_Shield_II_User_Guide.pdf

 

Along with Arduino code samples:

http://mayhewlabs.com/code/MuxShield.zip

 

Take care,

 

Nathan




#58167 Multiple Sensors To Single Serial Port

Posted by sfx on 16 May 2014 - 10:43 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Chris,

 

I just received a reply from the manufacturer who had this to say in relation to my inquiry concerning the range finder in question:

 

"The SRF01’s are just connected in parallel. But before you do that you need to change the addresses to give each one a unique address." (underline mine)

 

Unfortunately, this doesn't help me much. Do you know of any resources that you could point me toward that show how to connect multiple serial I/O pins in parallel on a Netduino?

 

Thanks again,

 

Nathan




#58147 Multiple Sensors To Single Serial Port

Posted by sfx on 14 May 2014 - 10:09 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Chris,

This is fantastic! Especially for a newbie like me, this type of explanation really helps me to understand what connections go where and why. Very much appreciated!

If I may, can I trouble you for one more explanation? I’d like to know how I might go about wiring up multiple of the aforementioned sensors to pin D1 (COM1 TX) on the Netduino? Would this need to be done through some type of extender module, bread board, soldering, or something else? I’m just not sure how “many” serial I/O pins on a sensor should fit into a “single” Netduino serial port.

Best regards,

Nathan




#58171 Multiple Sensors To Single Serial Port

Posted by sfx on 16 May 2014 - 11:21 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi CW2,

 

Thank you for the clarification and the diagram. I definitely appreciate it. I'm guessing that a breadboard would be the best option for prototyping then. If it's not too much trouble, would you be able to draw a diagram (similar to your first) that demonstrates this process on a breadboard instead? Otherwise, might you know of a resource that could visually show such a parallel configuration?

 

I'm sorry for sounding like such a novice, but it is because I am; and I'm not sure where else I should go to get help with Netduino questions. :(

 

Take care,

 

Nathan




#58135 Multiple Sensors To Single Serial Port

Posted by sfx on 14 May 2014 - 05:41 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Chris,

 

Thanks so much for your swift reply - and thanks for the welcome! It's good to be here.

 

The sensor that I'm looking at is the SRF01, the details of which are here:

 

http://www.robot-ele...m/srf01tech.htm

 

The site mentions that the sensor supports a standard TTL level UART format, however there is a table outlining I2C actions as commands as well. Now I'm even more confused. Do you know of any resources that might help clarify these questions?

 

Thanks again.

 

Nathan




#58193 Multiple Sensors To Single Serial Port

Posted by sfx on 17 May 2014 - 08:58 AM in Netduino Plus 2 (and Netduino Plus 1)

CW2,

Wow! I’m blown away. Thanks so much for taking your own time to diagram that for me. It definitely helped me to understand the connections much better than when I was simply reading about them using the vendor’s documentation.

Mario,

Thank you also for explaining how these types of connections can work. I’m still a little puzzled, however. The documentation for the range finder has this to say:
 

Communication with the SRF01 is with both serial input and serial output on a single pin. The SRF01 will be listening at all times except when it is actually sending data, and will go back to listening as soon as its finished. To communicate with the SRF01, you simply need to send a "break", followed by two bytes, the address of the SRF01 (factory default is 1) and the command.

 

What I find confusing is the statement above that specifies that serial input and output is on a single pin. Additionally, the device appears to be listening for commands as opposed to continuously attempting to stream data. Have I got this wrong? If so, does this mean that I would need to connect the range finder up to a second pin in order to receive data?

Thanks guys. All of you have been extremely helpful.

Take care,

Nathan




#58132 Multiple Sensors To Single Serial Port

Posted by sfx on 14 May 2014 - 04:19 AM in Netduino Plus 2 (and Netduino Plus 1)

Hello,

In reading the fact sheets for certain sensors, I’ve found that some of them claim to be able to link multiple sensors through a single serial port as long as each sensor has a different address. This raises some confusing questions for me and so I am wondering if I may pose the following further questions to people here who are more experienced and knowledgeable than I am:

  1. If the sensor has a 3 or 4 Pin JST connection, how do I link multiple cables to a Netduino Plus 2 serial port?
  2. Is there some type of intermediary shield that can be used to join multiple cables to a single serial port?
  3. How do I go about assigning different addresses to multiple sensors if they are all connected to a single serial port?

I’m sorry if these questions appear to be annoyingly trivial, but I’m only new at all of this and was hoping that someone could either assist me in answering these questions or point me to relevant resources that do or both.

Any help you could provide would be greatly appreciated.

Regards,

Nathan




#59958 Netduino Analog Ports

Posted by sfx on 31 August 2014 - 12:28 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi All,

 

The Netduino has 6 analog ports (A0-A5). Can anyone tell me an easy way to extend the number of analog ports so that more can be addressed?

 

Take care,

 

Nathan




#59010 Netduino Plus 2 slow response (debugging)

Posted by sfx on 04 July 2014 - 11:14 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Fred007,

 

I have the same issues as you when using the 4.3 firmware and VS 2013. Sometimes the debugger drops just before starting a new session and when it does start it seems to be unusually slow while stepping through code.

 

Nathan




#58335 Netduino with inbuilt Wi-Fi?

Posted by sfx on 21 May 2014 - 09:25 PM in General Discussion

Hi Chris,

 

Thanks for the update. I was almost certain that this was something that you guys had considered already, so it is great to hear that it is on your radar.

 

I look forward to hearing about any updates concerning this in the future.

 

Best regards,

 

Nathan




#58323 Netduino with inbuilt Wi-Fi?

Posted by sfx on 21 May 2014 - 01:10 PM in General Discussion

Hi Folks,

 

Are there any plans to create a Netduino with inbuilt Wi-Fi? I noticed that Arduino has the Yun and it seems to me that a Netduino with similar functionality would be a tremendous boon for the product.

 

Best regards,

 

Nathan




#59140 NETMF SerialPort and "BreakState"

Posted by sfx on 10 July 2014 - 09:55 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Baxter,
 
While I'm waiting on the USB to TTL adapter to arrive, I thought I would try to implement the transistor based half-duplex UART configuration that you mentioned to me earlier:
 
 
I have attached a diagram for the circuit in the above web page, but my circuit reading ability is still in its infancy and so I have a strong hunch that I have got it wrong. When you get a moment, I was hoping you could point out the innacuracies that I have made.
 
As I have each of these parts I'm hoping to be able to test out this configuration using an SRF01 as well.
 
Nathan

Attached Thumbnails

  • Half-Duplex-Software-UART.jpg



#59113 NETMF SerialPort and "BreakState"

Posted by sfx on 09 July 2014 - 01:18 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Baxter,

 

It goes without saying, but I really appreciate your patience with me on this.

 

As per your suggestion, I’ve ordered a USB adapter similar to the one here:

http://www.ftdichip....0_R-100-500.pdf

 

Just so you know, I have multiple SRF01’s available to use and have tested with more than just one. Unless I received a bad batch, then they all seem to be working the same way (power flash appropriate to the tech specifications). Additionally, the code that you referenced is the code that I have actually been working with since the beginning – I’ve only been consulting the Arduino code as a secondary verification.

 

I’ve attached another image showing what I think you were saying about connecting a serial port to a diode. Please let me know if I’ve misunderstood you. Once I have the serial adapter, I’ll test out this configuration along with any further suggestions you have.

 

Nathan

Attached Thumbnails

  • Serial-Diode_v1.jpg



#59114 NETMF SerialPort and "BreakState"

Posted by sfx on 09 July 2014 - 02:22 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Baxter,

 

Further to your last response (and in addition to mine), I'm still uncertain as to how to layout a breadboard diagram for the "half duplex" solution that you mentioned - I guess I'm not clear on how both the RX and TX pins from the Netduino will connect to the logical AND gate. I've attached an image as to what I think you mean, but was hoping that you could validate it against the intent of your previous suggestion.

 

I’m wanting to try this out even before your serial adapter advice as I already have the necessary items and will likely have to wait a few days before I can acquire an adapter.

 

Thanks again.

 

Nathan

Attached Thumbnails

  • Half-Duplex-v1.jpg



#59118 NETMF SerialPort and "BreakState"

Posted by sfx on 09 July 2014 - 09:45 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Baxter,

 

No worries. I've cancelled the order and made another one for item (3) on your list. Hopefully I'll take delivery of it within the next few days.

 

Thanks also for the heads up regarding RS232 and TTL. Your explanation makes a lot of sense.

 

Regarding my Fritzing diagram, I have removed the blue wire as per your instructions but can confirm that this setup does not work using the GPIO with logical AND "break" substitute. More specifically, various commands can be sent without throwing an exception but the SerialPort.BytesToRead property is always zero.

 

Concerning the next to last diagram that I posted, I'll endeavour to build that out once my USB to TTL adapter arrives.

 

In the meantime, however, if you have any further suggestions or recommendations please let me know.

 

Nathan




#59156 NETMF SerialPort and "BreakState"

Posted by sfx on 11 July 2014 - 12:02 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Baxter,

 

Wow! Thanks so much for taking the time to diagram that circuit out for me. I really appreciate it.

 

Thanks also for the reference to EasyEDA. I haven’t heard of it before (not surprisingly), but will start playing with it immediately.

 

I’ve created your diagram on my Netduino Plus 2 and attached a picture of the result. I think I have everything in essentially the same order as you.

 

Unfortunately, I’m still not reading anything on the SerialPort.BytesToRead property. It is always zero. This has got me thinking that surely it shouldn’t be as difficult as it has been to set this kind of configuration up on the Netduino. After all, the Arduino can read these sensors without even having to move a circuit out onto a breadboard! As such, I’m left wondering whether there is something wrong with my own hardware or if the NETMF doesn’t play nice with serial communication outside of its standard operational boundaries. I find both of these possibilities quite troubling, but also think that it’s most likely the former rather than the latter.

 

I guess I’m going to have to wait until the USB to TTL adapter arrives in order to see whether my Netduino can operate against the vendor’s PC code.

 

I’m reluctant to have to abandon my venture and admit defeat, but I’m also aware that I might well be out of my depth here. Still, I’m very thankful for all the guidance you have provided over these last few days – I have definitely learned a lot. Nevertheless, I realise that I’m likely stealing your time away from other important matters. Hence, in the event that I can’t get anything working I was wondering if you happen to know of any companies that could prototype the setup that I’m after on the Netduino board? If there are facilities that can offer this kind of service I’d be happy to pay to at least get me a working sample from which I can then build upon.

 

Thanks again.

 

Nathan

Attached Thumbnails

  • NP2_Half-Duplex.jpg




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.