Reply
Thread Tools
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#1
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

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)




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

Last edited by kimmoli; 2014-04-07 at 13:49.
 

The Following 35 Users Say Thank You to kimmoli For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#2
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
Attached Images
 
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH

Last edited by kimmoli; 2014-03-15 at 08:55.
 

The Following 11 Users Say Thank You to kimmoli For This Useful Post:
Posts: 100 | Thanked: 389 times | Joined on Dec 2013 @ Finland
#3
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
 

The Following 2 Users Say Thank You to skvark For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#4
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.
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 

The Following 2 Users Say Thank You to kimmoli For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#5
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
Attached Images
  
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 

The Following 5 Users Say Thank You to kimmoli For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#6
Added quick GPIO control to the i2ctool
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 

The Following 5 Users Say Thank You to kimmoli For This Useful Post:
Posts: 100 | Thanked: 389 times | Joined on Dec 2013 @ Finland
#7
Thanks a lot!
 
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#8
Gen 2 pcb just arrived
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 

The Following 5 Users Say Thank You to kimmoli For This Useful Post:
Posts: 123 | Thanked: 268 times | Joined on Dec 2009 @ Helsinki, Finland
#9
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...
 
Posts: 12 | Thanked: 24 times | Joined on Feb 2014 @ Espoo, Finland
#10
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:47.