Power & Source of Big Ideas

NanoPi Neo Core broadcast problem

Moderators: chensy, FATechsupport

I use NanoPi Neo Core as target device. When I got it, it has a ubuntu 16.04 inside. I tried to compile a sample code BroadcastSender.c with broadcast function and run it. it cannot do broadcast in anyway, but the same program in PC unubtu 16.04 can do normal broadcast. Can anyone help me with this? I am new to FramdlyArm platform.

Code: Select all

http://cs.baylor.edu/~donahoo/practical/CSockets/code/BroadcastSender.c


My environment is as follow. All devices are in the same network 192.168.1.0 segment.

0. router(K): 192.168.1.1 mask 255.255.255.0
1. Server(A) with 192.168.1.210 listening to udp 239.143.143.143:1349 broadcast address.
2. client(B) PC version console based ubuntu 16.04 with BroadcastSender.c
3. NanoPi Neo Core(C) embedded console based ubuntu 16.04 with BroadcastSender.c
4. Testing PC(D) with Windows10 Pro 64bit that install wireshark

(A)(B)(C)(D)(K) can connect to internet. Inside this test network 192.168.1.0,

I use (D) wireshark to listen to 239.143.143.143:1349 port. For BroadcastSender.c on (B), it works fine. Wireshark can see server(A) receive broadcast and does response. When I do the same thing to BroadcastSender.c on (C), it send out nothing. Wireshark cannot see anything.


(B) routing table is as follow
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 0 0 0 enp0s3
default _gateway 0.0.0.0 UG 100 0 0 enp0s3
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
_gateway 0.0.0.0 255.255.255.255 UH 100 0 0 enp0s3

(C) routing table is as follow
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 * 255.255.255.0 U 100 0 0 eth0

Can anyone help me with this ???? Please help.
iamneo2416 wrote:
I use NanoPi Neo Core as target device. When I got it, it has a ubuntu 16.04 inside. I tried to compile a sample code BroadcastSender.c with broadcast function and run it. it cannot do broadcast in anyway, but the same program in PC unubtu 16.04 can do normal broadcast. Can anyone help me with this? I am new to FramdlyArm platform.

Ubuntu 16 on PC and Ubuntu 16 on this tiny ARM device is a huge difference especially in the area of communicating with the hardware (kernel).

Perhaps first make a huge upgrade, then proceed with this.
I did upgrade everything, but still not working. Someone tell me that by re-compiling kernel can achieve this goal. Can you tell me how to re-compile kernel or did anyone who familiar with this can tell me the process ??

please help ~
-neo
iamneo2416 wrote:
Can you tell me how to re-compile kernel


https://github.com/armbian/build#additional-information
I noticed there are two flags for kernel configure, which kernel config flag that need to be
on
for allowing program inside this H3 that can issue a multicast broadcasting? Can you help me to see which config flag with "menu config", otherwise, I have no idea which one need to be on. Have you use "menu config" before ?

./compile.sh BOARD="odroidxu4" BRANCH="current" RELEASE="buster" CARD_DEVICE="/dev/sda" \
KERNEL_ONLY="no" KERNEL_CONFIGURE="no" INSTALL_HEADERS="yes" BUILD_DESKTOP="no" BUILD_MINIMAL="yes"

KERNEL_ONLY="yes" <== I suppose these two should be changed to yes.
KERNEL_CONFIGURE="yes"

I also need to know which flag inside "menu config" that need to be on for broadcasting.
KERNEL_CONFIGURE="yes" will bring you the kernel menu config up, yes. I can only help you around tools - I am co-author of them

iamneo2416 wrote:
I also need to know which flag inside "menu config" that need to be on for broadcasting.


... while on "broadcast problem on the network driver" I can't help. But I would suggest you just try - Armbian kernel has far superior support than stock.

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 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 6 guests