51

Odp: ATtiny85 z LittleWire

No ale jak? w sensie czy jest tam ustawione 0 czy 1? Wyjście jest jako output ustawione, zobaczy czy jego odczytanie da taki sam rezulat.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

52

Odp: ATtiny85 z LittleWire

O tym że odpowiedni pin trzeba ustawić jako wejście to wiem ale mi chodzi w sensie elektrycznym.
Mam zasilacz buforowy na którym są 2 diody, zielona i czerwona.
Z jednej chciałbym na LW na skonfigurowany pin podać informację o tym że dioda się świeci albo i nie.

53

Odp: ATtiny85 z LittleWire

Jeżeli napięcie na diodach jest odpowiednie to podłącz się pinem z lw do diody i ustaw go jako wejście. Będziesz miał odczyt czy tam jest 0 czy 1, wiec czy się świeci czy nie. Zwykłe wejście stanowe.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

54

Odp: ATtiny85 z LittleWire

Jakie jest możliwe maksymalne napięcie na pin.
Nie mogę znaleść tej informacji na http://littlewire.cc/

55

Odp: ATtiny85 z LittleWire

W specyfikacji Attiny85 szukaj, nie littlewire (co jest nazwą projektu). VCC+0.5v

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

56

Odp: ATtiny85 z LittleWire

Szukam jakiegos gotowego rozwiazania na usb zebym mogl mierzyc temperature poprzez 1wire i moc jednoczesnie wysterowac jakis przekaznik

Czy poza attiny85 + HL52S cos moge znalesc ?

57

Odp: ATtiny85 z LittleWire

A to złe rozwiązanie?

esp8266 +ds1820 + przekaźnik. Zaleta - bezprzewodowo.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

58

Odp: ATtiny85 z LittleWire

W sumie nie glupi pomysl tylko jakies zasilanie do esp8266 trzeba by bylo skombinowac i jakis przekaznik do tego.
Jaki bys zaproponowal zeby bezposrednio z esp8266 mozna bylo nim sterowac ?

59

Odp: ATtiny85 z LittleWire

W niektórych przypadkach przekaźnik da się z 3,3v wysterować. Jeżeli nie - możesz zrobić zasilacz 12v lub 5v, z niego przekaźnik i przetwonik na 3.3v do esp.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

60

Odp: ATtiny85 z LittleWire

Wróciłem do routera sagem v2704 v2 i w sumie dalej jest z nim jakiś dziwny problem a konkretnie z usb.
LW mam w wersji 1.3, które podpięte jest bezpośrednio do routera - bez hub'a.
Program blink przeważnie działa ale czasami się wysypie z błędem

root@OpenWrt:/usr/bin# ./blink
----------------------------------------------------------
> 1 Little Wire device is found with serialNumber: 512
----------------------------------------------------------
> Little Wire firmware version: 1.3
Blink!
...
Blink!
...
Blink!
...
Blink!
...
Blink!
...
> lwStatus: -145
> Connection error: unknown
root@OpenWrt:/usr/bin#

Za to program onewire przeważnie nie działa a jak zadziała to szybko się wysypie.
Wydaje mi się że to jest problem z magistralą usb.
W najnowszym lede ten problem może być rozwiązany ?
Czy jest to bardziej problem sprzętowy ?

61

Odp: ATtiny85 z LittleWire

Powiedział bym że jakiś problem po stronie usb w routerze.

Podłącz go przez jakiś hub usb, zwykły, najprymitywniejszy. LW implementuje programowo USB o najniższej przepustowości, może coś chipset szaleje przy takim połączeniu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

62

Odp: ATtiny85 z LittleWire

Ma ktoś pomysł na to dlaczego również na tl-wr1043nd v4 też ten pakiet nie działa.

W logach jest coś takiego

