26

Odp: ATtiny85 LittleWire problem ze sterownikiem

@rombad, udało Ci się skompilować ten program? Jeśli tak, mógłbyś się nim podzielić i udostępnić jakoś?

27

Odp: ATtiny85 LittleWire problem ze sterownikiem

Stwierdziłem że szybciej będzie wyprowadzić na zewnątrz przewody z przycisku routera. Także jakby ktoś potrzebował sprzęt do testów to mogę oddać.

28

Odp: ATtiny85 LittleWire problem ze sterownikiem

W sensie attiny? Ja chcę.

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

29

Odp: ATtiny85 LittleWire problem ze sterownikiem

O to dobrze by było, bo u mnie coś się kaszani. Działa jak należy przez kilka dni, po czym przestaje i router nie odczytuje stanu linii. Nie potrafię dojść dlaczego tak się dzieje. Podejrzewam hub USB lub/i modem.

30

Odp: ATtiny85 LittleWire problem ze sterownikiem

Dostałem, dzięki. Digispark działa. Olimexo-85 też ale... jak zmieniłem na swój chip. Ten nie chce, mimo że samodzielnie programowany normalnie wykonuje kod i działa. Fuse ma ustawione jak trzeba, wszystko wydaje się być dobrze.

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

31

Odp: ATtiny85 LittleWire problem ze sterownikiem

Cezary napisał/a:

W źródłach littlewire znajdziesz przykład programu do obsługi przycisku - działa w tle jako demon i jak się przycisk naciśnie to coś robi. Naciśnięcie przycisku to właśnie zmiana stanu...

A mógłbyś coś takiego skompilować i umieścić w repozytorium na pewno by się wielu osobom przydało bo przycisków zazwyczaj mało w routerach a pomysłów na wykorzystanie cała masa.

32

Odp: ATtiny85 LittleWire problem ze sterownikiem

Leży od 2 tygodni: http://dl.eko.one.pl/test/lwbuttond

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

33

Odp: ATtiny85 LittleWire problem ze sterownikiem

Drobna uwaga, lwbutton działa odwrotnie, tzn. jak się przycisk zwolni (zmiana stanu z 1 na 0) to coś robi.
Drugi przydatny program jest tutaj: http://dl.eko.one.pl/projekty/usbrelay/ … re/lw-gpio

Można spokojnie odinstalować kmod-gpio-lw-usb bo programy tego nie potrzebują do komunikacji z attiny.

34

Odp: ATtiny85 LittleWire problem ze sterownikiem

Jakie sterowniki usb muszę mieć zainstalowane do obsługi attiny 85 ?

Mam takie zainstalowane pakiety

