Code Monkey home page Code Monkey logo

Comments (4)

jan-kiszka avatar jan-kiszka commented on July 25, 2024

Sounds a bit like the targeted device (0x1d or 0x28?) is getting angry and blocks the bus afterwards.

You can test if i2c communication works via mraa's python binding in general by talking to that AT24 EEPROM at 0x54.

from meta-iot2000.

jan-kiszka avatar jan-kiszka commented on July 25, 2024

Is this issue still persisting?

from meta-iot2000.

gramss avatar gramss commented on July 25, 2024

Hello,

Reading 300 bytes from 0x54 is no problem. Seems to be related to the BNO055 device that Iā€™m using.

Thank you for your help! :)

from meta-iot2000.

HelloHungryImDad avatar HelloHungryImDad commented on July 25, 2024

Sorry to necropost, but I am facing the same issue with a BMP280 sensor.

I can read a single byte from a register without issue but, like mrlowalowa, multiple byte reads causes the bus to block and needs a reboot to fix. I suspect this may be due to an inappropriate I2C bus speed for these sensors.

I verified that the same sensor works on Arduino and Raspberry Pi, whose I2C buses default to (or can be set to) standard mode (100 kbits/s), whereas I believe that the IoT2000's bus defaults to fast mode (400 kbits/s).

On the IoT2020 If instead of using the mraa function for reading multiple bytes, I instead call the single byte read multiple times I get all the data back and the bus stays up. Since this method is slower than the multiple byte in one read method, it follows that the bus speed is too high for this sensor.

Is there any way to adjust the I2C bus speed on the IoT2020? I checked the mraa documentation for galileo but the IoT2020 does not appear to be using the same driver for the I2C chip.

I also have a thread running on the Siemens IoT2000 forum with additional test results.

from meta-iot2000.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.