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.
Photo

Communication between Two Netduino's


  • Please log in to reply
5 replies to this topic

#1 karthick

karthick

    Member

  • Members
  • PipPip
  • 12 posts

Posted 24 September 2011 - 10:51 PM

Hi to all 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? Thanks in advance

#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 25 September 2011 - 10:40 AM

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?

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).

#3 karthick

karthick

    Member

  • Members
  • PipPip
  • 12 posts

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 Stefan W.

Stefan W.

    Advanced Member

  • Members
  • PipPipPip
  • 153 posts

Posted 25 September 2011 - 06:15 PM

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.
I believe that no discovery of fact, however trivial, can be wholly useless to the race, and that no trumpeting of falsehood, however virtuous in intent, can be anything but vicious.
-- H.L. Mencken, "What I Believe"

#5 karthick

karthick

    Member

  • Members
  • PipPip
  • 12 posts

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 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 26 September 2011 - 11:30 AM

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.....

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.
Cheers
Biggest fault of Netduino? It runs by electricity.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.