Re: [Tinyos-help] Question about I2C

2006-06-01 Thread Matthew J Whelan
Jose,You can communicate through I2C with external devices using Tinyos 1.x. Take a look at tos/platforms/MSP430/MSP430I2CPacket and tos/platforms/telosb/I2CPacketC  I2CPacketM. Make sure you take care to arbitrate the bus, since the radio chip is on the same USART.Regards,Matt[EMAIL PROTECTED] wrote: -To: tinyos-help@Millennium.Berkeley.EDUFrom: [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]Date: 06/01/2006 02:31PMSubject: [Tinyos-help] Question about I2CI need to know if someone it's been working with the I2C protocol in the TMOTE iv, specifically with Tiny OS 1.1.X distribution, not in Boomerang.I need to connect the node in slave mode to another hardware. Somebody have a example or idea of how could do this ?? Thank you in advance,-- José Ulloa SuárezJefe Area de DesarrolloWiseConn S.A.___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Question about I2C

2006-06-01 Thread jose . ulloa . suarez
Even though I've reviewed those archives, but I have the following doubt.  
In the MSP430I2CC.nc file contained the primitives for setting the operation 
modes. Start is generated by the I2CPacket component, whenever read or write 
is made. In the StdControl.start a call to USARTControl.setModeI2C is made  
where is configurate for to work like a master.  My question is in which 
moment it is suitable to make the call for to configurate in slave and to 
assign the OwnAddress??.  After knowing clearly this, when recognizing tmote 
its direction would generate a ACK immediately, and would begin the 
reception? 
If this is correct, these had to be processed byte to byte and which events 
are generated when information is received??.

Thank you very much. 

-- 
José Ulloa Suárez


El Jueves, 1 de Junio de 2006 14:38, Matthew J Whelan escribió:
 FONT face=Default Sans Serif,Verdana,Arial,Helvetica,sans-serif
 size=2DIVFONT size=2PJose,/PPYou can communicate through I2C
 with external devices using Tinyos 1.x.nbsp; Take a look at
 tos/platforms/MSP430/MSP430I2CPacketnbsp; and
 tos/platforms/telosb/I2CPacketC amp; I2CPacketM.nbsp; Make sure you take
 care to arbitrate the bus, since the radio chip is on the same
 USART./PPFONT size=2Regards,/FONT/PPFONT
 size=2Matt/PP/FONT/FONTBRnbsp;/P/DIVFONT
 color=#990099[EMAIL PROTECTED] wrote:
 -BRBR/FONTblockquote style=PADDING-RIGHT: 0px; PADDING-LEFT:
 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #00 2px solid; MARGIN-RIGHT:
 0pxTo: tinyos-help@Millennium.Berkeley.EDUBRFrom:
 [EMAIL PROTECTED]BRSent by:
 [EMAIL PROTECTED]BRDate: 06/01/2006
 02:31PMBRSubject: [Tinyos-help] Question about I2CBRBRFONT
 face=Default Monospace,Courier New,Courier,monospace size=2  I need to
 know if someone it's been working with the I2C protocol in the TMOTE iv,
 specifically with Tiny OS 1.1.X distribution, not in Boomerang.BRI need
 to connect the node in slave mode to another hardware. Somebody have a
 example or idea of how could do this ?? BRThank you in advance,BR--
 BRJosé Ulloa SuárezBRJefe Area de DesarrolloBRWiseConn
 S.A.BRBR___BRTinyos-help
 mailing listBRTinyos-help@Millennium.Berkeley.EDUBRA
 href=https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-
help target=blank
 https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
/ABR/FONT/blockquotebr/FONT

-- 
José Ulloa Suárez
Jefe de Desarrollo
WiseConn S.A.

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Question about I2C

2006-06-01 Thread Matthew J Whelan
Jose,Sorry, It didn't register the first time I read your question that you are wanting to use the Tmote as a slave device. If I were you, Iwould forget about using any of the components or interfaces available, except for reference. I would recommend taking a look at chapter 15 of the MSP430 F16xx Family User Guide (found at ti.com) which deals with I2C setup. Using that as a reference, you should be able to access registers directly to configure and read from the USART0 as I2C.Matt[EMAIL PROTECTED] wrote: -To: Matthew J Whelan [EMAIL PROTECTED]From: [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]Date: 06/01/2006 03:40PMcc: tinyos-help@Millennium.Berkeley.EDUSubject: Re: [Tinyos-help] Question about I2CEven though I've reviewed those archives, but I have the following doubt. In the MSP430I2CC.nc file contained the primitives for setting the operation modes. Start is generated by the I2CPacket component, whenever read or write is made. In the StdControl.start a call to USARTControl.setModeI2C is made where is configurate for to work like a master. My question is in which moment it is suitable to make the call for to configurate in slave and to assign the OwnAddress??. After knowing clearly this, when recognizing tmote its direction would generate a ACK immediately, and would begin the reception? If this is correct, these had to be processed byte to byte and which events are generated when information is received??.Thank you very much. -- José Ulloa SuárezEl Jueves, 1 de Junio de 2006 14:38, Matthew J Whelan escribió: FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2DIVFONT size=2PJose,/PPYou can communicate through I2C with external devices using Tinyos 1.x.nbsp; Take a look at tos/platforms/MSP430/MSP430I2CPacketnbsp; and tos/platforms/telosb/I2CPacketC amp; I2CPacketM.nbsp; Make sure you take care to arbitrate the bus, since the radio chip is on the same USART./PPFONT size=2Regards,/FONT/PPFONT size=2Matt/PP/FONT/FONTBRnbsp;/P/DIVFONT color=#990099[EMAIL PROTECTED] wrote: -BRBR/FONTblockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #00 2px solid; MARGIN-RIGHT: 0px"To: tinyos-help@Millennium.Berkeley.EDUBRFrom: [EMAIL PROTECTED]BRSent by: [EMAIL PROTECTED]BRDate: 06/01/2006 02:31PMBRSubject: [Tinyos-help] Question about I2CBRBRFONT face="Default Monospace,Courier New,Courier,monospace" size=2 I need to know if someone it's been working with the I2C protocol in the TMOTE iv, specifically with Tiny OS 1.1.X distribution, not in Boomerang.BRI need to connect the node in slave mode to another hardware. Somebody have a example or idea of how could do this ?? BRThank you in advance,BR-- BRJosé Ulloa SuárezBRJefe Area de DesarrolloBRWiseConn S.A.BRBR___BRTinyos-help mailing listBRTinyos-help@Millennium.Berkeley.EDUBRA href="" target=blank https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help/ABR/FONT/blockquotebr/FONT-- José Ulloa SuárezJefe de DesarrolloWiseConn S.A.___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help