[   21.470506] device eth0.1 entered promiscuous mode
[   21.475460] device eth0 entered promiscuous mode
[   21.592732] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.647798] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   23.535803] eth0: link up (1000Mbps/Full duplex)
[   23.910425] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   24.016668] br-lan: port 1(eth0.1) entered forwarding state
[   24.022470] br-lan: port 1(eth0.1) entered forwarding state
[   24.028348] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   24.100107] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   25.596379] usb 1-1: device descriptor read/64, error -145
[   25.826387] usb 1-1: new low-speed USB device number 3 using ehci-platform
[   26.016391] br-lan: port 1(eth0.1) entered forwarding state
[   30.966418] usb 1-1: device descriptor read/64, error -145
[   46.256380] usb 1-1: device descriptor read/64, error -145
[   46.486377] usb 1-1: new low-speed USB device number 4 using ehci-platform
[   56.946383] usb 1-1: device not accepting address 4, error -145
[   57.066384] usb 1-1: new low-speed USB device number 5 using ehci-platform
[   67.526379] usb 1-1: device not accepting address 5, error -145
[   67.532553] usb usb1-port1: unable to enumerate USB device
[   72.806384] random: nonblocking pool is initialized

Pakiet lw zainstalowany a nawet nie nawet nie widać LW

root@LEDE:~# cd /usr/bin
root@LEDE:/usr/bin# ls
[              dropbearkey    jshn           openssl        tail
[[             du             jsonfilter     passwd         tee
adc            env            killall        pgrep          test
awk            etherwake      ldd            printf         time
basename       expr           less           readlink       top
blink          find           logger         remserial      tr
bunzip2        free           lua            reset          traceroute
button         ftpput         luci-bwc       scp            traceroute6
bzcat          fwtool         lwbuttond      seq            uniq
clear          gcom           md5sum         servo          uptime
cmp            getrandom      mkfifo         sha256sum      usign
comgt          hardwarePWM    nc             signify        wc
crontab        head           nslookup       softPWM        which
cut            hexdump        ntfs-3g        sort           xargs
dbclient       i2c_blinkM     ntfs-3g.probe  spi_LTC1448    yes
debugConsole   id             onewire        ssh
dirname        iwinfo         onewireall     strings
root@LEDE:/usr/bin# ./onewire
Little Wire could not be found!
root@LEDE:/usr/bin#
root@LEDE:/usr/bin#

63

Odp: ATtiny85 z LittleWire

opkg update; opkg install kmod-usb-ohci

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

64

Odp: ATtiny85 z LittleWire

Niestety doinstalowanie tego pakietu nie pomogło

root@LEDE:/usr/bin# ./blink
----------------------------------------------------------
> Little Wire could not be found!
----------------------------------------------------------
root@LEDE:/usr/bin# dmesg
[    0.000000] Linux version 4.4.61 (cezary@eko.one.pl) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 Wed May 3 12:16:04 2017
[    0.000000] MyLoader: sysp=13e8ecb4, boardp=accf99ff, parts=570907df
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] No valid device tree found, continuing without
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 804304d0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=TL-WR1043ND-v4 mtdparts=spi0.0:128k(u-boot)ro,1536k(kernel),14016k(rootfs),128k(product-info)ro,320k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(ART)ro,15552k@0x20000(firmware) console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 59968K/65536K available (3096K kernel code, 163K rwdata, 772K rodata, 312K init, 205K bss, 5568K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008207] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071018] pid_max: default: 32768 minimum: 301
[    0.075975] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082949] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092472] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.102886] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.110351] NET: Registered protocol family 16
[    0.116301] MIPS: machine is TP-LINK TL-WR1043ND v4
[    0.346387] clocksource: Switched to clocksource MIPS
[    0.352815] NET: Registered protocol family 2
[    0.358166] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.365519] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372263] TCP: Hash tables configured (established 1024 bind 1024)
[    0.379050] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.385215] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.392085] NET: Registered protocol family 1
[    0.396760] PCI: CLS 0 bytes, default 32
[    0.400386] Crashlog allocated RAM at address 0x3f00000
[    0.417979] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.424128] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.436553] io scheduler noop registered
[    0.440692] io scheduler deadline registered (default)
[    0.446313] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.455246] console [ttyS0] disabled
[    0.479092] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.488192] console [ttyS0] enabled
[    0.495731] bootconsole [early0] disabled
[    0.508673] m25p80 spi0.0: found w25q128, expected m25p80
[    0.514260] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.519190] 9 cmdlinepart partitions found on MTD device spi0.0
[    0.525299] Creating 9 MTD partitions on "spi0.0":
[    0.530272] 0x000000000000-0x000000020000 : "u-boot"
[    0.537240] 0x000000020000-0x0000001a0000 : "kernel"
[    0.543650] 0x0000001a0000-0x000000f50000 : "rootfs"
[    0.550094] mtd: device 2 (rootfs) set to be root filesystem
[    0.555991] 1 squashfs-split partitions found on MTD device rootfs
[    0.562421] 0x000000660000-0x000000f50000 : "rootfs_data"
[    0.569295] 0x000000f50000-0x000000f70000 : "product-info"
[    0.576254] 0x000000f70000-0x000000fc0000 : "config"
[    0.582753] 0x000000fc0000-0x000000fd0000 : "partition-table"
[    0.590050] 0x000000fd0000-0x000000ff0000 : "logs"
[    0.596342] 0x000000ff0000-0x000001000000 : "ART"
[    0.602561] 0x000000020000-0x000000f50000 : "firmware"
[    0.621591] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[    1.273145] libphy: ag71xx_mdio: probed
[    1.868005] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.879506] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[    1.887975] NET: Registered protocol family 10
[    1.896328] NET: Registered protocol family 17
[    1.901037] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.914184] 8021q: 802.1Q VLAN Support v1.8
[    1.926232] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.935261] Freeing unused kernel memory: 312K (80452000 - 804a0000)
[    2.949209] init: Console is alive
[    2.952901] init: - watchdog -
[    4.421986] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.528999] usbcore: registered new interface driver usbfs
[    4.534770] usbcore: registered new interface driver hub
[    4.540373] usbcore: registered new device driver usb
[    4.578319] SCSI subsystem initialized
[    4.587627] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.595791] ehci-platform: EHCI generic platform driver
[    4.601319] ehci-platform ehci-platform.0: EHCI Host Controller
[    4.607485] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    4.617932] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[    4.636421] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    4.643753] hub 1-0:1.0: USB hub found
[    4.647974] hub 1-0:1.0: 1 port detected
[    4.652338] ehci-platform ehci-platform.1: EHCI Host Controller
[    4.658524] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[    4.668990] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[    4.686408] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[    4.693746] hub 2-0:1.0: USB hub found
[    4.697974] hub 2-0:1.0: 1 port detected
[    4.705643] usbcore: registered new interface driver usb-storage
[    4.712547] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.722378] init: - preinit -
[    5.156452] usb 1-1: new low-speed USB device number 2 using ehci-platform
[    5.268570] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.293876] random: procd: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
[    6.977991] eth0: link up (1000Mbps/Full duplex)
[    6.982967] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.486193] mount_root: loading kmods from internal overlay
[    7.522043] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    7.530386] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    8.000100] jffs2: notice: (454) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.016535] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    8.030035] block: extroot: not configured
[    8.110798] jffs2: notice: (451) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.128809] mount_root: loading kmods from internal overlay
[    8.198664] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    8.226138] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.233998] ohci-platform: OHCI generic platform driver
[    8.240825] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    8.536601] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    8.546266] block: extroot: not configured
[    8.551366] mount_root: switching to jffs2 overlay
[    8.566214] urandom-seed: Seeding with /etc/urandom.seed
[    8.609442] eth0: link down
[    8.621859] procd: - early -
[    8.624910] procd: - watchdog -
[    9.141727] random: jshn: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.300428] random: jshn: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.438493] procd: - ubus -
[    9.719272] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[    9.903961] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[    9.926823] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[    9.936124] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[    9.956763] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[    9.966063] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[    9.994964] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[   10.004696] procd: - init -
[   10.296472] usb 1-1: device descriptor read/64, error -145
[   10.570912] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.614449] tun: Universal TUN/TAP device driver, 1.6
[   10.619717] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   10.654219] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.701517] u32 classifier
[   10.704317]     input device check on
[   10.708148]     Actions configured
[   10.728397] Mirror/redirect action on
[   10.743814] nf_conntrack version 0.5.0 (941 buckets, 3764 max)
[   10.773188] fuse init (API version 7.23)
[   10.791771] usbcore: registered new interface driver cdc_acm
[   10.797663] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   10.827884] usbcore: registered new interface driver cdc_wdm
[   10.848332] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   10.856646] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   10.879118] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.989319] usbcore: registered new interface driver usblp
[   11.020581] usbcore: registered new interface driver usbserial
[   11.026748] usbcore: registered new interface driver usbserial_generic
[   11.033561] usbserial: USB Serial support registered for generic
[   11.118636] xt_time: kernel timezone is -0000
[   11.138374] usbcore: registered new interface driver cdc_ether
[   11.148067] usbcore: registered new interface driver cdc_ncm
[   11.217935] usbcore: registered new interface driver ch341
[   11.223674] usbserial: USB Serial support registered for ch341-uart
[   11.268570] usbcore: registered new interface driver ftdi_sio
[   11.274581] usbserial: USB Serial support registered for FTDI USB Serial Device
[   11.293686] usbcore: registered new interface driver huawei_cdc_ncm
[   11.412038] PPP generic driver version 2.4.2
[   11.460603] NET: Registered protocol family 24
[   11.467742] usbcore: registered new interface driver qmi_wwan
[   11.498915] usbcore: registered new interface driver rndis_host
[   11.511605] usbcore: registered new interface driver sierra
[   11.517502] usbserial: USB Serial support registered for Sierra USB modem
[   11.548428] usbcore: registered new interface driver sierra_net
[   11.618488] usbcore: registered new interface driver cdc_mbim
[   11.637230] usbcore: registered new interface driver option
[   11.643072] usbserial: USB Serial support registered for GSM modem (1-port)
[   11.688062] usbcore: registered new interface driver qcserial
[   11.694086] usbserial: USB Serial support registered for Qualcomm USB modem
[   11.728773] ath: EEPROM regdomain: 0x0
[   11.728790] ath: EEPROM indicates default country code should be used
[   11.728797] ath: doing EEPROM country->regdmn map search
[   11.728813] ath: country maps to regdmn code: 0x3a
[   11.728822] ath: Country alpha2 being used: US
[   11.728829] ath: Regpair used: 0x3a
[   11.739504] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.744338] ieee80211 phy0: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[   11.791860] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.444650]
[   12.444650] do_page_fault(): sending SIGSEGV to ser2net for invalid read access from 00000210
[   12.453498] epc = 004031e1 in ser2net[400000+10000]
[   12.458561] ra  = 004067a5 in ser2net[400000+10000]
[   12.463602]
[   21.419928] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   21.540795] device eth0.1 entered promiscuous mode
[   21.545748] device eth0 entered promiscuous mode
[   21.561597] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.618532] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   23.471476] eth0: link up (1000Mbps/Full duplex)
[   23.866488] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   23.927224] br-lan: port 1(eth0.1) entered forwarding state
[   23.933030] br-lan: port 1(eth0.1) entered forwarding state
[   23.938911] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   24.037221] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   25.626407] usb 1-1: device descriptor read/64, error -145
[   25.856411] usb 1-1: new low-speed USB device number 3 using ehci-platform
[   25.926389] br-lan: port 1(eth0.1) entered forwarding state
[   30.996455] usb 1-1: device descriptor read/64, error -145
[   46.286404] usb 1-1: device descriptor read/64, error -145
[   46.516401] usb 1-1: new low-speed USB device number 4 using ehci-platform
[   56.976402] usb 1-1: device not accepting address 4, error -145
[   57.096401] usb 1-1: new low-speed USB device number 5 using ehci-platform
[   67.556401] usb 1-1: device not accepting address 5, error -145
[   67.562574] usb usb1-port1: unable to enumerate USB device
[   72.706420] random: nonblocking pool is initialized
root@LEDE:/usr/bin#