root@OpenWrt:~# opkg list_installed
base-files - 156-r42993
busybox - 1.22.1-2
chat - 2.4.7-2
comgt - 0.32-23
dnsmasq - 2.71-4
dropbear - 2014.63-2
firewall - 2014-09-19
fstools - 2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e
hostapd-common - 2014-06-03.1-1
ip6tables - 1.4.21-1
iptables - 1.4.21-1
iw - 3.15-1
iwinfo - 51
jshn - 2014-08-04-dffbc09baf71b294185a36048166d00066d433b5
jsonfilter - 2014-06-19-cdc760c58077f44fc40adbbe41e1556a67c1b9a9
kernel - 3.10.49-1-97068cea354f709c15274290df479f05
kmod-b43 - 3.10.49+2014-05-22-1
kmod-bcma - 3.10.49-1
kmod-button-hotplug - 3.10.49-3
kmod-cfg80211 - 3.10.49+2014-05-22-1
kmod-crypto-aes - 3.10.49-1
kmod-crypto-arc4 - 3.10.49-1
kmod-crypto-core - 3.10.49-1
kmod-crypto-hash - 3.10.49-1
kmod-fs-ext4 - 3.10.49-1
kmod-fs-ntfs - 3.10.49-1
kmod-fs-vfat - 3.10.49-1
kmod-input-core - 3.10.49-1
kmod-input-gpio-keys-polled - 3.10.49-1
kmod-input-polldev - 3.10.49-1
kmod-ip6tables - 3.10.49-1
kmod-ipt-conntrack - 3.10.49-1
kmod-ipt-core - 3.10.49-1
kmod-ipt-nat - 3.10.49-1
kmod-ipt-nathelper - 3.10.49-1
kmod-ipv6 - 3.10.49-1
kmod-ledtrig-usbdev - 3.10.49-1
kmod-lib-crc-ccitt - 3.10.49-1
kmod-lib-crc16 - 3.10.49-1
kmod-mac80211 - 3.10.49+2014-05-22-1
kmod-nls-base - 3.10.49-1
kmod-ppp - 3.10.49-1
kmod-pppoe - 3.10.49-1
kmod-pppox - 3.10.49-1
kmod-scsi-core - 3.10.49-1
kmod-slhc - 3.10.49-1
kmod-usb-core - 3.10.49-1
kmod-usb-ohci - 3.10.49-1
kmod-usb-serial - 3.10.49-1
kmod-usb-serial-ch341 - 3.10.49-1
kmod-usb-serial-cp210x - 3.10.49-1
kmod-usb-serial-ftdi - 3.10.49-1
kmod-usb-serial-pl2303 - 3.10.49-1
kmod-usb-serial-wwan - 3.10.49-1
kmod-usb-storage - 3.10.49-1
kmod-usb-storage-extras - 3.10.49-1
kmod-usb2 - 3.10.49-1
libblobmsg-json - 2014-08-04-dffbc09baf71b294185a36048166d00066d433b5
libc - 0.9.33.2-1
libgcc - 4.8-linaro-1
libip4tc - 1.4.21-1
libip6tc - 1.4.21-1
libiwinfo - 51
libjson-c - 0.11-2
libjson-script - 2014-08-04-dffbc09baf71b294185a36048166d00066d433b5
libnl-tiny - 0.1-3
libpthread - 0.9.33.2-1
librt - 0.9.33.2-1
libubox - 2014-08-04-dffbc09baf71b294185a36048166d00066d433b5
libubus - 2014-09-17-4c4f35cf2230d70b9ddd87638ca911e8a563f2f3
libuci - 2014-04-11.1-1
libusb-1.0 - 1.0.9-1
libusb-compat - 0.1.4-1
libxtables - 1.4.21-1
littlewire - 1.0.0-1
mtd - 20
netifd - 2014-09-08-46c569989f984226916fec28dd8ef152a664043e
odhcp6c - 2014-10-12-c52296c48abe2025abab03cea98f52a654b92ee2
odhcpd - 2014-09-25-a6e2953843eaf6c93764f9feef10466e7a84ec85
opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7
ppp - 2.4.7-2
ppp-mod-pppoe - 2.4.7-2
procd - 2014-09-15-c1a558f7d0c1e6c1ffa5a47d557a7b45205eef1d
swconfig - 10
ubox - 2014-09-16-5c45b560bc8c9e13682269ed963a8a4a65959518
ubus - 2014-09-17-4c4f35cf2230d70b9ddd87638ca911e8a563f2f3
ubusd - 2014-09-17-4c4f35cf2230d70b9ddd87638ca911e8a563f2f3
uci - 2014-04-11.1-1
wpad-mini - 2014-06-03.1-1
root@OpenWrt:~#

Oraz skompilowaną ze źródeł paczkę littlewire ze wszystkimi przykładami. Obojętnie który nie uruchomię to wyskakuje mi komunikat "LittleWire could not be found".

Po analize źródeł https://github.com/littlewire/Little-Wi … nunchuck.c
widać że poprostu tego interfejsu nie wykrywa.
Żeby było śmieszniej to nie mam folderu usb w /proc/bus/

35

Odp: ATtiny85 LittleWire problem ze sterownikiem

Żadnych, tylko libusb. Jak podłączysz zwykły pendrive to działa?

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

36 (edytowany przez viper_lasser 2014-10-26 17:35:28)

Odp: ATtiny85 LittleWire problem ze sterownikiem

Po logach widać że tak

