Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: teploměr  (Přečteno 31593 krát)

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: teploměr
« Odpověď #25 kdy: 16 Července 2008, 11:44:16 »
Tak se mi již povedlo to spuštění při bootu. Do příkazu jsem vložil:

Kód: [Vybrat]
cd /root/my-digitemp/ && digitemp_DS9097 -q -a -s /dev/ttyS0 -d 60 -n 0 -l /var/www/teplomer/cidlo-server.txt
a už mi loguje teploty. Teď jdu vyzkoušet vypsání na web a dám vědět, jak jsem dopadl nebo příjdu poprosit o radu. ;-)
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: teploměr
« Odpověď #26 kdy: 16 Července 2008, 15:17:00 »
Takže, nalezli jsme řešení.

Kdo chcete vypisovat teplotu na web i s archivací, tak:
1.) ./digitemp_DS9097 -q -a -s /dev/ttyS0 -d 60 -n 0 -l /var/www/teplomer/cidlo.txt by měl běžet stále
2.) Do index.php pak vepište:
Kód: [Vybrat]
<?php
$soubor 
fopen("cidlo-server.txt""r");
if(
$soubor) {
   while(!
feof($soubor)) {
      
$tmp fgets($soubor);
      if(!empty(
$tmp)) $radek $tmp;
   }
   
$teplota substr($radek285);
   echo 
$teplota;
   
fclose($soubor);
}
?>

A měla by se Vám již vypisovat teplota. Za velikou pomoc patří kernel_panic [passed]. Dostal jsem to s tím, že nejsou ošetřeny chyby, když budete vědět, co a jak, dejte vědět.
« Poslední změna: 16 Července 2008, 18:41:00 od Thomas123 »
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

1x23

  • Aktivní člen
  • *
  • Příspěvků: 449
Re: teploměr
« Odpověď #27 kdy: 30 Října 2008, 19:15:47 »
ahoj dá se koupit nebo vyrobit usb teploměr funkční v linuxu??
NTB: Lenovo P50. OS - Ubuntu 18.04

Linux registred user: 499415

Martin Kiklhorn

  • Člen občanského sdružení Ubuntu ČR a placené komunitní podpory
  • Administrátor fóra
  • Závislák
  • ******
  • Příspěvků: 4807
  • グーグル!ご存知ですか?
    • HEJ
Re: teploměr
« Odpověď #28 kdy: 01 Listopadu 2008, 17:46:29 »
ahoj dá se koupit nebo vyrobit usb teploměr funkční v linuxu??
1) použít nějaké stávající zapojení pro rs232 a přidat k němu nějaký šváb pro připojení k USB třeba od ftdichip
2) použít nějaký jednočip s USB sběrnicí a nějakým A/D převodníkem, připojit čidla pro teplotu, vlhkost a cokoliv dalšího, udělat si kalibrační body, vymyslet komunikační protokol, napsat si ovladač.
Jsou ve vašem dotazu OPRAVDU VŠECHNY vám dostupné informace o problému?
Linux user since 2007-10-11, Registered #456007
Virtual
| Distribuce
~/slozka znamená /home/"vase jmeno"/slozka
6521 69DE 0F34 FCBC FB1D  DE76 360E 52B2 F71A B8E8

osso

  • Návštěvník
  • Příspěvků: 17
Re: teploměr
« Odpověď #29 kdy: 02 Listopadu 2008, 21:01:59 »
Jedno velmi elegantní řešení je - jmenuje se to OWFS. Rozchodil jsem to na ubuntu servru v pohodě, sice požívám jako vstup com port, ale maxim/ti posílá jako vzorky zdarma i převodník na USB v owfs podporovaný. OWFS funguje sqjele :-), a počet čidel je neomezený.

1x23

  • Aktivní člen
  • *
  • Příspěvků: 449
