Thought you guys would like to see :)
Yes and probably lots of us would like to know ;)
does the Omega2S+ have the same 32MB SPI flash chip than the good, old Omega2+?
@CAP-33 Great :-)
Here you are a more elegant way.
Launch the below mentioned commands either on the Serial Console or connect with ssh your Omega's AP (192.168.3.1 by default):
# Omega2 v0.2.0 b186 root@Omega-5533:~# uci set network.wwan.hostname='your_client_hostname' root@Omega-5533:~# uci commit # Check the result: root@Omega-5533:~# uci show network network.loopback=interface network.loopback.ifname='lo' network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.globals=globals network.globals.ula_prefix='fd1d:48c4:7633::/48' network.wlan=interface network.wlan.type='bridge' network.wlan.proto='static' network.wlan.ipaddr='192.168.3.1' network.wlan.netmask='255.255.255.0' network.wlan.ip6assign='60' network.wan=interface network.wan.ifname='eth0' network.wan.proto='dhcp' network.wwan=interface network.wwan.ifname='apcli0' network.wwan.proto='dhcp' network.wwan.hostname='your_client_hostname' # release (with USR2) the lease root@Omega-5533:~# kill -USR2 `pidof udhcpc` # renew (with USR1) the lease root@Omega-5533:~# kill -USR1 `pidof udhcpc`
@CAP-33 I think this is a relatively simple way:
# Omega2 v0.2.0 b186 root@Omega-5533:~# cat /etc/config/network config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd1d:48c4:7633::/48' config interface 'wlan' option type 'bridge' # option ifname 'eth0.1' # option ifname 'ra0' option proto 'static' option ipaddr '192.168.3.1' option netmask '255.255.255.0' option ip6assign '60' config interface 'wan' option ifname 'eth0' option proto 'dhcp' config interface 'wwan' option ifname 'apcli0' option hostname 'your_client_hostname' option proto 'dhcp'
ifconfig | grep HWaddr
apcli0 Link encap:Ethernet HWaddr 40:A3:6B:C1:D9:0E br-wlan Link encap:Ethernet HWaddr 40:A3:6B:C1:D9:0D eth0 Link encap:Ethernet HWaddr 40:A3:6B:C1:D9:0F ra0 Link encap:Ethernet HWaddr 40:A3:6B:C1:D9:0D
The Omega2's WiFi client (WiFi station) doesn't have hostname because it's not required.
udhcpc is the DHCP client on Omega2 and the hostname is an option:
While entire omega is empty, no file no extra space occupied by us other than installing
Python-light and pyserial
PySerial works with the full version of Python 2.7 only.
Many thanks for your second down vote too! :-)
FTDI232 USB-to-3.3V TTL serial module TX >> direct connection >> Omega2+ RX1
GND >> direct connection >> GND
from serial import Serial from time import sleep ser = Serial('/dev/ttyS1', baudrate=115200, timeout=1) while True: ser.readline() sleep(0.5)
This Python code is working. What about your top secret serial HW connection?
... the older omega with old firmware 0.1.9 ...
Are you talking about the previous / "the original" Omega?
BTW I do not desire your up vote or your thanks.
We are talking about your problem - so a simple informative response would be more than enough.
Verified each connection multiple times, even if I use to read data directly from input source other than omega I am able to read, but through omega, it is showing blank UART buffer of both ttyS1 ttyS0.
You have already verified the "other" side. I wrote about how could you check the Omega side.
You did not write anything about your serial hardware connection and your Python code.
Maybe there is a guy here with some paranormal and psychic abilities - a clairvoyant - who can see them and will help you surely.
Many thanks for your down vote! :-)
I think you have some hardware connection problem or something wrong in your Python code.
@Arshad-Alam On Omega2(+) UART0 (ttyS0) is used by the Serial Console / Terminal. You can check it:
Connecting to the Omega’s Command Line >> Connecting via Serial
UART1 (ttyS1) is free for use. You can check it: Communicating with Serial Devices
I'm afraid you have some hardware connection problem or something wrong in your Python code.
Looks like your connection to Community was lost, please wait while we try to reconnect.