Lei Xu <lei.xu@...>
I'm trying to setup the communication between a native_posix board and a sensor. The sensor is connected to my router, and the native_posix program is running on my Linux host, which is also connected to the same router.
I have tried to setup a zeth interface using the provided net-tools. The configuration file used for setup zeth is as follows:
ip link set dev $INTERFACE up
ip link set dev $INTERFACE address $HWADDR
ip -6 address add $IPV6_ADDR_1 dev $INTERFACE nodad
ip -6 route add $IPV6_ROUTE_1 dev $INTERFACE
ip address add $IPV4_ADDR_1 dev $INTERFACE
ip route add $IPV4_ROUTE_1 dev $INTERFACE > /dev/null 2>&1
Correspondingly, the configurations in my native_posix project are as follows:
where "192.168.1.1" is the router's address.
After building and running the native_posix program, it can only communicate with the local host but cannot communicate with my sensors. May someone figure out what's the problem?