65

Odp: ATtiny85 z LittleWire

Tobie zwraca błędy na magistrali usb...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

66 (edytowany przez viper_lasser 2017-06-27 13:06:11)

Odp: ATtiny85 z LittleWire

Na tl-wr1043nd v4 mam zainstalowane takie  pakiety

BusyBox v1.25.1 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (17.01-SNAPSHOT, r3371-79cd141)
    \________\/    -----------------------------------------------------------

 -----------------------------------------------------------------------------
 |                                                                           |
 | Build time: 2017-05-05 18:34 CEST                                         |
 |                                                                           |
 | Cezary Jackiewicz (obsy), http://eko.one.pl                               |
 |                                                                           |
 -----------------------------------------------------------------------------
 | Machine: TP-Link TL-WR1043N/ND v4                                         |
 | Uptime: 2d, 13:10:21                                                      |
 | Load: 0.17 0.07 0.02                                                      |
 | Flash: total: 8.9MB, free: 8.3MB, used: 7%                                |
 | Memory: total: 58.9MB, free: 42.3MB, used: 28%                            |
 | WAN: 192.168.1.9, proto: dhcp                                             |
 | LAN: 192.168.10.1, leases: 0                                              |
 -----------------------------------------------------------------------------
root@LEDE:~# opkg list_installed
base-files - 172-r3371-79cd141
block-mount - 2016-12-04-84b530a7-1
busybox - 1.25.1-4
chat - 2.4.7-11
comgt - 0.32-28
comgt-directip - 0.32-28
comgt-ncm - 0.32-28
ddns-scripts - 2.7.6-13
ddns-scripts_no-ip_com - 2.7.6-13
dnsmasq - 2.76-6
dropbear - 2016.74-2
e2fsprogs - 1.43.3-2
ekooneplstat - 20150706
etherwake - 1.09-4
firewall - 2017-01-13-37cb4cb4-2
fstools - 2016-12-04-84b530a7-1
fwtool - 1
hostapd-common - 2016-12-19-ad02e79d-2
ip6tables - 1.4.21-2
iptables - 1.4.21-2
iptables-mod-conntrack-extra - 1.4.21-2
iptables-mod-ipopt - 1.4.21-2
iw - 4.9-1
iwinfo - 2016-09-21-fd9e17be-1
jshn - 2017-02-24-96305a3c-1
jsonfilter - 2016-07-02-dea067ad-1
kernel - 4.4.61-1-0ccb01a53392bc1edbe484e49e87e004
kmod-ath - 4.4.61+2017-01-31-1
kmod-ath9k - 4.4.61+2017-01-31-1
kmod-ath9k-common - 4.4.61+2017-01-31-1
kmod-cfg80211 - 4.4.61+2017-01-31-1
kmod-crypto-crc32c - 4.4.61-1
kmod-crypto-hash - 4.4.61-1
kmod-fs-ext4 - 4.4.61-1
kmod-fs-vfat - 4.4.61-1
kmod-fuse - 4.4.61-1
kmod-gpio-button-hotplug - 4.4.61-2
kmod-ifb - 4.4.61-1
kmod-ip6tables - 4.4.61-1
kmod-ipt-conntrack - 4.4.61-1
kmod-ipt-conntrack-extra - 4.4.61-1
kmod-ipt-core - 4.4.61-1
kmod-ipt-ipopt - 4.4.61-1
kmod-ipt-nat - 4.4.61-1
kmod-lib-crc-ccitt - 4.4.61-1
kmod-lib-crc16 - 4.4.61-1
kmod-lib-textsearch - 4.4.61-1
kmod-mac80211 - 4.4.61+2017-01-31-1
kmod-mii - 4.4.61-1
kmod-nf-conntrack - 4.4.61-1
kmod-nf-conntrack6 - 4.4.61-1
kmod-nf-ipt - 4.4.61-1
kmod-nf-ipt6 - 4.4.61-1
kmod-nf-nat - 4.4.61-1
kmod-nf-nathelper-extra - 4.4.61-1
kmod-nls-base - 4.4.61-1
kmod-nls-cp437 - 4.4.61-1
kmod-nls-iso8859-1 - 4.4.61-1
kmod-nls-utf8 - 4.4.61-1
kmod-ppp - 4.4.61-1
kmod-pppoe - 4.4.61-1
kmod-pppox - 4.4.61-1
kmod-sched-cake - 4.4.61+2017-01-28-9789742c-1
kmod-sched-core - 4.4.61-1
kmod-scsi-core - 4.4.61-1
kmod-slhc - 4.4.61-1
kmod-tun - 4.4.61-1
kmod-usb-acm - 4.4.61-1
kmod-usb-core - 4.4.61-1
kmod-usb-ledtrig-usbport - 4.4.61-1
kmod-usb-net - 4.4.61-1
kmod-usb-net-cdc-ether - 4.4.61-1
kmod-usb-net-cdc-mbim - 4.4.61-1
kmod-usb-net-cdc-ncm - 4.4.61-1
kmod-usb-net-huawei-cdc-ncm - 4.4.61-1
kmod-usb-net-qmi-wwan - 4.4.61-1
kmod-usb-net-rndis - 4.4.61-1
kmod-usb-net-sierrawireless - 4.4.61-1
kmod-usb-ohci - 4.4.61-1
kmod-usb-printer - 4.4.61-1
kmod-usb-serial - 4.4.61-1
kmod-usb-serial-ch341 - 4.4.61-1
kmod-usb-serial-ftdi - 4.4.61-1
kmod-usb-serial-option - 4.4.61-1
kmod-usb-serial-qualcomm - 4.4.61-1
kmod-usb-serial-sierrawireless - 4.4.61-1
kmod-usb-serial-wwan - 4.4.61-1
kmod-usb-storage - 4.4.61-1
kmod-usb-wdm - 4.4.61-1
kmod-usb2 - 4.4.61-1
lede-keyring - 2017-01-20-a50b7529-1
libblobmsg-json - 2017-02-24-96305a3c-1
libc - 1.1.16-1
libext2fs - 1.43.3-2
libgcc - 5.4.0-1
libip4tc - 1.4.21-2
libip6tc - 1.4.21-2
libiwinfo - 2016-09-21-fd9e17be-1
libiwinfo-lua - 2016-09-21-fd9e17be-1
libjson-c - 0.12.1-1
libjson-script - 2017-02-24-96305a3c-1
liblua - 5.1.5-1
liblzo - 2.09-1
libnl-tiny - 0.1-5
libopenssl - 1.0.2k-1
libpthread - 1.1.16-1
librt - 1.1.16-1
libubox - 2017-02-24-96305a3c-1
libubus - 2017-02-18-34c6e818-1
libubus-lua - 2017-02-18-34c6e818-1
libuci - 2016-07-04-e1bf4356-1
libuci-lua - 2016-07-04-e1bf4356-1
libuclient - 2016-12-09-52d955fd-1
libusb-1.0 - 1.0.21-1
libusb-compat - 0.1.4-2
libustream-openssl - 2016-07-02-ec80adaa-2
libuuid - 2.29.2-1
libxtables - 1.4.21-2
littlewire - 1.0.0-1
logd - 2017-03-10-16f7e161-1
lua - 5.1.5-1
luci - git-17.122.25960-63d61d7-1
luci-app-commands - git-17.122.25960-63d61d7-1
luci-app-ddns - 2.4.8-1
luci-app-ekooneplstat - 20150929
luci-app-firewall - git-17.122.25960-63d61d7-1
luci-app-openvpn - git-17.122.25960-63d61d7-1
luci-app-p910nd - git-17.122.25960-63d61d7-1
luci-app-samba - git-17.122.25960-63d61d7-1
luci-app-sqm - 1.1.3-1
luci-app-wol - git-17.122.25960-63d61d7-1
luci-base - git-17.122.25960-63d61d7-1
luci-i18n-base-en - git-17.122.25960-63d61d7-1
luci-i18n-base-pl - git-17.122.25960-63d61d7-1
luci-i18n-commands-en - git-17.122.25960-63d61d7-1
luci-i18n-commands-pl - git-17.122.25960-63d61d7-1
luci-i18n-ddns-pl - 2.4.8-1
luci-i18n-firewall-en - git-17.122.25960-63d61d7-1
luci-i18n-firewall-pl - git-17.122.25960-63d61d7-1
luci-i18n-openvpn-en - git-17.122.25960-63d61d7-1
luci-i18n-openvpn-pl - git-17.122.25960-63d61d7-1
luci-i18n-p910nd-en - git-17.122.25960-63d61d7-1
luci-i18n-p910nd-pl - git-17.122.25960-63d61d7-1
luci-i18n-samba-en - git-17.122.25960-63d61d7-1
luci-i18n-samba-pl - git-17.122.25960-63d61d7-1
luci-i18n-wol-en - git-17.122.25960-63d61d7-1
luci-i18n-wol-pl - git-17.122.25960-63d61d7-1
luci-lib-ip - git-17.122.25960-63d61d7-1
luci-lib-jsonc - git-17.122.25960-63d61d7-1
luci-lib-nixio - git-17.122.25960-63d61d7-1
luci-mod-admin-full - git-17.122.25960-63d61d7-1
luci-proto-3g - git-17.122.25960-63d61d7-1
luci-proto-ipv6 - git-17.122.25960-63d61d7-1
luci-proto-ncm - 20170319
luci-proto-ppp - git-17.122.25960-63d61d7-1
luci-proto-qmi - git-17.122.25960-63d61d7-1
luci-proto-relay - git-17.122.25960-63d61d7-1
luci-ssl-openssl - git-17.122.25960-63d61d7-1
luci-theme-bootstrap - git-17.122.25960-63d61d7-1
mtd - 21
n2n-v2 - 9349-1
netifd - 2017-01-25-650758b1-1
ntfs-3g - 2016.2.22-1-fuseint
odhcp6c - 2017-01-30-c13b6a05-1
odhcpd - 2017-04-28-9268ca65-1
openssl-util - 1.0.2k-1
openvpn-easy-rsa - 2013-01-30-ff5bfd1d-2
openvpn-openssl - 2.4.0-3
opkg - 2017-03-23-1d0263bb-1
p910nd - 0.97-5
ppp - 2.4.7-11
ppp-mod-pppoe - 2.4.7-11
procd - 2017-02-15-5f912410-1
relayd - 2016-02-07-ad0b25ad-2
remserial - 1.4-1
rpcd - 2016-12-03-0577cfc1-1
samba36-server - 3.6.25-5
ser2net - 3.4-2
sqm-scripts - 1.1.3-1
swconfig - 11
sysinfo - 20170327
tc - 4.4.0-9
uboot-envtools - 2015.10-1
ubox - 2017-03-10-16f7e161-1
ubus - 2017-02-18-34c6e818-1
ubusd - 2017-02-18-34c6e818-1
uci - 2016-07-04-e1bf4356-1
uclient-fetch - 2016-12-09-52d955fd-1
uhttpd - 2016-10-25-1628fa4b-1
uhttpd-mod-ubus - 2016-10-25-1628fa4b-1
umbim - 2015-07-04-29aaf43b-1
uqmi - 2016-12-19-8ceeab69-1
usb-modeswitch - 2014-08-26-993a9a54-2
usign - 2015-07-04-ef641914-1
wpad-mini - 2016-12-19-ad02e79d-2
wwan - 2014-07-17-1
root@LEDE:~#

LittleWire jest włożone bezpośrednio do portu usb bez żadnych hubów

Edit:
Czy ma ktoś pomysł jak na stałe w lede można wymusić zmianę parametru
/sys/module/usbcore/parameters/old_scheme_first na wartość Y

Próbowałęm w ten sposób
echo Y > /sys/module/usbcore/parameters/old_scheme_first
ale po restarcie jest N