Power & Source of Big Ideas

NanoPi Duo2 IoT-Box not working?

Moderators: chensy, FATechsupport

Hello,

I want to use my NanoPi Duo2 with the NanoPi Duo2 IoT-Box, but nothing on the board works...
Power on...
Power LED (red): on
LAN LEDs flicker only for a short periode and then off

On the console:
>> sudo ifconfig eth0 down
>> sudo ifconfig eth0 up
Shows no error (0)

Short:
No USB
No LAN (No DHCP requests)
No GSM

Has anybody the same problem?
Is the IoT-2G Application Carrier Board wreck?

Regards
which port (UART/WiFI/Ethernet?) do you use for the console?

Did you insert the Duo2 the right way to the box-board?

Do you power the box board via MicroUSB-Port? (is the Duo2 powered from the box-board?)
Did you switch on the box-board?

Wiki:
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_Duo2
http://wiki.friendlyarm.com/wiki/index. ... o2_IoT-Box

NanoPi_Duo2_NanoPi_Duo2_IoT-Box.jpg
NanoPi_Duo2_NanoPi_Duo2_IoT-Box.jpg (231.52 KiB) Viewed 24116 times
Hello,

which port (UART/WiFI/Ethernet?) do you use for the console?
- UART and WiFi works as expected

Did you insert the Duo2 the right way to the box-board?
- YES

Do you power the box board via MicroUSB-Port?
- Yes, 2A

(is the Duo2 powered from the box-board?)
- Yes

Did you switch on the box-board?
- No (I've only one here)

Thanks 4 reply
did you try "sudo ifconfig -a" if there is any eth0-device?

you can also check the output of "dmesg" if there are any errors about LAN/GSM.

Did you check within "npi-config" if there is any hardware disabled which can be enabled?

If eth0 could found with "ifconfig -a" then maybe its nit configured for DHCP?
Then you could try to configure it with "nmtui" if the Network-Manager is installed.
did you try "sudo ifconfig -a" if there is any eth0-device?

Yes. With AND without carrier-board
eth0 Link encap:Ethernet HWaddr 02:81:26:9e:2d:ee
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:41

#> cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-ssid xxx
wpa-psk xxxxyyyyzzzz

If eth0 could found with "ifconfig -a" then maybe its nit configured for DHCP?
Then you could try to configure it with "nmtui" if the Network-Manager is installed.

I can only configure the WiFi-Device. eth0 not showing up.

#> npi-config
serial0-3 enabled
i2c0-2 enabled
spi0 enabled

#> ls /dev
(shows no eth0)
adsp1 fd loop6 nbd14 rtc0 tty19 tty38 tty57 vcs audio full loop7 nbd15 sequencer tty2 tty39 tty58 vcs1 audio1 fuse loop-control nbd2 sequencer2 tty20 tty4 tty59 vcs2 audio2 gpiochip0 mali nbd3 shm tty21 tty40 tty6 vcs3 audio3 gpiochip1 mapper nbd4 snd tty22 tty41 tty60 vcs4 autofs i2c-0 mem nbd5 spidev0.0 tty23 tty42 tty61 vcs5 block i2c-1 memory_bandwidth nbd6 stderr tty24 tty43 tty62 vcs6 btrfs-control i2c-2 mixer nbd7 stdin tty25 tty44 tty63 vcsa bus i2c-3 mixer1 nbd8 stdout tty26 tty45 tty7 vcsa1 cec0 initctl mixer2 nbd9 tty tty27 tty46 tty8 vcsa2 char input mixer3 net tty0 tty28 tty47 tty9 vcsa3 console kmem mmcblk0 network_latency tty1 tty29 tty48 ttyS0 vcsa4 cpu_dma_latency kmsg mmcblk0p1 network_throughput tty10 tty3 tty49 ttyS1 vcsa5 cuse kvm mmcblk0p2 null tty11 tty30 tty5 ttyS2 vcsa6 disk log mqueue ppp tty12 tty31 tty50 ttyS3 vhci dri loop0 nbd0 psaux tty13 tty32 tty51 ttyS4 video0 dsp loop1 nbd1 ptmx tty14 tty33 tty52 ttyS5 watchdog dsp1 loop2 nbd10 pts tty15 tty34 tty53 ttyS6 watchdog0 dsp2 loop3 nbd11 random tty16 tty35 tty54 ttyS7 zero dsp3 loop4 nbd12 rfkill tty17 tty36 tty55 urandom fb0 loop5 nbd13 rtc tty18 tty37 tty56 v4l

you can also check the output of "dmesg" if there are any errors about LAN/GSM.

#> dmesg

I see only 1 red error line:
[ 2.097461] ov5640 2-003c: ov5640_check_chip_id: failed to read chip identifier
and (not red)
[ 11.736793] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Board upload error:
Invalid file extension: dmesg
Invalid file extension: dmesg.log
Invalid file extension: dmesg.txt
tzuituztuzicvrtcerzdfvtzfvrtdrtdrdrrudfghjhghvtzfrtdkhdftziftzifuzfvgghfjhfh

# > lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I also got no eth0 in /dev on another SBC, but eth0 is working.

You could try to expand eth0 in /etc/network/interfaces:

auto eth0
allow-hotplug eth0
no-auto-down eth0
iface eth0 inet dhcp

how about:
dmesg|grep -i eth0

or if the ethernet-module/driver has been loaded:
lsmod
You could try to expand eth0 in /etc/network/interfaces:

auto eth0
allow-hotplug eth0
no-auto-down eth0
iface eth0 inet dhcp

Entries added + Reboot = Same as before :/

how about:
dmesg|grep -i eth0

#> dmesg | grep -i eth0
(I'm blind)
[ 11.582881] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 11.582906] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 11.583620] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
"No MAC Management Counters available" sounds not really good

