Active Topics

 


Closed Thread
Thread Tools
Posts: 10 | Thanked: 16 times | Joined on Mar 2013
#211
What a nice Idea. Extra battery of keyboard doesn't have to be connected to I2C. Just bigger one or many in the batteryslot and part of the cover that grips to phone.

Is it wrong to power lights of keyboard straight from the battery with a single switch when keyboard is pulled?
 
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#212
Noticed few things, 3.3V is swithed off when the OH switch is released, and when putting cover back on, toh-core (or maybe 'tohd' - the other half daemon?) is looking for at24 eeprom from i2c-1 bus (addresses 0x50 through 0x57.

Devices when OH removed
Code:
[root@localhost devices]# ls
0-0028   12-0012  3-0020  4-001a  4-0048  4-006c  i2c-12
0-0030   12-0039  3-0038  4-0020  4-0060  i2c-0   i2c-3
12-0010  12-006a  4-0015  4-002a  4-0066  i2c-1   i2c-4
and when installed
Code:
[root@localhost devices]# ls
0-0028  1-0051  1-0054  1-0057   12-0039  3-0038  4-0020  4-0060  i2c-0   i2c-3
0-0030  1-0052  1-0055  12-0010  12-006a  4-0015  4-002a  4-0066  i2c-1   i2c-4
1-0050  1-0053  1-0056  12-0012  3-0020   4-001a  4-0048  4-006c  i2c-12
some dmesg entries:
[25526.724549] at24 1-0050: 2048 byte at24 EEPROM, read-only, 0 bytes/write
[25526.755100] qup_i2c qup_i2c.1: I2C slave addr:0x50 not connected
[25526.776220] toh-core toh-core.0: No valid eeprom present

any knowledge what toh-core , and what it is expecting to read from this eeprom?
 

The Following 11 Users Say Thank You to kimmoli For This Useful Post:
Posts: 339 | Thanked: 1,623 times | Joined on Oct 2013 @ France
#213
Originally Posted by kimmoli View Post
what it is expecting to read from this eeprom?
Probably same principle as Beagle Bone caps:
To make the system "plug and play", every other half contains an eeprom with some configuration data, so that when you plug one, the phone requests that info and then knows what to do : load that driver (for the useful I2C chip along the eeprom), run that program, ...

Just and educated guess. To be confirmed by someone from Jolla.
Nice finding kimmoli !
 

The Following User Says Thank You to Zeta For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#214
Just ordered pcb for my i2c breakout board for jolla (has at24c02, 1.8V LDO for it and i2c level converter to attach also 3.3v i2c devices if/when the support is released within sdk), and printing "myOH" to hold the board in place.

Also just read this http://www.jollausers.com/2013/12/fi...own-to-public/
tempting... i have few wireles charger from dx waiting to be used for something else than supercapacitor-led-lamp-thing-charger.
 
Posts: 123 | Thanked: 108 times | Joined on Oct 2008 @ Prague, Czech
#215
What about TI LM8330TME [/NOPB] ?
http://www.ti.com/lit/ds/snvs839a/snvs839a.pdf

Hmm .. scary pins .. must be pressed to pcb .. need more space in TOH ..

Last edited by Kaacz; 2013-12-21 at 21:11.
 
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#216
Made simple i2c scanning app,



and measured that there is i2c available on the bus.



To get 3.3V out, i need to wait for next update... but my pcb hasn't yet arrived anyway - when it arrives probing will be so much easier.
 

The Following 14 Users Say Thank You to kimmoli For This Useful Post:
Posts: 1,104 | Thanked: 5,652 times | Joined on Feb 2010 @ Holland
#217
can you send me that app? i could check whether it recignizes the tca8424! will work with external 3.3v right?
 
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#218
Originally Posted by dirkvl View Post
can you send me that app? i could check whether it recignizes the tca8424! will work with external 3.3v right?
noo , you need external 1.8V, as the i2c on Jolla is 1.8V (seems that TCA8424 will work downto 1.65V)

The app can be downloaded here-> i2ctest

You need to start this as root from console, otherwise it doesn't work at all.
Select /dev/i2c-1 on first page, then pull down to start scanning.

(HB is just a counter testing C++/QML interaction as if you start the app from console when the screen is off, the app doesn't work correctly)

It tries just to read from the device without settings the buffer address first. If it works, you should see green box at address 38.

When i get my own board from oshpark, i will add some i2c read/write functions to this (piic and diic)

All disclaimers will apply
 

The Following 2 Users Say Thank You to kimmoli For This Useful Post:
Posts: 1,104 | Thanked: 5,652 times | Joined on Feb 2010 @ Holland
#219
Originally Posted by kimmoli View Post
noo [url]
You need to start this as root from console, otherwise it doesn't work at all.
Since I am more a hardware -than a software- kind of guy, how do I start it as root?

I already got it installed and running, but the chip is not yet recognized.
 
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#220
Originally Posted by dirkvl View Post
Since I am more a hardware -than a software- kind of guy, how do I start it as root?

I already got it installed and running, but the chip is not yet recognized.
In fingerterm:
Code:
devel-su
<password from developer mode SSH>
/usr/bin/i2ctest
edit: for more friendly <sudo command>, you can 'pkcon install sudo' and then add this to /etc/sudoers file:
Code:
nemo ALL=(ALL) NOPASSWD: ALL
Should skip asking for password too

Last edited by szopin; 2013-12-28 at 16:52.
 

The Following 5 Users Say Thank You to szopin For This Useful Post:
Closed Thread

Tags
keyboard, limited-edition, otherhalf, qwerty


 
Forum Jump


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