acassis commented on PR #2447:
URL: https://github.com/apache/nuttx-apps/pull/2447#issuecomment-2237424923

   > > @linguini1 did you test i2ctools on Linux and look at logic analyzer? 
Let's confirm Linux also do this way.
   > 
   > I won't have a change to access a logic analyzer for a little while. I had 
a look at the description for the Linux I2C tools here:
   > 
   > https://github.com/MLAB-project/i2c-tools/blob/master/tools%2Fi2cdetect.8
   > 
   > It seems they either use a single byte read (as was the previous 
implementation) or a write command, depending on the address by default. 
Although they do warn that scanning the bus can affect the I2C devices since 
there is no actual standard for scanning in the I2C protocol.
   > 
   > Perhaps a good compromise would be trying to read one byte from the 
address, and if that fails, attempt to send a 0 byte write?
   
   I'm curious to know if Linux i2ctool is able to detect these sensors.
   
   @linguini1 maybe to avoid David's worryings (in fact it could break I2C for 
arch that don't work when msgc is 0 or msg is NULL), I suggest you implementing 
your suggestion as special search case (like -z for zero byte reading).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to