{
    "version": "https:\/\/jsonfeed.org\/version\/1",
    "title": "SOREX.ORG: заметки с тегом tempcontrol",
    "_rss_description": "Exchange, esx, AD, GPO, veeam, adaptec,lsi megaraid",
    "_rss_language": "ru",
    "_itunes_email": "",
    "_itunes_categories_xml": "",
    "_itunes_image": "",
    "_itunes_explicit": "",
    "home_page_url": "https:\/\/sorex.org\/?go=tags\/tempcontrol\/",
    "feed_url": "https:\/\/sorex.org\/?go=tags%2Ftempcontrol%2Fjson%2F",
    "icon": "https:\/\/sorex.org\/user\/userpic@2x.jpg?1618299116",
    "author": {
        "name": "sorex",
        "url": "https:\/\/sorex.org\/",
        "avatar": "https:\/\/sorex.org\/user\/userpic@2x.jpg?1618299116"
    },
    "items": [
        {
            "id": "28",
            "url": "https:\/\/sorex.org\/?go=all\/tempcontrol-dobavlenie-svoih-datchikov-ds18b20-besplatno-bez-reg\/",
            "title": "Tempcontrol добавление своих датчиков DS18B20 бесплатно без регистрации и смс",
            "content_html": "<p>Сайт tempcontrol.ru не пашет 2 месяц, всем насрать даже тех поддержка номер которой был вытащен из гугла сказала пишите на support@visteh.ru там этим генеральный директор занимается может быть он вам ответит.<\/p>\n<p><img class=\"size-full wp-image-718 aligncenter\" src=\"https:\/\/sorex.org\/wp-content\/uploads\/2017\/06\/Screenshot_22.png\" alt=\"\" width=\"682\" height=\"359\"><\/p>\n<p>я охерел от такого при цене этой дерьмо коробки в 15000р должна быть и поддержка нормальная а не эта шляпа. Вообщем всем кто потерял датчики или хочет добавить новые описываю способ бесплатного добавления чтоб не платить хитрожопым из tempcontrol<\/p>\n<p>Вот такой процессор там<\/p>\n<p>root [ ~ ]# cat \/proc\/cpuinfo<br \/>\nProcessor : ARM926EJ-S rev 4 (v5l)<br \/>\nBogoMIPS : 133.01<br \/>\nFeatures : swp half thumb fastmult vfp edsp java<br \/>\nCPU implementer : 0x41<br \/>\nCPU architecture: 5TEJ<br \/>\nCPU variant : 0x0<br \/>\nCPU part : 0x926<br \/>\nCPU revision : 4<\/p>\n<p>Hardware : tc3250 board with the LPC3250 Microcontroller<br \/>\nRevision : 0000<br \/>\nSerial : 0000000000000000<\/p>\n<p>Вот лог прогрузки dmesg<\/p>\n<pre class=\"lang:default decode:true \">root [ ~ ]# dmesg\r\nLinux version 2.6.39.2-g7fda40b (yakor@amd64) (gcc version 4.6.3 (Gentoo 4.6.3 p1.3, pie-0.5.1) ) #32 PREEMPT Wed Jun 20 14:11:15 MSK 2012\r\nCPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177\r\nCPU: VIVT data cache, VIVT instruction cache\r\nMachine: tc3250 board with the LPC3250 Microcontroller\r\nMemory policy: ECC disabled, Data cache writeback\r\nOn node 0 totalpages: 16384\r\nfree_area_init_node: node 0, pgdat c0294da4, node_mem_map c02a4000\r\n  Normal zone: 128 pages used for memmap\r\n  Normal zone: 0 pages reserved\r\n  Normal zone: 16256 pages, LIFO batch:3\r\npcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768\r\npcpu-alloc: [0] 0\r\nBuilt 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256\r\nKernel command line: console=ttyS0,115200 ubi.mtd=3 ubi.mtd=5 ubi.mtd=6 root=ubi1:rootfs rootfstype=ubifs ethaddr=02:74:66:fa:99:40\r\nPID hash table entries: 256 (order: -2, 1024 bytes)\r\nDentry cache hash table entries: 8192 (order: 3, 32768 bytes)\r\nInode-cache hash table entries: 4096 (order: 2, 16384 bytes)\r\nMemory: 64MB = 64MB total\r\nMemory: 62216k\/62216k available, 3320k reserved, 0K highmem\r\nVirtual kernel memory layout:\r\n    vector  : 0xffff0000 — 0xffff1000   (   4 kB)\r\n    fixmap  : 0xfff00000 — 0xfffe0000   ( 896 kB)\r\n    DMA     : 0xffc00000 — 0xffe00000   (   2 MB)\r\n    vmalloc : 0xc4800000 — 0xf0000000   ( 696 MB)\r\n    lowmem  : 0xc0000000 — 0xc4000000   (  64 MB)\r\n    modules : 0xbf000000 — 0xc0000000   (  16 MB)\r\n      .init : 0xc0008000 — 0xc0023000   ( 108 kB)\r\n      .text : 0xc0023000 — 0xc027c000   (2404 kB)\r\n      .data : 0xc027c000 — 0xc0295440   ( 102 kB)\r\nPreemptable hierarchical RCU implementation.\r\n        RCU-based detection of stalled CPUs is disabled.\r\n        Verbose stalled-CPUs detection is disabled.\r\nNR_IRQS:96\r\nConsole: colour dummy device 80x30\r\nCalibrating delay loop... 133.01 BogoMIPS (lpj=665088)\r\npid_max: default: 32768 minimum: 301\r\nMount-cache hash table entries: 512\r\nCPU: Testing write buffer coherency: ok\r\nNET: Registered protocol family 16\r\nLPC32XX unique ID: 0005b6dd75701b6e591c8cb710831800\r\nbio: create slab &lt;bio-0&gt; at 0\r\nSwitching to clocksource lpc32xx_clksrc\r\nSwitched to NOHz mode on CPU #0\r\nNET: Registered protocol family 2\r\nIP route cache hash table entries: 1024 (order: 0, 4096 bytes)\r\nTCP established hash table entries: 2048 (order: 2, 16384 bytes)\r\nTCP bind hash table entries: 2048 (order: 1, 8192 bytes)\r\nTCP: Hash tables configured (established 2048 bind 2048)\r\nTCP reno registered\r\nUDP hash table entries: 256 (order: 0, 4096 bytes)\r\nUDP-Lite hash table entries: 256 (order: 0, 4096 bytes)\r\nNET: Registered protocol family 1\r\nNetWinder Floating Point Emulator V0.97 (double precision)\r\nmsgmni has been set to 121\r\nio scheduler noop registered (default)\r\nSerial: 8250\/16550 driver, 4 ports, IRQ sharing disabled\r\nserial8250.0: ttyS0 at MMIO 0x40090000 (irq = 9) is a 16550A\r\nconsole [ttyS0] enabled\r\nserial8250.0: ttyS1 at MMIO 0x40080000 (irq = 7) is a U6_16550A\r\nserial8250.0: ttyS2 at MMIO 0x40088000 (irq = 8) is a 16550A\r\nserial8250.0: ttyS3 at MMIO 0x40098000 (irq = 10) is a 16550A\r\nlpc32xx_hsuart.0: ttyTX0 at MMIO 0x40014000 (irq = 26) is a lpc32xx_hsuart\r\nlpc32xx_hsuart.0: ttyTX1 at MMIO 0x4001c000 (irq = 24) is a lpc32xx_hsuart\r\nbrd: module loaded\r\nNAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)\r\nBad block table found at page 131008, version 0x01\r\nBad block table found at page 130944, version 0x01\r\nnand_read_bbt: Bad block at 0x000000000000\r\nnand_read_bbt: Bad block at 0x000006520000\r\nnand_read_bbt: Bad block at 0x00000a260000\r\nnand_read_bbt: Bad block at 0x00000ea80000\r\nnand_read_bbt: Bad block at 0x00000f8c0000\r\nCreating 7 MTD partitions on «lpc32xx-nand»:\r\n0x000000000000-0x000000020000 : «boot»\r\n0x000000020000-0x000000180000 : «uboot»\r\n0x000000180000-0x000000580000 : «safe-kernel»\r\n0x000000580000-0x000003780000 : «safe-rootfs»\r\n0x000003780000-0x000003b80000 : «kernel»\r\n0x000003b80000-0x000006d80000 : «rootfs»\r\n0x000006d80000-0x000010000000 : «work»\r\nUBI: attaching mtd3 to ubi0\r\nUBI: physical eraseblock size:   131072 bytes (128 KiB)\r\nUBI: logical eraseblock size:    129024 bytes\r\nUBI: smallest flash I\/O unit:    2048\r\nUBI: sub-page size:              512\r\nUBI: VID header offset:          512 (aligned 512)\r\nUBI: data offset:                2048\r\nUBI: max. sequence number:       2\r\nUBI: attached mtd3 to ubi0\r\nUBI: MTD device name:            «safe-rootfs»\r\nUBI: MTD device size:            50 MiB\r\nUBI: number of good PEBs:        400\r\nUBI: number of bad PEBs:         0\r\nUBI: number of corrupted PEBs:   0\r\nUBI: max. allowed volumes:       128\r\nUBI: wear-leveling threshold:    4096\r\nUBI: number of internal volumes: 1\r\nUBI: number of user volumes:     1\r\nUBI: available PEBs:             0\r\nUBI: total number of reserved PEBs: 400\r\nUBI: number of PEBs reserved for bad PEB handling: 4\r\nUBI: max\/mean erase counter: 1\/0\r\nUBI: image sequence number:  1424920104\r\nUBI: background thread «ubi_bgt0d» started, PID 270\r\nUBI: attaching mtd5 to ubi1\r\nUBI: physical eraseblock size:   131072 bytes (128 KiB)\r\nUBI: logical eraseblock size:    129024 bytes\r\nUBI: smallest flash I\/O unit:    2048\r\nUBI: sub-page size:              512\r\nUBI: VID header offset:          512 (aligned 512)\r\nUBI: data offset:                2048\r\nUBI: max. sequence number:       269\r\nUBI: attached mtd5 to ubi1\r\nUBI: MTD device name:            «rootfs»\r\nUBI: MTD device size:            50 MiB\r\nUBI: number of good PEBs:        399\r\nUBI: number of bad PEBs:         1\r\nUBI: number of corrupted PEBs:   0\r\nUBI: max. allowed volumes:       128\r\nUBI: wear-leveling threshold:    4096\r\nUBI: number of internal volumes: 1\r\nUBI: number of user volumes:     1\r\nUBI: available PEBs:             0\r\nUBI: total number of reserved PEBs: 399\r\nUBI: number of PEBs reserved for bad PEB handling: 3\r\nUBI: max\/mean erase counter: 3\/0\r\nUBI: image sequence number:  438166388\r\nUBI: background thread «ubi_bgt1d» started, PID 273\r\nUBI: attaching mtd6 to ubi2\r\nUBI: physical eraseblock size:   131072 bytes (128 KiB)\r\nUBI: logical eraseblock size:    129024 bytes\r\nUBI: smallest flash I\/O unit:    2048\r\nUBI: sub-page size:              512\r\nUBI: VID header offset:          512 (aligned 512)\r\nUBI: data offset:                2048\r\nUBI: max. sequence number:       88\r\nUBI: attached mtd6 to ubi2\r\nUBI: MTD device name:            «work»\r\nUBI: MTD device size:            146 MiB\r\nUBI: number of good PEBs:        1165\r\nUBI: number of bad PEBs:         7\r\nUBI: number of corrupted PEBs:   0\r\nUBI: max. allowed volumes:       128\r\nUBI: wear-leveling threshold:    4096\r\nUBI: number of internal volumes: 1\r\nUBI: number of user volumes:     1\r\nUBI: available PEBs:             0\r\nUBI: total number of reserved PEBs: 1165\r\nUBI: number of PEBs reserved for bad PEB handling: 11\r\nUBI: max\/mean erase counter: 2\/1\r\nUBI: image sequence number:  1323325530\r\nUBI: background thread «ubi_bgt2d» started, PID 276\r\nlpc_mii_bus: probed\r\neth0: using RMII interface\r\neth0: LPC mac at 0x31060000 irq 29\r\neth0: attached PHY driver [SMSC LAN8710\/LAN8720] (mii_bus:phy_addr=0:00, irq=-1)\r\nrtc-lpc32xx rtc-lpc32xx: rtc core: registered rtc-lpc32xx as rtc0\r\nPNX4008-WDT: PNX4008 Watchdog Timer: heartbeat 19 sec\r\ncpuidle: using governor ladder\r\ncpuidle: using governor menu\r\nRegistered led device: 1-wire_port2\r\nRegistered led device: 1-wire_port1\r\nRegistered led device: 1-wire_port4\r\nRegistered led device: 1-wire_port3\r\nRegistered led device: power\r\nRegistered led device: nand-io\r\nTCP cubic registered\r\nNET: Registered protocol family 17\r\nVFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 1\r\nrtc-lpc32xx rtc-lpc32xx: setting system clock to 1970-01-01 00:00:08 UTC (8)\r\nUBIFS: recovery needed\r\nUBIFS: recovery completed\r\nUBIFS: mounted UBI device 1, volume 0, name «rootfs»\r\nUBIFS: file system size:   49029120 bytes (47880 KiB, 46 MiB, 380 LEBs)\r\nUBIFS: journal size:       6580224 bytes (6426 KiB, 6 MiB, 51 LEBs)\r\nUBIFS: media format:       w4\/r0 (latest is w4\/r0)\r\nUBIFS: default compressor: lzo\r\nUBIFS: reserved for root:  0 bytes (0 KiB)\r\nVFS: Mounted root (ubifs filesystem) on device 0:10.\r\nFreeing init memory: 108K\r\nUBIFS: recovery needed\r\nUBIFS: recovery completed\r\nUBIFS: mounted UBI device 2, volume 0, name «work»\r\nUBIFS: file system size:   140507136 bytes (137214 KiB, 133 MiB, 1089 LEBs)\r\nUBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)\r\nUBIFS: media format:       w4\/r0 (latest is w4\/r0)\r\nUBIFS: default compressor: lzo\r\nUBIFS: reserved for root:  0 bytes (0 KiB)\r\n<\/pre>\n<p> <\/p>\n<p>Берете список датчиков из панели или из консоли<\/p>\n<p><img class=\"size-full wp-image-719 aligncenter\" src=\"https:\/\/sorex.org\/wp-content\/uploads\/2017\/06\/Screenshot_92.png\" alt=\"\" width=\"1185\" height=\"613\"><\/p>\n<p>далее берем ардуино и пишем код который будет брать ваш новый датчик ds18b20 и изменять его id на тот что есть в вашей коробке и отправлять его коробке<\/p>\n<pre class=\"lang:default decode:true \">\/*\r\n *    Example-Code that emulates a DS18B20\r\n *\r\n *    Tested with:\r\n *    — <a href=\"https:\/\/github.com\/PaulStoffregen\/OneWire\">https:\/\/github.com\/PaulStoffregen\/OneWire<\/a> —&gt; DS18x20-Example, atmega328@16MHz as Slave\r\n *    — DS9490R-Master, atmega328@16MHz and teensy3.2@96MHz as Slave\r\n *\/\r\n\r\n#include «OneWireHub.h»\r\n#include «DS18B20.h»  \/\/ Digital Thermometer, 12bit\r\n#include &lt;OneWire.h&gt;\r\nOneWire  ds(11);  \/\/ on pin 10 (a 4.7K resistor is necessary)\r\n\r\nconstexpr uint8_t pin_led       { 13 };\r\nconstexpr uint8_t pin_onewire   { 12 };\r\nfloat celsius, fahrenheit;\r\nauto hub    = OneWireHub(pin_onewire);\r\n\r\nauto ds18b20 = DS18B20(0x28, 0xA0, 0x36, 0x14, 0x03, 0x00, 0x00); \/\/ DS18B20: 9-12bit, -55 —  +85 degC\r\n\/\/28A0361403000088\r\nauto ds18s20 = DS18B20(0x10, 0x00, 0x00, 0xA2, 0x18, 0xDA, 0x00);                 \/\/ DS18S20: 9   bit, -55 —  +85 degC\r\nauto ds1822  = DS18B20(0x22, 0x00, 0x00, 0x22, 0x18, 0xDA, 0x00);                 \/\/ DS1822:  9-12bit, -55 — +125 degC\r\n\r\nbool blinking(void);\r\n\r\nvoid setup()\r\n{\r\n    Serial.begin(9600);\r\n    Serial.println(«OneWire-Hub DS18B20 Temperature-Sensor»);\r\n    Serial.flush();\r\n\r\n    pinMode(pin_led, OUTPUT);\r\n\r\n    \/\/ Setup OneWire\r\n    hub.attach(ds18b20);\r\n   \/\/ hub.attach(ds18s20);\r\n   \/\/ hub.attach(ds1822);\r\n\r\n\r\n    ds18b20.setTemperature(int8_t(85));\r\n\r\n};\r\n\r\nvoid loop()\r\n{\r\n    \/\/ following function must be called periodically\r\n    hub.poll();\r\n    \/\/ this part is just for debugging (USE_SERIAL_DEBUG in OneWire.h must be enabled for output)\r\n    if (hub.hasError()) hub.printError();\r\n\r\n\r\n\r\n\r\n    \/\/ Blink triggers the state-change\r\n    if (blinking())\r\n    {\r\n\r\n        \/\/ Set temp\r\n        static float temperature = celsius;\r\n        \/\/temperature += 0.1;\r\n        if (temperature &gt; 30.0) temperature = 20.0;\r\n        ds18b20.setTemperature(celsius);\r\n        \/\/ds18s20.setTemperature(temperature);\r\n        \/\/ds1822.setTemperature(temperature);\r\n        Serial.println(celsius);\r\n\r\n              \/\/—————————————————————————\r\n  byte i;\r\n  byte present = 0;\r\n  byte type_s;\r\n  byte data[12];\r\n  \/\/byte addr[8];\r\n  \/\/28 FF 7 DD 61 15 1 C6\r\nunsigned char addr[8] = {0x28, 0xFF, 0x07, 0xDD, 0x61, 0x15, 0x01, 0xC6};\r\n  \/\/float celsius, fahrenheit;\r\n  \r\n\r\n  ds.reset();\r\n  ds.select(addr);\r\n  ds.write(0x44, 1);        \/\/ start conversion, with parasite power on at the end\r\n  \r\n\r\n  present = ds.reset();\r\n  ds.select(addr);    \r\n  ds.write(0xBE);         \/\/ Read Scratchpad\r\n\r\n  for ( i = 0; i &lt; 9; i++) {           \/\/ we need 9 bytes\r\n    data[i] = ds.read();\r\n    \/\/Serial.print(data[i], HEX);\r\n   \/\/ Serial.print(» «);\r\n  }\r\n\r\n\r\n  int16_t raw = (data[1] &lt;&lt; 8) | data[0];\r\n  if (type_s) {\r\n    raw = raw &lt;&lt; 3; \/\/ 9 bit resolution default\r\n    if (data[7] == 0x10) {\r\n      \/\/ «count remain» gives full 12 bit resolution\r\n      raw = (raw &amp; 0xFFF0) + 12 — data[6];\r\n    }\r\n  } else {\r\n    byte cfg = (data[4] &amp; 0x60);\r\n    \/\/ at lower res, the low bits are undefined, so let’s zero them\r\n    if (cfg == 0x00) raw = raw &amp; ~7;  \/\/ 9 bit resolution, 93.75 ms\r\n    else if (cfg == 0x20) raw = raw &amp; ~3; \/\/ 10 bit res, 187.5 ms\r\n    else if (cfg == 0x40) raw = raw &amp; ~1; \/\/ 11 bit res, 375 ms\r\n    \/\/\/\/ default is 12 bit resolution, 750 ms conversion time\r\n  }\r\n  celsius = (float)raw \/ 16.0;\r\n  \/\/fahrenheit = celsius * 1.8 + 32.0;\r\n  Serial.print(»  Temperature = «);\r\n  Serial.print(celsius);\r\n  Serial.print(» Celsius, «);\r\n  \/\/Serial.print(fahrenheit);\r\n  \/\/Serial.println(» Fahrenheit»);\r\n\/\/—————————————————————————\r\n    }\r\n}\r\n\r\nbool blinking(void)\r\n{\r\n    constexpr  uint32_t interval    = 1000;          \/\/ interval at which to blink (milliseconds)\r\n    static uint32_t nextMillis  = millis();     \/\/ will store next time LED will updated\r\n\r\n    if (millis() &gt; nextMillis)\r\n    {\r\n        nextMillis += interval;             \/\/ save the next time you blinked the LED\r\n        static uint8_t ledState = LOW;      \/\/ ledState used to set the LED\r\n        if (ledState == LOW)    ledState = HIGH;\r\n        else                    ledState = LOW;\r\n        digitalWrite(pin_led, ledState);\r\n        return 1;\r\n    }\r\n    return 0;\r\n}\r\n\r\n<\/pre>\n<p>Пин 12 это выход на разьем в коробку, пин 11 это дата пин вашего нового датчика ds18b20, так же не забываем подтягивать новый датчик резистором на 4,7ком на шину +5В<\/p>\n<p>После этого заходим в консоль коробки и проверяем как она видит ваш датчик<\/p>\n<p>root [ ~ ]# tempcontrol<br \/>\nFound sensors:<br \/>\n0: 28 A0 36 14 03 00 00 88<br \/>\nRomCode: 28A0361403000088 Port: 0 Order :0 Time: 1496909700 Temp: 335<br \/>\nRomCode: 28A0361403000088 Port: 0 Order :0 Time: 1496909702 Temp: 335<br \/>\nRomCode: 28A0361403000088 Port: 0 Order :0 Time: 1496909703 Temp: 340<br \/>\nRomCode: 28A0361403000088 Port: 0 Order :0 Time: 1496909704 Temp: 340<br \/>\nRomCode: 28A0361403000088 Port: 0 Order :0 Time: 1496909705 Temp: 335<\/p>\n<p> <\/p>\n",
            "date_published": "2021-04-13T09:58:09+00:00",
            "date_modified": "2021-04-13T09:57:20+00:00",
            "_date_published_rfc2822": "Tue, 13 Apr 2021 09:58:09 +0000",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "28",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [],
                "og_images": []
            }
        }
    ],
    "_e2_version": 3820,
    "_e2_ua_string": "E2 (v3820;)"
}