maybe, this is a bug related to I2C read.
basically, if you do I2C read, you should do a dummy I2C read command first.
for example, if you need one byte, do a dummy I2C read command first,
then read data you expect from I2C's data register again.


Best regards
  shan

2008/10/11  <[EMAIL PROTECTED]>:
> Send Tinyos-help mailing list submissions to
>        tinyos-help@millennium.berkeley.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> or, via email, send a message with subject or body 'help' to
>        [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>        [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tinyos-help digest..."
>
>
> Today's Topics:
>
>   1. Problem with python? (Nicole Neureiter)
>   2. How to use EEPROM in T2.1 (Li, Zhen Li)
>   3. Re: MICA2 + MICA2DOT ~ tinyOS-2.x (Juan Antonio L?pez Riquelme)
>   4. Re: CC2420 Software Acknowlegements (Dinesh Koya)
>   5. Temperature sensor on MTS300CB with MICAz in TinyOS       2.1
>      broken? (Matthias Gauger)
>   6. TinyOS 2.0.2 and Fedora 9 (Anthony Smee)
>   7. Re: TinyOS 2.0.2 and Fedora 9 (Anthony Smee)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 10 Oct 2008 21:05:34 +0200
> From: "Nicole Neureiter" <[EMAIL PROTECTED]>
> Subject: [Tinyos-help] Problem with python?
> To: tinyos-help@millennium.berkeley.edu
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset= "iso-8859-1"
>
> Hi everybody,
>
> I seem to have a problem with python when I'm using TOSSIM. I wrote a program
> to perform a hashing. When I use only 64 bit for the hash value the program
> runs without a problem. But when I want 128 bit the program terminates with
> "stack smashing detected: python terminated. Aborted (core dumped). Using dbg
> to give out messages for debugging I can see, that my program finishes before
> it gives this error. As I wanted to determine the troughput I want to let it
> run in a loop but this is impossible at the moment.
>
> I'm using TinyOS 2.0.2 under XUBUNTOS in VMplayer
>
> regards
>
> Nicole
> --
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 10 Oct 2008 16:29:57 -0500
> From: "Li, Zhen Li" <[EMAIL PROTECTED]>
> Subject: [Tinyos-help] How to use EEPROM in T2.1
> To: Tinyos-Help <tinyos-help@millennium.berkeley.edu>
> Message-ID:
>        <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi
>
> I want to use the EEPROM included in the MicaZ's micro-controller At128. But 
> in a T2.1 installation, all I can find with the word "eeprom" included is an 
> "eeprom.h" and it's not for direct use. So how can I write and read a few 
> bytes in the EEPROM?
>
> Thanks!
>
> Zhen Li
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081010/f2aa9ad8/attachment-0001.htm
>
> ------------------------------
>
> Message: 3
> Date: Sat, 11 Oct 2008 11:46:22 +0200
> From: Juan Antonio L?pez Riquelme <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] MICA2 + MICA2DOT ~ tinyOS-2.x
> To: <[EMAIL PROTECTED]>, <tinyos-help@millennium.berkeley.edu>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
>        reply-type=original
>
> Hello,
>
> You should verify your platforms parameters before.
>
> http://www.xbow.com/products/Product_pdf_files/Wireless_pdf/MICA2DOT_Datasheet.pdf
> http://www.xbow.com/products/Product_pdf_files/Wireless_pdf/MICA2_Datasheet.pdf
>
> I understand in the MICA2DOT table that there are three versions. You must
> work with MPR500CA.
>
> A greeting,
>
> Juan Antonio.
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <tinyos-help@millennium.berkeley.edu>
> Sent: Friday, October 10, 2008 3:14 PM
> Subject: [Tinyos-help] MICA2 + MICA2DOT ~ tinyOS-2.x
>
>
>> Hello.
>>
>> I would like to know if there is any possible way  to make these motes
>> communicate between themselves. I had been studying tinyOS some months
>> ago, but we had a problem in our labs, and I stopped for a while. But now
>> that I am returning, I am not managing to make these two different motes
>> communicate, and as far as I remember, I could do that, some months ago.
>>
>> For example, could I install BlinkToRadio on both mica2 and mica2dot
>> motes, and make them effectively send packets from one to another?
>>
>>
>>
>> Thanks,
>> Fernando.
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sat, 11 Oct 2008 15:30:40 +0530 (IST)
> From: Dinesh Koya <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] CC2420 Software Acknowlegements
> To: Hui Kang <[EMAIL PROTECTED]>,    TinyOS - Help
>        <tinyos-help@millennium.berkeley.edu>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="utf-8"
>
> Hello Hui
>
> Thanks for the clarification. I would like to know? the functional code of 
> how the software acks works. Where is it implemented in Tinyos? This would be 
> very helpful to me as I have to be specific about the working of software 
> acks.
>
> Thank you
>
> Regards
> Dinesh
>
> --- On Tue, 7/10/08, Hui Kang <[EMAIL PROTECTED]> wrote:
> From: Hui Kang <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] CC2420 Software Acknowlegements
> To: [EMAIL PROTECTED]
> Date: Tuesday, 7 October, 2008, 11:13 PM
>
> CC2420Config.setAutoAck has two parameters; following configuration is
> from the file. So you can enable or disable software ack or hardware ack
> by setting the parameters.
>
> - Hui Kang
>
> #if defined(CC2420_NO_ACKNOWLEDGEMENTS)
>    autoAckEnabled = FALSE;
> #else
>    autoAckEnabled = TRUE;
> #endif
>
> #if defined(CC2420_HW_ACKNOWLEDGEMENTS)
>    hwAutoAckDefault = TRUE;
>    hwAddressRecognition = TRUE;
> #else
>    hwAutoAckDefault = FALSE;
> #endif
>
> - Hui Kang
>
> Dinesh Koya wrote:
>> Hello Hui
>>
>> Thanks for your answer. I have another question, If I disable the
>> AUTOACK's in CC2420ControlP.nc, its means that I am only disabling the
>
>> Hardware acks. Am I right? How about Software Acks in this scenario?
>> Does they work?
>>
>> Thanks for any help
>>
>> Regards
>> Dinesh
>>
>> --- On *Mon, 6/10/08, Hui Kang /<[EMAIL PROTECTED]>/* wrote:
>>
>>     From: Hui Kang <[EMAIL PROTECTED]>
>>     Subject: Re: [Tinyos-help] CC2420 Software Acknowlegements
>>     To: [EMAIL PROTECTED]
>>     Cc: "TinyOS - Help"
> <tinyos-help@millennium.berkeley.edu>
>>     Date: Monday, 6 October, 2008, 5:57 PM
>>
>>     It is by PacketLinkC component.
>>
>>     - Hui
>>
>>     Dinesh Koya wrote:
>>     > Hi all
>>     >
>>     > I recently read the TEP 126
>>      titled CC2420 Radio Stack in which I found
>>     > that the CC2420 previous only used Hardware acknowledgments
> generated
>>     > automatically by the radio chip itself, but the current stack now
> uses
>>     > Software acknowledgments. Can some one tell me how to enable the
>>     > Software Acks and in which file of TinyOS is the functionality of
>
>>     > Software Acks defined. I am using TinyOS 2.0.2.
>>     >
>>     > Thanks for any help
>>     >
>>     > Regards
>>     > Dinesh
>>     >
>>     >
>>     >
> ------------------------------------------------------------------------
>>     > Add more friends to your messenger and enjoy! Invite them now.
>>     >
>>
> <http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/>
>>
>>     >
>>     >
> ------------------------------------------------------------------------
>>     >
>>     > _______________________________________________
>>     > Tinyos-help mailing list
>>     >
>>      Tinyos-help@millennium.berkeley.edu
>>     >
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>> From Chandigarh to Chennai - find friends all over India. Click here.
>>
> <http://in.rd.yahoo.com/tagline_groups_10/*http://in.promos.yahoo.com/groups/citygroups/>
>
>
>
>
>
>
>
>      From Chandigarh to Chennai - find friends all over India. Go to 
> http://in.promos.yahoo.com/groups/citygroups/
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081011/f92ba8d6/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Sat, 11 Oct 2008 16:01:22 +0200
> From: Matthias Gauger <[EMAIL PROTECTED]>
> Subject: [Tinyos-help] Temperature sensor on MTS300CB with MICAz in
>        TinyOS  2.1 broken?
> To: tinyos-help <tinyos-help@Millennium.Berkeley.EDU>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> Hello,
>
> I am trying to use the temperature sensor on the MTS300CB sensor board
> with a MICAz sensor node and TinyOS 2.1. However, whatever I do, I
> always get a '0' back as the result of querying the sensor.
> I know that this problem has been discussed on the list before. However,
> I couldn't really find a solution in any of the posts.
>
> Does anyone have an idea of how to solve this?
>
>
> Thanks,
>
>
> Matthias
>
>
>
> ------------------------------
>
> Message: 6
> Date: Sat, 11 Oct 2008 16:27:17 +0100
> From: Anthony Smee <[EMAIL PROTECTED]>
> Subject: [Tinyos-help] TinyOS 2.0.2 and Fedora 9
> To: <tinyos-help@millennium.berkeley.edu>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="Windows-1252"
>
>
> Hi there
>
> I have recently upgraded to Fedora 9 from 7, this entailed a complete rebuild 
> of my machine. I have since installed TinyIS 2.0.2 again, I was developing 
> under Fedora 7, and after completing the install, installing all the rpm 
> files as detailed on the page: 
> http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html, running CVS 
> and having all the environment variables set I tried to compile the 
> application Blink and get the following error messages:
>
> /opt/tinyos-2.x/tos/lib/tossim/tossim.c: In member function 
> ?variable_string_t Variable::getData()?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim.c:116: warning: deprecated conversion 
> from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim.c:117: warning: deprecated conversion 
> from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim.c: In member function ?Variable* 
> Mote::getVariable(char*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim.c:169: warning: deprecated conversion 
> from string constant to ?char*?
>
> I have searched on this but unable to find anything.
>
> Any advise?
>
>
>
> _________________________________________________________________
> Make a mini you and download it into Windows Live Messenger
> http://clk.atdmt.com/UKM/go/111354029/direct/01/
>
>
> ------------------------------
>
> Message: 7
> Date: Sat, 11 Oct 2008 16:59:26 +0100
> From: Anthony Smee <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] TinyOS 2.0.2 and Fedora 9
> To: <tinyos-help@millennium.berkeley.edu>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="Windows-1252"
>
>
> Further to the email below, I missed the following error messages:
>
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_numVariables_set(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1999: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2000: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_numVariables_get(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2066: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2067: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_variableNames_set(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2134: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2135: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_variableNames_get(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2202: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2203: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_variableTypes_set(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2270: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2271: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_variableTypes_get(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2338: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2339: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_variableArray_set(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2406: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2407: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_nesc_app_t_variableArray_get(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2474: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2475: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_delete_nesc_app_t(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2554: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2555: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_new_Mote(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2698: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2699: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function ?PyObject* 
> _wrap_new_Tossim(PyObject*, PyObject*)?:
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2997: warning: deprecated 
> conversion from string constant to ?char*?
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2998: warning: deprecated 
> conversion from string constant to ?char*?
> g++ -c  -shared -fPIC -o build/micaz/tossim.o -g -O0 
> -DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"root\" 
> -DIDENT_HOSTNAME=\"FedAnt.bikefact\" -DIDENT_USER_HASH=0x7850d686L 
> -DIDENT_UNIX_TIME=0x48f0cb2bL -DIDENT_UID_HASH=0x42e127fdL 
> /opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.5 
> -I/opt/tinyos-2.x/tos/lib/tossim
>
>
>
>
> ----------------------------------------
>> From: [EMAIL PROTECTED]
>> To: tinyos-help@millennium.berkeley.edu
>> Subject: TinyOS 2.0.2 and Fedora 9
>> Date: Sat, 11 Oct 2008 16:27:17 +0100
>>
>>
>> Hi there
>>
>> I have recently upgraded to Fedora 9 from 7, this entailed a complete 
>> rebuild of my machine. I have since installed TinyIS 2.0.2 again, I was 
>> developing under Fedora 7, and after completing the install, installing all 
>> the rpm files as detailed on the page: 
>> http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html, running CVS 
>> and having all the environment variables set I tried to compile the 
>> application Blink and get the following error messages:
>>
>> /opt/tinyos-2.x/tos/lib/tossim/tossim.c: In member function 
>> ?variable_string_t Variable::getData()?:
>> /opt/tinyos-2.x/tos/lib/tossim/tossim.c:116: warning: deprecated conversion 
>> from string constant to ?char*?
>> /opt/tinyos-2.x/tos/lib/tossim/tossim.c:117: warning: deprecated conversion 
>> from string constant to ?char*?
>> /opt/tinyos-2.x/tos/lib/tossim/tossim.c: In member function ?Variable* 
>> Mote::getVariable(char*)?:
>> /opt/tinyos-2.x/tos/lib/tossim/tossim.c:169: warning: deprecated conversion 
>> from string constant to ?char*?
>>
>> I have searched on this but unable to find anything.
>>
>> Any advise?
>>
>>
>>
>> _________________________________________________________________
>> Make a mini you and download it into Windows Live Messenger
>> http://clk.atdmt.com/UKM/go/111354029/direct/01/
>
> _________________________________________________________________
> Make a mini you and download it into Windows Live Messenger
> http://clk.atdmt.com/UKM/go/111354029/direct/01/
>
>
> ------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> End of Tinyos-help Digest, Vol 66, Issue 36
> *******************************************
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to