Is client connected on XBee s6b - xbee

I have an XBee S6B setup in wireless access mode and physically connected to a Raspberry PI. I connect my laptop to the XBee WiFi access point and I can send data back and forth between the Raspberry PI and the XBee over WiFi.
Can someone tell me if there is a way for the Raspberry PI to know that the laptop has successfully connected or disconnected? Are there any commands the Raspberry PI can send to the XBee to establish if something has connected/disconnected?

There’s no Node Join frame, but if it’s in Access Point mode then you could just periodically ping the other device. You would know its address since there can’t be more than one external device in AP mode.

Related

Raspberry PI Pico USB Connection Issues when configuring/setting up ports

I am using the USB port of the Raspberry Pi Pico as my debug port when running C programs on the Pico. I have noticed that sometimes when I connect to the Pico USB using Putty in serial port mode, it takes forever (at least 5min) to connect and display the Putty terminal window. I have done the following to eliminate this issue:
Multiple reboots of the Pico before I am able to connect immediately.
Removing Pin configuration and initialization code eg: gpio_init(2); gpio_set_dir(2, GPIO_OUT); and so on. I noticed when doing this I connect immediately. Put this code back and I am back to waiting 5min for Putty to connect or resetting the device multiple times.
Does anybody know why this is happening?
Many Thanks.

Microcontroller not recognized at USB port when connected via pins

Im having issues with my TI LAUNCHXL-F28379D. I have it connected to the laptop I am trying to send data to/from via pins P19 (SCIBRxD) and P18 (SCIBTxD), as well as GND and 5V via J16, using a USB Type B cord to which I sautered pin connectors. I'm sure power is being supplied to the board as when I plug the 5V cable of the USB cable, the RGB lights and 3 other small ones turn on. However, the Computer does not recognize ithe controller at the port - it only recognizes if if it is connected via the board's Mini-USB port. I've also written a C Program which opens the COM port and reads data - but this does not work without my knowledge of the COM port number, usually found in Device Manager. I cannot get any further in my project without the port number and it is very annoying. I will attempt to resauter a new USB cable, but if there are any other possible solutions, or if I'm doing something wrong, please let me know.
Absolutely all feedback is appreciated!
The SCIBRxD and SCIBTxD pins belong to the SCI peripheral in the microcontroller. This peripheral implements a UART port (a.k.a. COM port, a.k.a. TTL serial port). It is not a USB port. Nothing useful will happen if you connect it to a USB port, because it is not compatible with USB in any way.
USB-to-UART adapters (a.k.a. USB-to-serial adapters) do exist. There is one built into the LaunchPad. The UART side of the adapter is connected to the SCIB pins, and the USB side of the adapter is connected to the USB port.

Verify whether two usb devices are connected on the same hub

I have a microcontroller board which has a USB hub to which several CP2108 USB to serial modules are connected and one PIC Microcontroller is connected.
The USB hub is connected to Laptop USB Port..
The CP2108 devices are assigned /dev/ttyUSB0, /dev/ttyUSB1 ID's, whereas the PIC Microcontroller is assigned a /dev/usb/abc.
If I connect another USB device to Laptop USB Port, it will get /dev/ttyUSB2
I want to verify whether /dev/ttyUSB and /dev/usb/abc are on the same hub and not on different one..
Is there any way to find out through code.. I tried to look into sysfs , but I am unable to find out the difference

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.

XBee Wi-Fi - decoding UDP packets of sampled data

I just bought an XBee Wi-Fi S6B. (I was expecting it to be similar to the WiFly that can easily post sampled I/O data to a webpage.) I am going to hook two temperature sensors to the analog inputs. Note - there are no Arduinos in this project.
I have configured the XBee to send UDP packets to my computer on port 3054 (0xBEE) - I can see them using Netcat.
My question: Is there any existing software out there for Linux or the Raspberry Pi that can receive these packets and decode them? I'd rather not have to re-invent the wheel. I've searched extensively, but everything I found was for API mode with an arduino attached. I'm interested in just running the XBee with the two temperature sensors.
Many of the search results I've seen are for talking to another XBee connected to my computer via a serial port. I'd rather not buy an extra XBee, because my computer is already on the same network.
Here's a small program I just created to listen for XBEE UDP packets. It listens currently for one temperature sensor, but is easily configurable to add on other sensors.
https://github.com/bseeger/XBEE_Listener

Resources