root@OpenWrt:~# logread
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.408000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.416000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.424000] msgmni has been set to 119
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.432000] io scheduler noop registered
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.436000] io scheduler deadline registered (default)
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.444000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.448000] console [ttyS0] enabled, bootconsole disabled
Sat Oct 25 11:43:46 2014 kern.warn kernel: [    0.468000] m25p80 spi1.0: found s25sl064p, expected m25p80
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.472000] m25p80 spi1.0: s25sl064p (8192 Kbytes)
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.480000] bcm63xxpart: CFE boot tag found with version 6 and board type F@ST2704V2
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.488000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.492000] bcm63xxpart: Partition 1 is kernel offset 10100 and length 10ff00
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.500000] bcm63xxpart: Partition 2 is rootfs offset 120000 and length 6d0000
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.508000] bcm63xxpart: Partition 3 is nvram offset 7f0000 and length 10000
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.516000] bcm63xxpart: Partition 4 is linux offset 10000 and length 7e0000
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.524000] bcm63xxpart: Spare partition is offset 360004 and length 48fffc
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.532000] 5 bcm63xxpart partitions found on MTD device spi1.0
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.536000] Creating 5 MTD partitions on "spi1.0":
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.540000] 0x000000000000-0x000000010000 : "CFE"
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.548000] 0x000000010100-0x000000120000 : "kernel"
Sat Oct 25 11:43:46 2014 kern.warn kernel: [    0.556000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.568000] 0x000000120000-0x0000007f0000 : "rootfs"
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.576000] mtd: device 2 (rootfs) set to be root filesystem
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.584000] mtd: partition "rootfs_data" created automatically, ofs=0x360000, len=0x490000
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.592000] 0x000000360000-0x0000007f0000 : "rootfs_data"
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.600000] 0x0000007f0000-0x000000800000 : "nvram"
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    0.608000] 0x000000010000-0x0000007f0000 : "linux"
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.656000] b53_common: found switch: BCM63xx, rev 0
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.660000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.676000] TCP: cubic registered
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.676000] NET: Registered protocol family 17
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.684000] 8021q: 802.1Q VLAN Support v1.8
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.696000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Sat Oct 25 11:43:46 2014 kern.info kernel: [    0.708000] Freeing unused kernel memory: 288K (802f8000 - 80340000)
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.288000] usbcore: registered new interface driver usbfs
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.292000] usbcore: registered new interface driver hub
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.300000] usbcore: registered new device driver usb
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.316000] Button Hotplug driver version 0.4.1
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    5.400000] SCSI subsystem initialized
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.420000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.428000] ehci-platform: EHCI generic platform driver
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.540000] ehci-platform ehci-platform: EHCI Host Controller
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.544000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.552000] ehci-platform ehci-platform: irq 50, io mem 0xb0002500
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.572000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.580000] hub 1-0:1.0: USB hub found
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.584000] hub 1-0:1.0: 1 port detected
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.596000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.600000] ohci-platform ohci-platform: Generic Platform OHCI Controller
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.608000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.616000] ohci-platform ohci-platform: irq 49, io mem 0xb0002600
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.684000] hub 2-0:1.0: USB hub found
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.688000] hub 2-0:1.0: 1 port detected
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.704000] usbcore: registered new interface driver usb-storage
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.716000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
Sat Oct 25 11:43:46 2014 kern.info kernel: [    5.904000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Sat Oct 25 11:43:46 2014 kern.info kernel: [    6.124000] usb-storage 1-1:1.0: USB Mass Storage device detected
Sat Oct 25 11:43:46 2014 kern.info kernel: [    6.132000] scsi0 : usb-storage 1-1:1.0
Sat Oct 25 11:43:46 2014 kern.info kernel: [    6.532000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    7.212000] scsi 0:0:0:0: Direct-Access     TOSHIBA  TransMemory      PMAP PQ: 0 ANSI: 0 CCS
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    7.872000] sd 0:0:0:0: [sda] 7669824 512-byte logical blocks: (3.92 GB/3.65 GiB)
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    7.880000] sd 0:0:0:0: [sda] Write Protect is off
Sat Oct 25 11:43:46 2014 kern.debug kernel: [    7.888000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
Sat Oct 25 11:43:46 2014 kern.err kernel: [    7.888000] sd 0:0:0:0: [sda] No Caching mode page found
Sat Oct 25 11:43:46 2014 kern.err kernel: [    7.892000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sat Oct 25 11:43:46 2014 kern.err kernel: [    7.904000] sd 0:0:0:0: [sda] No Caching mode page found
Sat Oct 25 11:43:46 2014 kern.err kernel: [    7.912000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sat Oct 25 11:43:46 2014 kern.info kernel: [    7.936000]  sda: sda1
Sat Oct 25 11:43:46 2014 kern.err kernel: [    7.944000] sd 0:0:0:0: [sda] No Caching mode page found
Sat Oct 25 11:43:46 2014 kern.err kernel: [    7.952000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sat Oct 25 11:43:46 2014 kern.notice kernel: [    7.956000] sd 0:0:0:0: [sda] Attached SCSI removable disk
Sat Oct 25 11:43:46 2014 kern.notice kernel: [   10.204000] jffs2: notice: (259) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (1 unchecked, 15 orphan) and 22 of xref (0 dead, 15 orphan) found.
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.712000] NET: Registered protocol family 10
Sat Oct 25 11:43:46 2014 kern.warn kernel: [   13.728000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.736000] bcma: bus0: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.740000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.752000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.760000] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
Sat Oct 25 11:43:46 2014 kern.warn kernel: [   13.848000] bcma: bus0: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
Sat Oct 25 11:43:46 2014 kern.warn kernel: [   13.860000] bcma: bus0: Using fallback SPROM failed (err -2)
Sat Oct 25 11:43:46 2014 kern.err kernel: [   13.864000] bcma: bus0: No SPROM available
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.880000] bcma: bus0: Bus registered
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.904000] NTFS driver 2.1.30 [Flags: R/O MODULE].
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.936000] nf_conntrack version 0.5.0 (963 buckets, 3852 max)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.960000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.988000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
Sat Oct 25 11:43:46 2014 kern.info kernel: [   13.996000] Backport generated by backports.git backports-20140320-37-g5c33da0
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.008000] ip_tables: (C) 2000-2006 Netfilter Core Team
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.060000] usbcore: registered new interface driver ums-alauda
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.072000] usbcore: registered new interface driver ums-cypress
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.080000] usbcore: registered new interface driver ums-datafab
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.092000] usbcore: registered new interface driver ums-freecom
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.104000] usbcore: registered new interface driver ums-isd200
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.112000] usbcore: registered new interface driver ums-jumpshot
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.124000] usbcore: registered new interface driver ums-karma
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.136000] usbcore: registered new interface driver ums-sddr09
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.148000] usbcore: registered new interface driver ums-sddr55
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.156000] usbcore: registered new interface driver ums-usbat
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.176000] usbcore: registered new interface driver usbserial
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.184000] usbcore: registered new interface driver usbserial_generic
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.192000] usbserial: USB Serial support registered for generic
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.236000] xt_time: kernel timezone is -0000
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.296000] usbcore: registered new interface driver ch341
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.308000] usbserial: USB Serial support registered for ch341-uart
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.324000] usbcore: registered new interface driver cp210x
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.328000] usbserial: USB Serial support registered for cp210x
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.356000] usbcore: registered new interface driver ftdi_sio
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.364000] cfg80211: Calling CRDA to update world regulatory domain
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.372000] usbserial: USB Serial support registered for FTDI USB Serial Device
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.380000] cfg80211: World regulatory domain updated:
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.384000] cfg80211:  DFS Master region: unset
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.388000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.400000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.408000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.416000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.424000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.432000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.440000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.448000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.456000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.584000] usbcore: registered new interface driver pl2303
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.588000] usbserial: USB Serial support registered for pl2303
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.604000] PPP generic driver version 2.4.2
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.612000] NET: Registered protocol family 24
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.672000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.680000] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 6
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.684000] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 11, Version 0
Sat Oct 25 11:43:46 2014 kern.info kernel: [   14.700000] Broadcom 43xx driver loaded [ Features: PNL ]
Sat Oct 25 11:43:46 2014 kern.debug kernel: [   14.712000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Sat Oct 25 11:43:47 2014 kern.info kernel: [   19.176000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
Sat Oct 25 11:43:51 2014 authpriv.info dropbear[731]: Not backgrounding
Sat Oct 25 11:43:52 2014 user.emerg syslog: setting up led USB
Sat Oct 25 11:43:53 2014 user.emerg syslog: - init complete -
Sat Oct 25 11:43:54 2014 kern.info kernel: [   25.780000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
Sat Oct 25 11:43:54 2014 kern.info kernel: [   25.800000] device eth0.1 entered promiscuous mode
Sat Oct 25 11:43:54 2014 kern.info kernel: [   25.804000] device eth0 entered promiscuous mode
Sat Oct 25 11:43:54 2014 kern.info kernel: [   25.812000] br-lan: port 1(eth0.1) entered forwarding state
Sat Oct 25 11:43:54 2014 kern.info kernel: [   25.816000] br-lan: port 1(eth0.1) entered forwarding state
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'lan' is enabled
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'lan' is setting up now
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'lan' is now up
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'loopback' is enabled
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'loopback' is setting up now
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'loopback' is now up
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Network device 'eth0' link is up
Sat Oct 25 11:43:54 2014 daemon.notice netifd: VLAN 'eth0.1' link is up
Sat Oct 25 11:43:54 2014 daemon.notice netifd: VLAN 'eth0.1' link is down
Sat Oct 25 11:43:54 2014 daemon.notice netifd: VLAN 'eth0.1' link is up
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Bridge 'br-lan' link is up
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'lan' has link connectivity
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Network device 'lo' link is up
Sat Oct 25 11:43:54 2014 daemon.notice netifd: Interface 'loopback' has link connectivity
Sat Oct 25 11:43:55 2014 authpriv.info dropbear[832]: Child connection from 192.168.1.99:50693
Sat Oct 25 11:43:55 2014 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sat Oct 25 11:43:56 2014 kern.info kernel: [   27.820000] br-lan: port 1(eth0.1) entered forwarding state
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): Configuration file: /var/run/hostapd-phy0.conf
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): Could not set interface wlan0 flags (UP): Cannot assign requested address
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): nl80211: Could not set interface 'wlan0' UP
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): nl80211 driver initialization failed.
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): Command failed: Invalid argument
Sat Oct 25 11:43:57 2014 daemon.notice netifd: radio0 (799): Device setup failed: HOSTAPD_START_FAILED
Sat Oct 25 11:44:01 2014 daemon.warn odhcpd[694]: DHCPV6 SOLICIT IA_NA from 0001000117a489bb3085a970d3dc on br-lan: ok fd9f:3de0:2e61::453/128
Sat Oct 25 11:44:01 2014 daemon.warn odhcpd[694]: DHCPV6 REQUEST IA_NA from 0001000117a489bb3085a970d3dc on br-lan: ok fd9f:3de0:2e61::453/128
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq[948]: started, version 2.71 cachesize 150
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq[948]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq-dhcp[948]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq[948]: using local addresses only for domain lan
Sat Oct 25 11:44:02 2014 daemon.warn dnsmasq[948]: no servers found in /tmp/resolv.conf.auto, will retry
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq[948]: read /etc/hosts - 1 addresses
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq[948]: read /tmp/hosts/dhcp - 1 addresses
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq[948]: read /tmp/hosts/odhcpd - 1 addresses
Sat Oct 25 11:44:02 2014 daemon.info dnsmasq-dhcp[948]: read /etc/ethers - 0 addresses
Sat Oct 25 11:44:05 2014 authpriv.notice dropbear[832]: Password auth succeeded for 'root' from 192.168.1.99:50693
root@OpenWrt:~#

