BGS5T I2C communication and temperature sensors | Telit Cinterion IoT Developer Community
November 11, 2014 - 9:40am, 8928 views
Hello,
first I would like to ask if anyone tryed to use temperature sensor (IT TMP100, TC74, ...) that uses I2C communication? Does anyone have any recomendation which sensor to use and instructions or code example?
Second thing, is there any tutorial or code example for I2C communication with other devices in Java?
Regards
Jure
Hi Bartłomiej,
I allready tryed sending <0900091> but I get {0-0002} in return. Here is the protocol:
Regards
Jure
Hi Jure,
It is hard to give advices to communication with the device I don't know and don't have on my desk.
This read byte format is strange for me.
I'd try to send something like this:
<a9000> // <a address + write bit, temperature register
<b910001> // <b address + read bit, amount of data to be read as 16 bits (according to AT commands specification)
Or try to send it in one command:
<a9000><b910001>
Trying to strictly translate the frame from your documentation would produce something like this:
<9000<91> // but I don't rather believe it would be accepted.
Hope it's any helpful...
Regards,
Bartłomiej
Hi Bartłomiej,
I can't belive it but it works :) Your first and second advice return right response. Thank you a lot.
Best Regards
Jure
Hi Jure,
I'm really happy to hear that!
Best regards,
Bartłomiej