
Communication between Two Netduino's
#1
Posted 24 September 2011 - 10:51 PM
#2
Posted 25 September 2011 - 10:40 AM
The Netduino microcontroller supports only Master mode, so you'd need to implement I2C slave in software (i.e. write native C/C++ driver, due to precise timing requirements that cannot be achieved in managed code).I am trying to establish Master and Slave Connection Between two netduino's with the help of I2C bus.....i have struck at addressing the Netduino...can anyone guide me?
At the moment, the only interface available to connect two Netduinos is SerialPort (SPI slave is not supported in the current version of .NET Micro Framework).
#3
Posted 25 September 2011 - 11:09 AM
The Netduino microcontroller supports only Master mode, so you'd need to implement I2C slave in software (i.e. write native C/C++ driver, due to precise timing requirements that cannot be achieved in managed code).
At the moment, the only interface available to connect two Netduinos is SerialPort (SPI slave is not supported in the current version of .NET Micro Framework).
Hi CW2
Thanks for the reply..... I am a new to programming world.... Can you please give a outline of what to do to implement I2C slave in software...
#4
Posted 25 September 2011 - 06:15 PM
-- H.L. Mencken, "What I Believe"
#5
Posted 26 September 2011 - 09:37 AM
It's one of the things where, if you don't know how to approach it, you probably don't want to be doing it (because it'll cost you too much time). It's not inside the "normal" use case of a netduino - you'd need to take the source of the firmware, add the required functionality there, compile it and overwrite the firmware on your netduino with your custom one.
hi stefan,
I left I2C and now trying trying to connect 2 netduino to one netduino using RS232 as it has two serial port pins.....Anyway thanks for your reply.....
#6
Posted 26 September 2011 - 11:30 AM
You probably mean using the "UART" (or USART). The RS232 is a particular hardware/software interface that is an overkill for connecting just two Netduinos.I left I2C and now trying trying to connect 2 netduino to one netduino using RS232 as it has two serial port pins.....Anyway thanks for your reply.....
Cheers
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users