ale wifi na tym sagemie 2704V2 się wykłada

Edit:
http://eko.one.pl/forum/viewtopic.php?p … 77#p120577
Widzę że Cezary dziś ładnie opisał wszystko smile
U mnie problem jest taki że po uruchoieniu obojętnie jakiego przykładu nie widać LW a dioda miga i widać że LW jest uruchomione.

W jaki sposób sprawdzić co może być nie tak ?

37

Odp: ATtiny85 LittleWire problem ze sterownikiem

Próbuję uruchomić LittleWire na starym asusie WL-500 v1.
Skompilowałem stare wydanie openwrt 8.09.2 z kernelem 2.6 Pakiet LW mam (w /usr/bin/ mam m.in. adc, onewire, blink...)

Z niewiadomych przyczyn LW nie widać w systemie bo przy próbie uruchomienia pojawia się komunikat "Little wire not found".

Czy do LW potrzebne są jakieś specjalne moduły kernela np kmod-uhci-usb ?
W jaki sposób sprawdzić czy usb jest poprawnie zainicjalizowane ?

38

Odp: ATtiny85 LittleWire problem ze sterownikiem

Tak, lw jest na usb low speed, więc tez tego może go nie widzieć. Czasami też pomaga połączenie przez zwykły hub 2.0, najtańszy zwykły pasywny.

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

39

Odp: ATtiny85 LittleWire problem ze sterownikiem

@Cezary. Da się to jakoś ominąć bez hub'a ?
Co robi ten hub że rozwiązuje problem hardware'owo ?

40

Odp: ATtiny85 LittleWire problem ze sterownikiem

Problem hardwarowo.

Czemu jeszcze zajmujesz się attiny? Masz esp, możesz używać tego.

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

41

Odp: ATtiny85 LittleWire problem ze sterownikiem

Zostało mi kilka. Myślałem żeby coś z nich zrobić smile
Pierwszy pomysł to zrobienie power switcha.
Drugi pomysł to pomiar napięcia lub stanu na pinie.