SPOJE.NET

Technická dokumentace

Uživatelské nástroje

Nástroje pro tento web


howto:electro:1-wire
no way to compare when less than two revisions

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.


howto:electro:1-wire [2016/04/07 17:37] (aktuální) – vytvořeno - upraveno mimo DokuWiki 127.0.0.1
Řádek 1: Řádek 1:
 +====== 1-Wire MicroLAN Sensor Network ======
 +===== Prevodniky =====
 +==== DS9490R ====
 +
 +lsusb: ''ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter''
 +
 +{{http://sigma.octopart.com/17606294/image/Maxim-Integrated-DS9490R.jpg?300}}
 +{{http://www.sheepwalkelectronics.co.uk/images/PinoutDS9490R.jpg}}
 +
 +==== RS232 ====
 +
 +http://www.root.cz/clanky/internetovy-termostat-stavba-site-teplotnich-cidel-na-1-wire-sbernici/
 +
 +{{http://i.iinfo.cz/images/229/termostat-2-9.gif}}
 +
 +===== Sensory =====
 +==== DS18B20 ====
 +{{https://stuff.nekhbet.ro/wp-content/uploads/2009/08/pinouts_ds18s20.gif}}
 +
 +=== How to tell fake DS18B20 from original ===
 +
 +^ Test ^ Original ^ chinese fake ^ note ^
 +| **Diode test\\ + lead on DQ\\ - lead on DCC** | **NC** | **approx 1.4V drop** | **MOST IMPORTANT TEST!\\ This is why it shorts bus in parasitic mode.** |
 +| Diode test\\ - lead on DQ\\ + lead on GND | 0.65V drop | 0.74V drop |
 +| parasitic power mode | works | does not work and shorts whole bus |
 +| default errata/trim value in OWFS | random number from 0 to 65535?? | always 65535 | I am not sure about this, but it looks like original sensors are factory trimmed, but fake are only faking the trim value.\\ These two are probably only way to get list of suspicious devices in your network. |
 +| default templow/temphigh value in OWFS | 70/75?? | -1/-1 | ::: |
 +| accuracy | factory trimmed | probably worse | I've put original right next to fake and they were 0.5 degrees C off. But i haven't done any systematical testing. |
 +| visage | sligthly darker, smaller, clear letters, small "P" letter on back | label is slightly off sometimes |
 +| price | ??? | starts at $0.7 |
 +===== Síť =====
 +
 +{{http://www.electro-tech-online.com/imgcache/9863-rj14-pinout.png}}
 +
 +
 +^ Konektory |||||
 +^ RJ45 ^ RJ11 ^ ^ DS18B20 pin ^ ^
 +| green-white | 1 | - | | Not Used |
 +| blue | 2 | Data | 2 | Transmit Data |
 +| blue-white | 3 | GND | 1 | Ground |
 +| green | 4 | +5V | 3 | Power |
 +
 +==== Rozbočovače ====
 +
 +{{http://ecx.images-amazon.com/images/I/41EgxuJHhzL._AC_UL160_SR160,160_.jpg}}
 +{{http://g03.a.alicdn.com/kf/HTB1yg_LHVXXXXbtXpXXq6xXFXXXN/CY-Beige-Color-5-Way-Outlet-6P4C-RJ11-RJ12-Telephone-Phone-Modular-Jack-Line-Splitter-Adapter.jpg?300}}
 +
 +===== Software =====
 +==== OWFS ====
 +
 +<code bash /etc/rc.local>
 +owfs=/mnt/1wire
 +mkdir -p "$owfs"
 +owfs --allow_other -u -a /etc/owfs-alias.conf -m "$owfs"
 +</code>
 +
 +<code ini /etc/owfs-alias.conf>
 +2894A40700008055=outdoor_backyard
 +28067A010000807F=ac_out_cold
 +285DCF0300008033=ac_out_hot
 +28E378010000803E=ac_daitsu_cold_in
 +28504B01000080AA=ac_daitsu_cold_out
 +28208C0300008046=ac_daitsu_cold_coil
 +28D47E03000080CD=ac_daitsu_hot_out
 +286C79010000803D=ceiling_hall
 +28185601000080EE=ceiling_row_1
 +287CA20700008041=ceiling_row_2
 +28ECA107000080BE=rack_2_top
 +28B9850100008095=rack_2_floor
 +</code>
 +
 +==== Munin ====
 +FIXME
  
howto/electro/1-wire.txt · Poslední úprava: 2016/04/07 17:37 autor: 127.0.0.1