Setting up zigbee network with X-CTU 6.3.2 - xbee

I'm trying to create Zigbee P2P using XB24C27WIT-004 modules with Digi USB explorers(CP2102). I am using 2 laptops and connected the XBee modules to each of them. I have added the modules to X-CTUs and changed the DL of one module as MY of another module and vice versa. Both are on same channel and same PAN ID. But i couldn't see the serially transmitted data from one console to another. The console window is as shown in the image. The commands are being seen when i'm trying to discover other radio.The console window. The function is set to ZIGBEE TH Reg for both modules.

Have you configured one as a coordinator (ATCE=1) and the other as a router (ATCE=0) so they can join to each other? The Router can keep ATDH and ATDL as 0 to target the coordinator. I'm not familiar with using the 16-bit network address for the destination, so I'd recommend setting ATDH to the router's ATSH, and ATDL to ATSL.
To confirm that the devices are joined to each other, their operating PAN ID (ATOI and ATOP) must match. Once you see that, see if the router can send data to the coordinator, and then from the coordinator to the router. You can use ATNR on the router to perform a Network Reset so it will try to re-join your coordinator. You might need to set ATNJ to 0xFF on the coordinator to allow joining.

Related

aws_sdk: how can I identify if my device is connected to the aws server

I have a device (esp32s2) which is IoT enabled and communicating with AWS server.
The device is connecting to the internet via router. I want to check from the device, if the router is connected to the internet or not. If not connected, I need to disconnect mqtt broker instantly.
I know there is aws_iot_yield happening, but it is taking too much of time to change the client state (~5-10 mins) after disconnection. So, is there is any other way in which I can come to know if the device is connected to the mqtt broker or not using AWS sdk?
I want to avoid using pinging to some address/server as it will increase the usage of resources.
Thanks in advance!
Since the connectivity to the AWS server trough internet depends on the network elements, the only reliable way to know if you are connected to internet is to send a package to a know address and receive the response. Simplest way to do this is to use ICMP (ping) protocol. Usually the most reliable destination to ping is the Google DNS server 8.8.8.8 or 8.8.4.4 which is a cluster service and it's always replying on the ping.
You can control the pause between two pings and how many pings you will send in one session in order to preserve the resources.
Alternative approach is to use a router that can send messages to a monitoring device that the link state was changed (by example SNMP trap). But this is not fully reliable method since the router can not detect all scenarios where the connectivity to your AWS server is lost.

Xbee Address problem for making a breadcrumb network

Sir , i am trying to make a breadcrumb network using raspberryPi and Xbees. Please tell what destination address should i put in Coordinator node so that it receives data only from a single router.I am using all Xbees in API modes. Thanks in advance.[Image of the Addresses of my xbees i am using.Click to get image
Router3 Router2 Router1 Coordinator
Please suggest what addresses should i put so that Router3 send data to Router2, Router2 to Router1 and Router1 to Coordinator.
If suppose Router3 send some data, it first goes to Router2, then to Router1 and then reaches Coordinator.
I am trying to connect the GPS to all the Router RaspberryPis and trying to send these to Coordinator Node.
With a mesh network, you direct your message to the final destination and the nodes take care of relaying it as necessary to reach the destination.
So nothing to do on the coordinator, and each router uses a destination address of 0 in their API frames to send to the coordinator.
If you really want to force the messages to hop from router to router, just use the router's 64-bit address (the ATSH and ATSL values) in the API frames you're using to send your data. When you receive a frame on a node, just replace the destination address with the next hop and resend it.

Setting Priority for Bluetooth Auto connection

I am currently working on bluetooth auto-connection. I wanted to know how can I set priority 0 for the last connected device so that in the next auto connection the system tries to connect with this device first always.
I wanted to know where to make these changes in android source code.
Please have a look at this guide form Android:
https://source.android.com/devices/automotive/ivi_connectivity
You can not customize which device to be connected first and which to be connected last but you modify existing policy or write your own custom policy to handle how many and which devices should be connected on next reconnection.

If sim card cloned, can we use it in real world?

Is the SIM card, COMP128 v1 and another version can be cloned? In real network operator can we use it and have two SIM card?
The answer is Yes and No, depending what you mean by two SIM cards.
If you have two identical SIM cards identified by their same IMSI and Ki (Key). Only one will work at any time.
If you use SIM1 in a device it will authenticate to the network and receive what is called a TMSI (Temporary Mobile Subscriber Identity). The network will from now on address this subscriber by this TMSI.
If you start up SIM2 the authentication will happen and the network will associate you with a new TMSI.
Any SMS or Call will re routed to the last "authenticated" SIM. authentication could be retrigged by bootup, location change etc.

Nat vodafone mobile italia

I'm trying to display some cameras connected to a dvr which in turn is connected to a Huawei router that has the ability to connect to the Internet via the mobile network.
I tried with a tim card and everything goes wonderfully (the tim's ip is dynamic so I have used no-ip to be able to always access the dvr and I made the forwarding by opening the right doors outside to the inside), but as the area in which you installed the dVR, it does not take tim signal (not even wind, or 3), I had to put the vodafone's sim but from what I've read on the internet but not the public ip to mobile customers, but access through NAT ..
None of you know the way to be able to access a remote PC via a network that uses NAT?
When behind NAT, the best course of action is to establish a connection from inside the NAT to some remote machine.
There are several ways to achieve that, such as creating a (reverse) ssh tunnel or using a remote desktop utility such as logmein, teamviewer or ammyy.

Resources