Re: teploměr
« Odpověď #30 kdy: 10 Ledna 2009, 16:56:08 »
Jedno velmi elegantní řešení je - jmenuje se to OWFS. Rozchodil jsem to na ubuntu servru v pohodě, sice požívám jako vstup com port, ale maxim/ti posílá jako vzorky zdarma i převodník na USB v owfs podporovaný. OWFS funguje sqjele :-), a počet čidel je neomezený.

ahoj, jak jsi to myslel stim převodníkem, kde se to da koupit?

http://marek.drapal.org/1-wire-a-linux nasel jsem tuhle stranku. ale nechapu jak je to stim prevodnikem, je to obyčejný  usb/com?

http://hw.cz/rozhrani/art1215-sbernice-1-wire.html

ale jak napojit usb konektro na 1-wire? tak už teda vim jak napojit čidlo.
existuje redukce

http://obchod.hw.cz/?cls=stoitem&stiid=39195

ale cena hodne vysoka

už jsem to možná nasel


http://www.abclinuxu.cz/blog/uf_ja_nechci_blog/2007/11/3/198847
« Poslední změna: 10 Ledna 2009, 17:07:20 od 1x23 »
NTB: Lenovo P50. OS - Ubuntu 18.04

Linux registred user: 499415

1x23

  • Aktivní člen
  • *
  • Příspěvků: 449
Re: teploměr
« Odpověď #31 kdy: 22 Března 2010, 19:00:26 »
Ahoj, tak jsem po dlouhé době chtěl měřit teplotu, ale zkončil jsem hned při instalaci.

