Serial Port Settings...
#1
Posted 05 March 2012 - 03:28 AM
#2
Posted 05 March 2012 - 05:18 AM
is there a spec somewhere which shows COM1 relationship to pins?
Grab the pinout cards Tecchie made.
http://forums.netdui...5-pinout-cards/
#3
Posted 05 March 2012 - 08:14 AM
The Netduino microcontroller has only two USART hardware modules and so called Debug Unit, which acts as third one, but has limited features. The Debug Unit is available as COM1 and one USART (USART0) as COM2, mainly because there is only very few pins available for features to be broken out (result of [hard] design decisions).Second, why am I seemingly limited to com1 or 2 in creating a com port? Why can't I utilize 8 pairs for fully 8 serial comminication instances? Or can I?
Technically, it is possible to implement UART in software, but managed code (C#) is too slow for that (at least for baudrates that can be used in practical scenarios; because .NET MF does not have JIT, the code is interpret) and there is no native driver (C/C++) for this feature yet.
Yes, you can connect only two serial comm devices to Netduino, if they need both Rx and Tx lines; it is also possible to use multiplexing (requires external circuitry). Please note Netduino is more like general purpose board than a specialized serial comm board (e.g. for industrial purposes ?). You might need to consider using a serial comm expansion, for example a Netduino-compatible shield or a dedicated circuit that can be driven from Netduino (over UART, SPI, I2C etc.). In this case you can have more real-time-like behavior, which is not achievable by Netduino alone, due to .NET Micro Framework limitations (it is not real-time system).Then there is only a 1/2 relationship between a bet dunio and the number of serial comm devices that you can attach to it? That doesn't seem right and a huge design barrier.
#4
Posted 05 March 2012 - 03:11 PM
#5
Posted 05 March 2012 - 03:18 PM
What sensors do you have? Or are you in design phase?Say I want to build a system that has 100 temperature sensors. I'm looking at 50 netduino devices so that I can collect data from all of them?
#7
Posted 06 March 2012 - 04:06 AM
That really seems like a big problem. Say I want to build a system that has 100 temperature sensors. I'm looking at 50 netduino devices so that I can collect data from all of them? An thats assuming that I find another way to transmit the data back to a central respository not using serial?
Anyone have a examples of a compatible comm board that allows for somthing like 8 or 16+ seriable ports to be added and managed from the netduino?
Thanks
Matthew
I have a setup that has multiple sensors all using I2C. If you get the right sensors, there shouldn't be an issue having several
#8
Posted 06 March 2012 - 04:21 AM
I don't have clear what you are going to do. 100 sensors spread everywhere, and their measure collected into a server?
What's the supposed role of the Netduino(s)?
Serials...
There's no chips with dozen of serials, because it has no advantages. The easiest way is multiplexing the sensors.
Suppose you wish to read 16 sensors with a single Netduino. You can use a 74HC4067, which is a 16-to-1 multiplexer: the single signal available by the Netduino can be actually split to 16 paths (i.e. sensors).
Please, note that *any* of the available protocols (I2C, SPI, USART, 1-wire, etc) imply that the wiring from the Netduino to the sensor(s) has to be very short (15-20 cm max). If you seek for a long cable solution, you must consider a complex circuit.
Hope it helps
Cheers
#9
Posted 06 March 2012 - 07:02 AM
DHTxx sensor uses proprietary 'Single wire' protocol, not to be confused with Maxim/Dallas 1-Wire. DHTxx has different timing, does not support multidrop because it does not have identifier etc. It does not require USART, the communication can happen over any general IO pin, as Mario suggested you can use multiplexer to address multiple devices. The driver for DHTxx is available in DHT11/22 sensor managed driver topic.Mososky, it seems to me that the sensor is using the 1-wire protocol, not the USART one.
However, DHTxx has limited resolution and rather low accuracy, so you might want to consider a different sensor - I like for example DS18B20 1-Wire thermometer. It is more expensive, but calibrated, 12 bit resolution, ±0.5°C accuracy and you can have multiple devices on one 'wire' (pin), in parasite power mode it requires only data and ground lines.
#10
Posted 09 March 2012 - 09:29 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users