|
2014-01-20
, 18:35
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#12
|
[root@localhost 1-0050]# xxd eeprom 0000000: 1234 5678 0101 0000 3000 0500 4000 0600 .4Vx....0...@... 0000010: ffff ffff ffff ffff ffff ffff ffff ffff ................ 0000020: ffff ffff ffff ffff ffff ffff ffff ffff ................ 0000030: 4346 473f 00ff ffff ffff ffff ffff ffff CFG?............ 0000040: 5544 4154 4100 ffff ffff ffff ffff ffff UDATA........... 0000050: ffff ffff ffff ffff ffff ffff ffff ffff ................ 0000060: ffff ffff ffff ffff ffff ffff ffff ffff ................ 0000070: ffff ffff ffff ffff ffff ffff ffff ffff ................ 0000080: ffff ffff ffff ffff ffff ffff ffff ffff ................ 0000090: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000a0: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000b0: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000c0: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000d0: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000e0: ffff ffff ffff ffff ffff ffff ffff ffff ................ 00000f0: ffff ffff ffff ffff ffff ffff ffff ffff ................
[root@localhost toh-core.0]# ll total 0 -r--r----- 1 root root 4096 Jan 20 20:30 cfg_addr -r--r----- 1 root root 4096 Jan 20 20:30 cfg_size -r--r----- 1 root root 4096 Jan 20 20:30 config_data lrwxrwxrwx 1 root root 0 Jan 20 20:27 driver -> ../../../bus/platform/drivers/toh-core -r--r----- 1 root root 4096 Jan 20 20:30 eeprom_size -r--r--r-- 1 root root 4096 Jan 20 20:30 microamps_requested_toh-core.0-toh_vdd -r--r--r-- 1 root root 4096 Jan 20 20:30 modalias drwxr-xr-x 2 root root 0 Jan 20 20:30 power -r--r----- 1 root root 4096 Jan 20 20:30 product -r--r----- 1 root root 4096 Jan 20 20:30 rev lrwxrwxrwx 1 root root 0 Jan 20 20:27 subsystem -> ../../../bus/platform -r--r----- 1 root root 4096 Jan 20 20:30 udata_addr -r--r----- 1 root root 4096 Jan 20 20:30 udata_size -rw-r--r-- 1 root root 4096 Jan 20 20:27 uevent -r--r----- 1 root root 4096 Jan 20 20:30 vendor [root@localhost toh-core.0]# cat * 48 5 CFG?cat: driver: Is a directory 256 0 platform:toh-core cat: power: Is a directory 22136 1 cat: subsystem: Is a directory 64 6 DRIVER=toh-core MODALIAS=platform:toh-core 4660 [root@localhost toh-core.0]#
The Following 4 Users Say Thank You to kimmoli For This Useful Post: | ||
|
2014-01-20
, 18:52
|
Posts: 385 |
Thanked: 426 times |
Joined on Dec 2009
@ Gothenburg, Sweden
|
#13
|
So, I found this in my mailbox today:
An AT24C02 EEPROM with a wopping 256 bytes of data
Also, they are dirt-cheap.
|
2014-01-20
, 19:07
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#14
|
Since EEPROMS are very very easy to program,...
Here's the specs on the EEPROM circuit:
http://www.atmel.com/Images/doc0670.pdf
The Following User Says Thank You to kimmoli For This Useful Post: | ||
|
2014-02-04
, 19:08
|
Posts: 11 |
Thanked: 35 times |
Joined on Dec 2013
|
#15
|
The Following 5 Users Say Thank You to kjokinie For This Useful Post: | ||
|
2014-02-04
, 20:01
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#16
|
Idea there was to have some pre-defined key-value pairs to initiate actions inside kernel and tohd. Simple exaple would be vdd=1, meaning "enable the VDD". Or have some other string for i2c device parameters that the toh-core driver would register onto the bus then (so that corresponding driver would automatically probe).
The user data was meant for any application running in userspace to just read and do anything they need to according to that.
I'm very interested to see what kind of uses you guys come up with it.
|
2014-08-19
, 19:01
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#17
|
KERNEL=="toh-core.0", ATTR{vendor}=="19276", ATTR{product}=="2", ACTION=="add", RUN+="/bin/systemctl start harbour-toholed" KERNEL=="toh-core.0", ACTION=="remove", RUN+="/bin/systemctl stop harbour-toholed"
|
2014-08-19
, 19:07
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#18
|
Last edited by kimmoli; 2014-01-20 at 18:10.