I answered my own question, using this doc
This is another story.
I answered my own question, using this doc
This is another story.
@crispyoz On Omega2 with an OpenWrt 18.06 based firmware using
ledchain0 (ie. /dev/ledchain0)
PWM channel 0 (ie. pwm0 - GPIO18)
number of LEDs 1
LED type WS2812 or WS2812B
insmod p44-ledchain ledchain0=0,1,1
omega2-ctrl gpiomux set pwm0 pwm
After these commands you could use - for example - a WS2812 RGB LED at GPIO18:
echo -en '\xff\x00\x00' > /dev/ledchain0 # red
echo -en '\x00\xff\x00' > /dev/ledchain0 # green
echo -en '\x00\x00\xff' > /dev/ledchain0 # blue
echo -en '\x00\x00\x00' > /dev/ledchain0 # off
# Omega2+ FW v0.3.2 b232 # unload (deactivate) the default ledchain2 driver root@Omega-5BE1:/# rmmod /lib/modules/4.14.81/p44-ledchain.ko [14897.611820] ledchain: cleaned up # load (activate) the driver for ledchain0 root@Omega-5BE1:/# insmod p44-ledchain ledchain0=0,1,1 [14990.854231] ledchain: pwm_base=0xB0005000 [14990.858538] ledchain: v2 - Device: /dev/ledchain0 [14990.863311] ledchain: - PWM channel : 0 [14990.867512] ledchain: - PWM buffer size: 12 [14990.871752] ledchain: - Number of LEDs : 1 [14990.875916] ledchain: - Inverted : 0 [14990.880132] ledchain: - LED type : WS2812 [14990.884742] ledchain: - Max retries : 3 [14990.888891] ledchain: - Max Tpassive : 10000 nS
@Jake-Aston Omega2 Pro - I checked its schematic again.
Theoretically you could power it via its Expansion Header 3V3 (VCC33) pins - with +3.3 V of course.
In this case the on board "Power Dock", the Serial Console (CP210x USB-to-UART Bridge), the USB Host Port and the Full-color Notification Led won't work.
@Jake-Aston Omega2 Pro
Omega2-Pro/Hardware at master · OnionIoT/Omega2-Pro · GitHub
BTW - if their schematics are correct - you could power both board via their Expansion Header's 5V (VCC5V) pin with +5 V of course.
In this case the on board "Power Dock" and the Serial Console (CP210x USB-to-UART Bridge) won't be available.
(and again ;) Please correct me if I'm wrong because I don't have an Omega2 Pro board either.
@Modest-Polykarpovich Enable the second (2nd) and the fith (5th) lines of the '/etc/opkg/distfeeds.conf'' file.
# OpenWrt 17.01 based v0.2.2 b200 firmware root@Omega-5BE1:/# cat /etc/opkg/distfeeds.conf #src/gz reboot_core http://downloads.lede-project.org/releases/17.01-SNAPSHOT/targets/ramips/mt7688/packages src/gz reboot_base http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mipsel_24kc/base #src/gz reboot_onion http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mipsel_24kc/onion ## src/gz reboot_luci http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mipsel_24kc/luci src/gz reboot_packages http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mipsel_24kc/packages ## src/gz reboot_routing http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mipsel_24kc/routing ## src/gz reboot_telephony http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mipsel_24kc/telephony src/gz omega2_core http://repo.onion.io/omega2/packages/core src/gz omega2_base http://repo.onion.io/omega2/packages/base src/gz omega2_packages http://repo.onion.io/omega2/packages/packages src/gz omega2_routing http://repo.onion.io/omega2/packages/routing src/gz omega2_onion http://repo.onion.io/omega2/packages/onion root@Omega-5BE1:/# opkg update ... root@Omega-5BE1:/# opkg list | grep -i ^make make - 4.2.1-2 - The Make package contains a tool to create executables from source files. root@Omega-5BE1:/# opkg list | grep -i ^gcc gcc - 5.4.0-1 - build a native toolchain for compiling on target root@Omega-5BE1:/# opkg list | grep -i ^gdb gdb - 7.11.1-1 - GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed. gdbserver - 7.11.1-1 - GDBSERVER is a program that allows you to run GDB on a different machine than the one which is running the program being debugged. # Omega2(+)'s storage capacity is extended formerly using a USB drive or MicroSD card (pivot-overlay) # on a clean system root@Omega-5BE1:/# opkg install make gcc gdb
@Jake-Aston I'm afraid - if its schematic is correct - you can't power an Omega2 LTE board via its Expansion Header's 3.3V pins.
Omega2 LTE https://github.com/OnionIoT/Omega2-LTE
Schematic and layout files: https://github.com/OnionIoT/Omega2-LTE/tree/master/Hardware/R1.1
Please correct me if I'm wrong - because I don't have an Omega2 LTE board.
I2C is supported pretty well on former Omega2 firmwares.
i2cdetect command didn't work up to the firmware v0.2.2 b194.
i2cdetect command is a part of the 'i2c-tools' package, it's a separate utility: /usr/sbin/i2cdetect.
You could live without it.
An evergreen question ;-)
Older Omega2 firmwares:
Newer - OpenWrt 18.06 based - Omega2 firmwares:
Omega Firmware Changelog (Omega and Omega2):
Now I just want to know how I can safely remove the default Access Point (ap) network, as that is a big security issue? Nothing about that in the Onion documentation of course...
Please let us know what is that Omega2 AP "big security issue"?
@jongrock-chun I2C works on v0.2.0 b187 (so b187 has the function of I2C).
i2cdetect command - which is a separate utility - didn't work up to the firmware v0.2.2 b194.
@daniela-perdomo Please let us know what did you try? Did you try to hibernate an Omega or an Omega2?
Probably you know that the first 23 posts of this thread - up to @Kris-Kelvin's second post on 2018-01-23 - are related to the first (the "original") Omega version - including also @Bjorn-Pehrson's post.
@Alexei-Kos Here you are a simple, clear tutorial from Adafruit:
Bonjour (Zeroconf) Networking for Windows and Linux
Microsoft Windows: Windows10 x64 - iTunes installer
I just helped one of my friends to install it on a DELL N5010 notebook (Windows 10 Home x64).
We downloaded the iTunes installer - unpacked it with Total Commander 7.55a - and successfully installed only the 'Bonjour64.msi' file.
We "tested" it: PuTTY - Connection type: SSH - Host Name
(I rarely use Windows - it seemed Bonjour64 works perfectly.)
Please take a look at the official Onion Omega2 Documentation
@Rajbir-Singh What Omega version do you have: Omega2, Omega2+, Omega2 Pro or maybe an Omega (the first version - the "original")?
Do you know its firmvare version?
Do you have any Dock: Expansion Dock, Power Dock, Power Dock 2, Mini Dock, Arduino Dock, Arduino Dock 2, Breadboard Dock?
BTW The Factory Reset / Restore can be the simplest way - if your Dock has a RESET BUTTON:
Pressing and holding the reset button for 10 seconds then releasing will trigger a factory restore.
/from the official Onion Omega2 Documentation/
@Suman-kumar-Jha One more time ;-)
This was the originally installed '/sbin/yunbridge' file on Omega2(+) :
root@Omega-5BE1:/# cat /sbin/yunbridge #!/bin/sh stty -F /dev/ttyS0 2500000 clocal cread cs8 -cstopb -parenb exec < /dev/ttyS0 exec > /dev/ttyS0 exec 2> /dev/ttyS0 askfirst bin/ash --login
I've modified it because
This is the modified '/sbin/yunbridge' file:
root@Omega-5BE1:/# cat /sbin/yunbridge #!/bin/sh stty -F /dev/ttyS1 115200 clocal cread cs8 -cstopb -parenb exec < /dev/ttyS1 exec > /dev/ttyS1 exec 2> /dev/ttyS1 askfirst bin/ash --login
I think 115200 Baud is a good choice. It's good for all - for Omega2, Arduino, Arduino Bridge, Arduino IDE, ...
IMO the serial line speed is not the most important problem in this five-liner script now.
BTW please try it what you want:
root@Omega-5BE1:~# stty -F /dev/ttyS1 250000 stty: invalid argument ‘250000’ Try 'stty --help' for more information. root@Omega-5BE1:~# stty -F /dev/ttyS1 2500000 stty: /dev/ttyS1: unable to perform all requested operations root@Omega-5BE1:~# stty -F /dev/ttyS1 115200 root@Omega-5BE1:~# stty -F /dev/ttyS1 speed 115200 baud; line = 0; -brkint -imaxbel
From the TP4056 1A Standalone Linear Li-Ion Battery Charger IC datasheet
indicator light state
(LED at TP4056's pin7)
battery charging: LED bright
no battery: LED coruscate
/CHRG (pin7): Open Drain Charge Status Output
When the battery is being charged, the /CHRG pin is pulled low by an internal switch, otherwise /CHRG pin is high impedance state.
Attach functions to a push button
Native button handling in procd is handled by scripts in /etc/rc.button/* .
Unfortunately I don't have a genuine Onion Omega2 Pro - please correct me if I'm wrong.
Looks like your connection to Community was lost, please wait while we try to reconnect.