OpenWRT configuration with the Vodafone Station Revolution - static

I have a Vodafone Station Revolution (HW huawei) connected in the same LAN with a switch/router (OpenWRT).....
My PC is connected to the switch/router (OpenWRT) and it seems that after 2 minutes that I surf on internet with my PC, the connection with 192.168.1.1 (the gateway of Vodafone station Revolution) is dropped and, analyzing the network traffic with tcpdump, it seems that an ARP request ("Who is the 192.168.1.1") has been recursively sent by OpenWRT.
My question is:
It is possible to perform a more detailed troubleshooting on the network?
Has the vodafone Station Revolution some specifics that usually blocks the normal switch functions (on others Switch/router connected on the same lan)?
Below my current lan's configuration:
{internet} <---> (vodafone_station[192.168.1.1] <---> cable ethernet <---> openWRT (192.168.1.200)<---> myPC (DHCP of Vodefaone_station) )

Related

ARM MBED CoAP example mot opening port

I have succesfully built the CoAP protocol example for ARM mbed (https://developer.mbed.org/teams/sandbox/code/coap-example/file/0681e205d0e9/) on a K64F board. It comes out of the box, except for the server name (coap.me) changed to an internal IP address.
I see that it runs correctly and connects to the network:
[EasyConnect] Using Ethernet
[EasyConnect] Connected to Network successfully
[EasyConnect] IP address 192.168.1.15
[EasyConnect] MAC address 0e:43:54:d9:7c:71
Connected to the network. Opening a socket...
Calculated message length: 11 bytes
Starting server
Sent 11 bytes to coap://192.168.1.10:5683
I have set a computer that can connect to it. It can ping correctly to the board and I see that the ARP is negotiating with the correct MAC address.
I have launched an NMAP test and I see that the port is closed:
PORT STATE SERVICE
5683/udp closed unknown
If I set a CoAP client in the computer (Copper) I see no connection in the terminal.
What I am missing?
Moving this to the answer section as well, in case someone else runs into this problem.
If you want to use an mbed OS 5 device as a UDP server, make sure to call .bind() on the socket.

bacnet_scan.py running on one VM not detecting device on another in the same NAT Network

I have two virtual machines running on the same host and they are both in the same NAT Network. I started a fake bacnet device on one VM (say VM1) using the utility script volttron/scripts/scalability-testing/virtual-drivers/bacnet.py.
The device started up fine. Now from another VM (say VM2) on the same host and same NAT Network I ran the scan_bacnet.py but my fake device on VM1 is not getting listed.
I verified that the ip address on the BACpypes.ini file has the correct address of the host running the scan_bacnet.py script. I also changed the address in BACpypes.ini to include subnet mask (10.0.2.15/24) still no luck.
Below is the content of my BACpypes.ini on file on VM2
[BACpypes]
objectName: Betelgeuse
address: 10.0.2.15/24
objectIdentifier: 599
maxApduLengthAccepted: 1024
segmentationSupported: segmentedBoth
vendorIdentifier: 15
This is the command I ran in VM1 to start the fake bacnet device
python bacnet.py bacnet_registry.csv 10.0.2.5
I am able to ping from one VM to another and running a tcpdump on the source VM shows that the scan_bacnet.py is sending the whois request to the other VM. Running tcpdump on the destination VM shows that the machine is receiving the whois request yet the fake bacnet device isn't receiving the whois request.
What am I doing wrong?
You need to include the subnet mask in the virtual device command line:
python bacnet.py bacnet_registry.csv 10.0.2.5/24
Also you should check the firewall setting on both VMs. CentOS, for instance, defaults to blocking all incoming traffic. (You will still see it in the output tcpdump.) For BACnet you need to open udp port 47808 for all traffic (broadcast and direct).

read xbee network traffic on xbee hooked to computer

I have a bunch of equipment that communicate with each other using xbee series 1 radios. I'd like to read that traffic from this network on my computer (which has an xbee hooked to it's USB port). Using XCTU, I can read the traffic for a particular xbee in the network by setting MY in my computer's xbee to the MY of the particular xbee. But what I'd really like to do is read traffic from all of the xbees. How would I configure my xbee to do that? Thanks!
You need to get an 802.15.4 packet sniffer to monitor the 802.15.4 network traffic. It isn't possible to sniff traffic with the XBee module itself.
If you're on a budget, various manufacturers have free software that works with their 802.15.4 dongles. For example, Texas Instruments has sniffer software that works with a $49 USB dongle.

MAC Address of other wifi device in a wifi network

Is it possible to find the MAC address of all other wifi enabled device in a wifi network programmatically by using C or C++, if so then please tell me the way or direction, how can i do that Visual Studio 2012.
If they are in same LAN next to your device (no router/switch in the middle, The scope of ARP is link-layer.) you should use sending ARP packets to devices.
Address Resolution Protocol (ARP) is a telecommunications protocol
used for resolution of network layer addresses into link layer
addresses.
To send ARPs you can use Pcap or SendARP.

How to get a TCP/IP packet over an serial connection (Bluetooth)

I'm developing an TCP/IP stack that will run on another device connected by bluetooth.
But I want to test against an working Stack. My testing scenario would be:
MY DEVICE TCP/IP STACK --------------BLUETOOTH ----------------- WINDOWS/MAC TCP/IP Stack.
Anyone have any idea how could I write IP packets over an Bluetooth connection on Linux/Windows or mac ??
One way is you could establish a ppp connection between the device and the PC over bluetooth first. For this you will need support for ppp on the device side. Once you are able to dial-up and establish a ppp connection, tcp/ip can be run over ppp.
These links may be useful (although they are specific to linux):
http://www.daybefore.net/bluetooth_ppp.html
http://www.rpgameplace.de/blog/index.php?/archives/19-Networking-over-Bluetooth-using-BlueZPPP.html

Resources