Kód: [Vybrat]
/digitemp-3.3.2# make ds9097
gcc -I./src -I./userial -O2  -DLINUX   -c -o src/digitemp.o src/digitemp.c
src/digitemp.c:362:19: error: stdio.h: No such file or directory
src/digitemp.c:363:20: error: stdlib.h: No such file or directory
src/digitemp.c:364:19: error: ctype.h: No such file or directory
src/digitemp.c:365:20: error: unistd.h: No such file or directory
src/digitemp.c:367:20: error: getopt.h: No such file or directory
src/digitemp.c:369:23: error: sys/types.h: No such file or directory
src/digitemp.c:370:22: error: sys/stat.h: No such file or directory
src/digitemp.c:371:22: error: sys/time.h: No such file or directory
src/digitemp.c:372:18: error: time.h: No such file or directory
src/digitemp.c:373:20: error: string.h: No such file or directory
src/digitemp.c:374:19: error: fcntl.h: No such file or directory
src/digitemp.c:375:21: error: strings.h: No such file or directory
In file included from src/digitemp.c:387:
./userial/ownet.h:213: error: expected ‘)’ before ‘*’ token
In file included from src/digitemp.c:388:
./userial/owproto.h:40: error: expected ‘)’ before ‘*’ token
./userial/owproto.h:50: error: expected declaration specifiers or ‘...’ before ‘ulong’
./userial/owproto.h:62: error: expected declaration specifiers or ‘...’ before ‘ushort’
./userial/owproto.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘docrc16’
./userial/owproto.h:76: error: expected declaration specifiers or ‘...’ before ‘ulong’
src/digitemp.c:465: error: ‘NULL’ undeclared here (not in a function)
src/digitemp.c: In function ‘usage’:
src/digitemp.c:478: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c: In function ‘build_tf’:
src/digitemp.c:624: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c: In function ‘build_cf’:
src/digitemp.c:769: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c: In function ‘log_string’:
src/digitemp.c:861: error: ‘O_CREAT’ undeclared (first use in this function)
src/digitemp.c:861: error: (Each undeclared identifier is reported only once
src/digitemp.c:861: error: for each function it appears in.)
src/digitemp.c:861: error: ‘O_WRONLY’ undeclared (first use in this function)
src/digitemp.c:861: error: ‘O_APPEND’ undeclared (first use in this function)
src/digitemp.c:862: error: ‘S_IRUSR’ undeclared (first use in this function)
src/digitemp.c:862: error: ‘S_IWUSR’ undeclared (first use in this function)
src/digitemp.c:862: error: ‘S_IRGRP’ undeclared (first use in this function)
src/digitemp.c:862: error: ‘S_IROTH’ undeclared (first use in this function)
src/digitemp.c:864: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:867: warning: incompatible implicit declaration of built-in function ‘strlen’
src/digitemp.c:871: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c: In function ‘log_temp’:
src/digitemp.c:886: error: ‘time_t’ undeclared (first use in this function)
src/digitemp.c:886: error: expected ‘;’ before ‘mytime’
src/digitemp.c:889: error: ‘mytime’ undeclared (first use in this function)
src/digitemp.c:896: warning: incompatible implicit declaration of built-in function ‘strftime’
src/digitemp.c:896: warning: passing argument 4 of ‘strftime’ makes pointer from integer without a cast
src/digitemp.c:898: warning: incompatible implicit declaration of built-in function ‘strcat’
src/digitemp.c:900: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c: In function ‘log_counter’:
src/digitemp.c:918: error: ‘time_t’ undeclared (first use in this function)
src/digitemp.c:918: error: expected ‘;’ before ‘mytime’
src/digitemp.c:921: error: ‘mytime’ undeclared (first use in this function)
src/digitemp.c:928: warning: incompatible implicit declaration of built-in function ‘strftime’
src/digitemp.c:928: warning: passing argument 4 of ‘strftime’ makes pointer from integer without a cast
src/digitemp.c:930: warning: incompatible implicit declaration of built-in function ‘strcat’
src/digitemp.c:932: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c: In function ‘log_humidity’:
src/digitemp.c:950: error: ‘time_t’ undeclared (first use in this function)
src/digitemp.c:950: error: expected ‘;’ before ‘mytime’
src/digitemp.c:953: error: ‘mytime’ undeclared (first use in this function)
src/digitemp.c:960: warning: incompatible implicit declaration of built-in function ‘strftime’
src/digitemp.c:960: warning: passing argument 4 of ‘strftime’ makes pointer from integer without a cast
src/digitemp.c:962: warning: incompatible implicit declaration of built-in function ‘strcat’
src/digitemp.c:964: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c: In function ‘show_scratchpad’:
src/digitemp.c:1013: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c:1041: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:1070: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c: In function ‘read_temperature’:
src/digitemp.c:1216: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c:1239: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:1239: error: ‘stderr’ undeclared (first use in this function)
src/digitemp.c: In function ‘read_counter’:
src/digitemp.c:1275: error: too many arguments to function ‘ReadCounter’
src/digitemp.c:1282: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c:1296: error: too many arguments to function ‘ReadCounter’
src/digitemp.c:1303: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c: In function ‘read_ds2438’:
src/digitemp.c:1336: error: ‘time_t’ undeclared (first use in this function)
src/digitemp.c:1336: error: expected ‘;’ before ‘mytime’
src/digitemp.c:1349: error: ‘mytime’ undeclared (first use in this function)
src/digitemp.c:1352: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c:1355: warning: incompatible implicit declaration of built-in function ‘strftime’
src/digitemp.c:1355: warning: passing argument 4 of ‘strftime’ makes pointer from integer without a cast
src/digitemp.c:1357: warning: incompatible implicit declaration of built-in function ‘strcat’
src/digitemp.c:1359: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c: In function ‘read_device’:
src/digitemp.c:1501: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:1505: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/digitemp.c:1524: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:1528: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/digitemp.c: In function ‘read_rcfile’:
src/digitemp.c:1614: error: ‘FILE’ undeclared (first use in this function)
src/digitemp.c:1614: error: ‘fp’ undeclared (first use in this function)
src/digitemp.c:1636: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1640: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1641: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:1643: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1646: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1647: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:1649: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1650: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:1652: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1653: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:1655: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1656: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:1660: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1663: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1669: warning: incompatible implicit declaration of built-in function ‘malloc’
src/digitemp.c:1671: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:1671: error: ‘stderr’ undeclared (first use in this function)
src/digitemp.c:1678: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1684: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1694: warning: incompatible implicit declaration of built-in function ‘malloc’
src/digitemp.c:1696: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:1706: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:1727: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1732: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1741: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1746: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1759: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1767: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1769: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:1779: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:1785: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1793: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1795: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:1805: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:1811: warning: assignment makes pointer from integer without a cast
src/digitemp.c:1817: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c: In function ‘write_rcfile’:
src/digitemp.c:1853: error: ‘FILE’ undeclared (first use in this function)
src/digitemp.c:1853: error: ‘fp’ undeclared (first use in this function)
src/digitemp.c:1862: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:1948: error: ‘stderr’ undeclared (first use in this function)
src/digitemp.c: In function ‘printSN’:
src/digitemp.c:1964: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:1967: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c: In function ‘Walk1Wire’:
src/digitemp.c:1983: warning: incompatible implicit declaration of built-in function ‘bzero’
src/digitemp.c:1997: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2005: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2007: error: ‘stdout’ undeclared (first use in this function)
src/digitemp.c:2013: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2013: error: ‘stderr’ undeclared (first use in this function)
src/digitemp.c:2025: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2033: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2041: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2050: warning: assignment makes pointer from integer without a cast
src/digitemp.c:2052: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2064: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2076: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2086: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2096: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2103: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2114: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c: In function ‘Init1WireLan’:
src/digitemp.c:2160: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2168: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2170: error: ‘stdout’ undeclared (first use in this function)
src/digitemp.c:2176: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2176: error: ‘stderr’ undeclared (first use in this function)
src/digitemp.c:2185: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2190: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2202: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2206: warning: incompatible implicit declaration of built-in function ‘malloc’
src/digitemp.c:2208: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2242: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2249: warning: assignment makes pointer from integer without a cast
src/digitemp.c:2251: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2288: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2295: warning: assignment makes pointer from integer without a cast
src/digitemp.c:2297: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2329: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2336: warning: assignment makes pointer from integer without a cast
src/digitemp.c:2338: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2369: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2383: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2393: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c: In function ‘main’:
src/digitemp.c:2423: error: ‘time_t’ undeclared (first use in this function)
src/digitemp.c:2423: error: expected ‘;’ before ‘last_time’
src/digitemp.c:2427: error: ‘pid_t’ undeclared (first use in this function)
src/digitemp.c:2427: error: expected ‘;’ before ‘pid’
src/digitemp.c:2431: warning: incompatible implicit declaration of built-in function ‘bzero’
src/digitemp.c:2436: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2436: error: ‘stderr’ undeclared (first use in this function)
src/digitemp.c:2462: warning: incompatible implicit declaration of built-in function ‘strcpy’
src/digitemp.c:2483: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2501: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2507: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2544: warning: incompatible implicit declaration of built-in function ‘strlen’
src/digitemp.c:2545: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2547: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2555: warning: incompatible implicit declaration of built-in function ‘strlen’
src/digitemp.c:2556: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2558: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2564: warning: incompatible implicit declaration of built-in function ‘strlen’
src/digitemp.c:2565: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2567: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2577: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:2587: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2588: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:2592: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:2601: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2605: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2612: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2617: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2621: warning: incompatible implicit declaration of built-in function ‘strncpy’
src/digitemp.c:2627: warning: incompatible implicit declaration of built-in function ‘printf’
src/digitemp.c:2634: error: ‘R_OK’ undeclared (first use in this function)
src/digitemp.c:2634: error: ‘W_OK’ undeclared (first use in this function)
src/digitemp.c:2635: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2643: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:2698: error: ‘stdout’ undeclared (first use in this function)
src/digitemp.c:2713: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:2742: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:2775: warning: incompatible implicit declaration of built-in function ‘exit’
src/digitemp.c:2781: error: ‘start_time’ undeclared (first use in this function)
src/digitemp.c:2786: error: ‘last_time’ undeclared (first use in this function)
src/digitemp.c:2795: warning: incompatible implicit declaration of built-in function ‘sprintf’
src/digitemp.c:2834: warning: incompatible implicit declaration of built-in function ‘fprintf’
src/digitemp.c:2867: warning: incompatible implicit declaration of built-in function ‘exit’
make: *** [src/digitemp.o] Error 1

