maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   The Other Half (https://talk.maemo.org/forumdisplay.php?f=59)
-   -   I2C Tool for Jolla (https://talk.maemo.org/showthread.php?t=92329)

kimmoli 2014-01-09 20:28

I2C Tool for Jolla
 
Jolla I2C tool


NOTICE:
Devaamo has lots of unassembled myhalf PCBs (maybe some component-kits too).
Please approach them if you need only one (or two)
Clip to attach Devaamo board (0.8mm) can be printed from this STL file:
https://github.com/kimmoli/myhalf/bl...-clip-08mm.stl


NEW Devaamo modified design V1.20 in my github now
https://github.com/kimmoli/devaamoMyhalf

The tool for probing and debugging I2C bus of Jolla.

Installer package: Download here

Source code: github

http://talk.maemo.org/images/icons/icon4.gif Since 1.0.4.20 i2ctool can be started from application launcher icon (and does not need root-rights)

I2C addressing used is the correct 7-bit (so don't mind the read/write bit)

https://lh3.googleusercontent.com/-7...0109215224.jpghttps://lh5.googleusercontent.com/-Z...0109222521.jpghttps://lh6.googleusercontent.com/-x...0109214808.jpghttps://lh6.googleusercontent.com/-J...0109214739.jpg


If you start i2ctool from command line, it provides messages also there.

Code:

Vdd set OK
probing /dev/i2c-1 address 38: read failed
probing /dev/i2c-1 address 39: read failed
probing /dev/i2c-1 address 3a: read failed
probing /dev/i2c-1 address 3b: read failed
probing /dev/i2c-1 address 3c: device found at address 3c
probing /dev/i2c-1 address 3d: read failed
writing to address 3c: a5 00 55
write ok
reading from address 3c count 2
read 41 41


kimmoli 2014-01-27 22:57

Re: I2C Tool for Jolla
 
1 Attachment(s)
NOTE This is outdated design - please look Devaamo V1.20
Files in my github: https://github.com/kimmoli/devaamoMyhalf

Additional to the software, there is also hardware available.

Old version eagle files also in https://github.com/kimmoli/myhalf
bill of materials in readme

You can easily order this board from OSHPark - 3 pcs for $17.50

skvark 2014-02-02 22:50

Re: I2C Tool for Jolla
 
I was wondering... can the GPIO pin be pulled up/down via software? I'll probably need that kind of functionality at some point. And btw, this tool is great for debugging :)

kimmoli 2014-02-03 22:10

Re: I2C Tool for Jolla
 
GPIO... hm... at least it didn't complain anything when setting direction as out and writing a value.
have to check does it really toggle state of the pin.

If it does, i can add control of it to the i2ctool.

kimmoli 2014-02-05 17:44

Re: I2C Tool for Jolla
 
2 Attachment(s)
ok. GPIO (INT) seems to work as output.

Code:

echo 67 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio67/direction
# changing direction will set output to low
echo 0 > /sys/class/gpio/gpio67/value
echo 1 > /sys/class/gpio/gpio67/value

Picture below is from making pulse from command line
echo 1 > value ; echo 0 > value


and the other one is from setting it back to input, it goes "slowly" up as it is pulled high with pull-up resistor.
echo in > direction

kimmoli 2014-02-05 18:57

Re: I2C Tool for Jolla
 
Added quick GPIO control to the i2ctool

skvark 2014-02-05 21:33

Re: I2C Tool for Jolla
 
Thanks a lot! :)

kimmoli 2014-02-13 08:53

Re: I2C Tool for Jolla
 
Gen 2 pcb just arrived
https://lh3.googleusercontent.com/-v...140213_002.jpg

Tsippaduida 2014-02-13 12:04

Re: I2C Tool for Jolla
 
Very much appreciated. I have just ordered a set of these. if I can invest the time for tinkering, I will report back with anything I am able to discover.

Most of the time I'm just a wanna be tinkerer, but I have 3 Jollas waiting for my itching fingers...

Toxip 2014-02-20 10:11

Re: I2C Tool for Jolla
 
Any chance you have any extra ones to sell? I would rather buy just 1 and not 3. I live in espoo too so if you're willing to sell one we can meetup.


All times are GMT. The time now is 03:49.

vBulletin® Version 3.8.8