Hi Andris, Thx for ur reply. The chip means MCU or sensor chip connected to MCU through I2C? My MCU is ATMEL Mega 128L, and my sensor chip is MPU9150 from InvenSense.
The problem I encounter is: there are two device addresses on the sensor chip. The I2C driver works well with simple reading and writing to the main device address. In order for me to access register info on the other device, I need to set I2C by-pass on main address. If I set it wrongly, and when I use second device address to read register information, the I2C driver hangs like: I2CPacket.write()/read() == SUCCESS, but the I2CPacket.writeDone()/readDone() never got triggered. Best Regards dajiang ________________________________________ From: András Bíró [[email protected]] Sent: Friday, 15 February, 2013 4:02:35 PM To: Miklos Maroti Cc: Eric Decker; He Dajiang (I2R); Tinyos-Help Subject: Re: [Tinyos-help] I2C read and write API Hi Guys, No it doesn't have new implementation (but it will be soon). However, I fixed a lot of bugs in the atm128 i2c driver, trust me, it works. We're using it with a lot of chips. What is the chip you're trying to use? Andris Institute for Infocomm Research disclaimer: "This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you." _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