verze 3.3.2

doinstalovaval jsem gcc a make.

Snažil jsem se to vygooglit ale nic srozumitelneho a použitelneho jsem nenašel, jen doinstalovat gcc. Snažil se to ted někdo rozjet:?
Zkoušel jsem i nove verze programu ale chyba je stejná.
NTB: Lenovo P50. OS - Ubuntu 18.04

Linux registred user: 499415

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: teploměr
« Odpověď #32 kdy: 24 Března 2010, 20:48:34 »
Divím se, že ti to stále nějak nefunguje. Normálně jsem nainstaloval nějaký digitemp z repo a úspěšně měřím. Výsledek si můžeš prohlédnout na http://profiweb.net/teplomer/
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

1x23

  • Aktivní člen
  • *
  • Příspěvků: 449
Re: teploměr
« Odpověď #33 kdy: 26 Března 2010, 10:05:13 »
nainstaloval jsem tedy z repoz digitemp ale nemůžu nikde najít složku digitemp. Kde se po instalu složka objeví? Potřeboval bych i nečim očuchat port, daval jsem dvě čisla na jeden com port, a nemám to testnuté.
NTB: Lenovo P50. OS - Ubuntu 18.04

Linux registred user: 499415

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: teploměr
« Odpověď #34 kdy: 26 Března 2010, 12:36:43 »
Složku hledat nemusíš, stačí napsat do terminálu "digitemp_DS9097" a měl by se ti spustit. Jinak spouštěj ho z kořenového adresáře /, protože právě tam se vytvoří ten očuchaný soubor .digitemprc.
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