#> uname -a
Linux NanoPi-Duo2 4.14.52 #93 SMP Wed Dec 19 11:17:41 CST 2018 armv7l armv7l armv7l GNU/Linux

or if the ethernet-module/driver has been loaded:
lsmod

#> lsmod
Module Size Used by
bnep 20480 2
hci_uart 65536 1
btbcm 16384 1 hci_uart
btqca 16384 1 hci_uart
btintel 16384 1 hci_uart
bluetooth 299008 26 hci_uart,btintel,btqca,bnep,btbcm
ecdh_generic 28672 1 bluetooth
nls_ascii 16384 1
mali 192512 0
brcmfmac 172032 0
brcmutil 16384 1 brcmfmac
g_mass_storage 16384 0

#> modprobe dwmac-sun8i
#> echo $?
0 (Seems to be ok)

And there is no /dev/ttyUSB?, ttyAMA? or ttyS?, so no GSM/GPRS...
Will I've to execute modprobe usbserial vendor=??? product=??? or something else to get the SIM800C Module up?
GSM can be connect at /dev/ttyS3
u can refer it in the sim800c-test.py file
PIN 11 for turning the power on
(if using wiringNP gpio command, try gpio mode 16 out)
after that you will see the blinking light for the GSM and u can use minicom to connect
http://wiki.friendlyarm.com/wiki/index.php/GSM/GPRS
By default the FriendlyCore system FriendlyElec provides has a Python demo for testing SIM800C.

I searched for *sim800c* and... nothing found. And I haven't found any download link for the test python scripts or lib...

GSM can be connect at /dev/ttyS3
u can refer it in the sim800c-test.py file
PIN 11 for turning the power on
(if using wiringNP gpio command, try gpio mode 16 out)
after that you will see the blinking light for the GSM and u can use minicom to connect

#> gpio mode 16 out
#> echo $?
0
(OK: GPIOG11 | OUT)

#> ls /dev/ttyS*
/dev/ttyS0 /dev/ttyS1 /dev/ttyS2 /dev/ttyS3 /dev/ttyS4 /dev/ttyS5 /dev/ttyS6 /dev/ttyS7
(Seems to be OK)

But the light for the GSM-module is still off.
to turn on the gsm, u need to install wiringNP
then use the following:
sudo gpio mode 16 out
sudo gpio write 16 1

for the sim800c-test.py file, u have to use the official image, and the instruction is in official wiki
http://wiki.friendlyarm.com/wiki/index. ... o2_IoT-Box

path is /root/Python/GSM-GPRS/sim800c

the sim800c-test script also turns on the gsm for u
to turn on the gsm, u need to install wiringNP
then use the following:
sudo gpio mode 16 out
sudo gpio write 16 1

I'm allready installed wiringNP
#> sudo su -
#> gpio mode 16 out
#> gpio write 16 1
Same as before. Commands accepted (no error=0) but GSM and light are dead.

for the sim800c-test.py file, u have to use the official image, and the instruction is in official wiki
http://wiki.friendlyarm.com/wiki/index. ... o2_IoT-Box
path is /root/Python/GSM-GPRS/sim800c

the sim800c-test script also turns on the gsm for u

I have allready installed the official Image (http://wiki.friendlyarm.com/wiki/index. ... mage_Files)
"nanopi-duo2_sd_friendlycore-xenial_4.14_armhf_20181218.img"
and there is no Python directory under /root
use sudo su before checking the directory
As you can see... I'm root and there is no such directory:
pi@NanoPi-Duo2:~$ sudo su -
root@NanoPi-Duo2:~# ls -d ~/*/
/root/malitest/ /root/mjpg-streamer/ /root/Music/ /root/watchdog/
root@NanoPi-Duo2:~# pwd
/root
root@NanoPi-Duo2:~# id
uid=0(root) gid=0(root) groups=0(root)
4 others: Don't use nanopi-duo2_sd_friendlycore-xenial_4.14_armhf_20181218.img Python scripts are missing.

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 2 guests