1x23

  • Aktivní člen
  • *
  • Příspěvků: 449
Re: teploměr
« Odpověď #35 kdy: 13 Dubna 2010, 14:25:43 »
Ahoj,

tak jsem zkusil číst teplotu, deska intel a com port je normalně vyvedený na desce a čteni funguje.
Na jiném stroji mi čtení nejde, chyba je, že jsem vyvedl com port přes prodloužení, ale toto prodlouženi mi na žádné desce nefunguje, dočetl jsem se, že prodlouženi funguje jen na gigabyte desce. a jsou dva typy prodlouženi com portu na amd a intel.

Setkal se někdo s těmito problémy, má někdo schéma zapojení com portu na intel?

Jak přepájet prodloužení, aby šlo na intelu?

Děkuji za typa:)
NTB: Lenovo P50. OS - Ubuntu 18.04

Linux registred user: 499415

Martin Kiklhorn

  • Člen občanského sdružení Ubuntu ČR a placené komunitní podpory
  • Administrátor fóra
  • Závislák
  • ******
  • Příspěvků: 4807
  • グーグル!ご存知ですか?
    • HEJ
Re: teploměr
« Odpověď #36 kdy: 13 Dubna 2010, 21:35:42 »
Používají se ve většině případů dvě zapojení - pohled na plochý kabel u konektoru:

a)
Kód: [Vybrat]
ooooo
         oooo
b)
Kód: [Vybrat]
o o o o o
 o o o o

Jestli to chcete přesně na piny tak si stáhněte manuál k desce.
1) Najděte si zapojení headeru na desce.  Pokud to tam nebude tak si stáhněte manuál k nějaké staré desce stejného výrobce. 
2) Zapojení signálu na konektoru najdete na wikipedii, na tydyt.cz, na hw.cz ...
Jsou ve vašem dotazu OPRAVDU VŠECHNY vám dostupné informace o problému?
Linux user since 2007-10-11, Registered #456007
Virtual
| Distribuce
~/slozka znamená /home/"vase jmeno"/slozka
6521 69DE 0F34 FCBC FB1D  DE76 360E 52B2 F71A B8E8

 

Provoz zaštiťuje spolek OpenAlt.