How do I use Zigbee to communicate to smartphone - wireless

I need to monitor how many smart phones are connected to a wireless network in a certain area. I found out that Zigbee can be used to accomplish this task. I need to at least differentiate each phone connected. What do I need to do?

Without knowing anything in regards to Zigbee, you could use the BSSID of the device as your unique identifier. Every WiFi radio has a unique BSSID. Just a thought.

ZigBee (802.15.4) and Wi-Fi (802.11) are different networking standards. They both use 2.4GHz, but a ZigBee radio won't be able to identify nodes on a Wi-Fi network.

Zigbee (IEEE 802.15.4) and WiFi (IEEE 802.11) are two different PHY/MAC specifications. The first thing you have to do is:
Build a gateway between the Zigbee and WiFi networks.
Each smartphone should be capable of connecting to the Zigbee network.
Each smartphone should act as end device and Zigbee controller
should track the position of each smartphone. This controller should
be connected to Wifi via gateway [1]. Then you can easily track
number of smartphones connected to a network.

Related

Building a network using Cisco Routers

Overview: I live in an apartment, and I wish to use Cisco routers to run my network for career development. I plan to place a 40 thread server in the other bedroom because I can't run it in the same room as my current desktop because it would overload the circuit. As a result, I require a Cisco router running IOS (I want the CLI) that possesses wireless capabilities to allow my IoT devices and phones/laptops to connect to the internet. I also require another cisco router with wireless capabilities to act as a bridge to the network for the server. I will also use two cisco switches, but that is the easy part of the equation unless the routers I find also have switches inside.
Running cables isn't an option because I can't drill the walls, and I would then have to run the cables from one bedroom to the other, which is not ideal.
Problem: The problem I am finding is that there is extremely cheap cisco routing equipment on eBay, but I am unable to know if these products have the capabilities I require. Also, finding the wireless NIC card that can be inserted into these devices is not easy. Deciphering compatibility is another issue entirely.
Question: Can someone please assist me in picking my devices. I am looking to use pre-owned hardware due to cost.
ISP: Version Fios 1gb pipe.
It would be expensive to create bridge over WiFi using Cisco routers, not just cost but the expertise to make it work. You are better off getting cheap Cisco IOS routers like old 2800 or 2900 series, then use two cheap WiFi routers like TP Link for the WiFi bridge. So your setup would look something like below.
[BEDROOM DEVICES] --> CISCO RTR Ethernet --> TPLINK WIFI BRIDGE
Same on the other end as well.

How can I find, is any wifi router connected in my network

I am trying to develop an application for network monitoring. A part of this application is to detect "is any wifi router connected to any switches ports".
Basically, I have a mysql database table where I have all the mac addresses of devices(pc,wifi router,..) connected to each switch port(by SNMP). As far I know, first three bytes of mac address (Organizationally Unique Identifier - OUI) represent the vendor/manufacturer of the device. So, I want to make a list of all known vendors who manufacture wifi routers (Linksys,TP-LINK,Netgear,SMC,..) and make a match with the OUI to the mac addresses stored in database.
Q1. Is the solution correct? or what would be the appropriate way to solve this problem.
It would be a great help if any one suggest me what should be the appropriate way.
Thanks in advance
No, this is not an appropriate solution. For example, macOS allows a Macintosh to act as a Wi-Fi router via the Internet Sharing feature, but its Ethernet MAC address will still just have a regular Apple vendor prefix.
As already stated by Gordon Davisson you will be missing "Internet sharing"-constructions, so your results will be incomplete (i.e. False Negatives).
Another source of False Negatives could be wireless routers using NICs from a large generic vendor (think Intel).
Besides that; the OUI will tell you what the device's vendor is, but NOT what kind of device it is. It could, for instance, be a WIRED router, leading to results which are not, in fact, wireless routers (i.e. False Positives).
The big pain in the behind for your problem is that what you are trying to detect; a (wireless) router; shields certain data-traffic from clients behind from means of identification that would aid you in your query.

snmp network discovery identify mac address of device connected to a router

i am working on a network discovery program which employs snmp to discover devices in the network. My program takes the router-ip as input, scans the iprotetable(iprouttenext hop),to determine if any other routers are connected to it. for non router devices (like switch) the algorithm scans the arptable (ipnettomediatable) of the router, but cant find the connected switch unless i ping from the switch to the router. is there any way where i can determine the device connected directly to the router ..?
Getting the devices connected to a router or switch is not that easy. Switches usually maintain a MAC forwarding database where it stores which MAC address has been seen on which switch port. This table can be easily read by using the bridge MIB. Unfortunately, there are several issues to take care of:
Those entries disappear again, when a device to the switch has been switched off or is simply not communicating. Usually, the entries in the MAC forwarding tables age out after 5 minutes or so.
The fact that a MAC address has been seen on a switch port doesn't mean that the device having the mac address is directly connected to the port. There might be any number of other switches, routers or hubs inbetween.
Some manufacturers like Cisco or HP use their own protocols to determine the network topology. There are several protocols (that area usually also available through a SNMP MIB):
CDP (Cisco Discovery Protocol): This is a proprietary protocol developed by Cisco to expose network topology information. Some vendors licensed this technology and implement that protocol in their products.
LLDP (Link Layer Discovery Protocol): A standard similar to CDP, but without paying Cisco license fees :-)
And many more. I know kthat Extreme Networks has their own protocols and I am pretty sure that other vendors have them as well.
The problem with those protocols is when you have a mixed environment. Cisco switches talking CDP do not understand Extremen Network's protocol and vica versa.
If your goal is to find IP addresses to discover, then you might use the ARP caches for routers. Scanning the ARP caches for switches makes no real sense, because they're operating on layer 2.
I was using broadcast message for my java snmp agent

Is the mac address specification of wireless NIC conforming to that of wireless NIC?

By using OID_802_3_PERMANENT_ADDRESS, I can query the mac address of an ethernet card. Intuitively, I think there should exist corresponding OID_802_11_PERMANENT_ADDRESS. However, I find none.
If I direct use OID_802_3_PERMANENT_ADDRESS to query the mac address of 802.11, the result seems correct.
So my question is: Are the mac addresses of 802.3 and 802.11 the same in their respective specifications?
Although the Media Access Control for the Ethernet and wireless link layers are very different due to the nature of collision detection, to keep things simple for the Internet protocols, the MAC address – regardless of the link layer – is always a globally unique 48-bit number. This is significant for Ethernet and 802.11 since routers often aggregate devices onto a single subnet.
So to answer your question, the MAC addresses will not be same.

Looking for a GSM modem advice

My application communicates with several GSM electric controllers, that means that I have to send anywhere between one to twenty messages every few hours. right now I'm working with HUAWEI Mobile Connect - 3G. it is a USB device that uses a comm port for the pc communication and I'm using GSMComm to send messages and read/delete messages from the device.
Every two seconds I'm checking the device's storage, and if there is any message, I will then read it and store it locally and then clear the device's storage. I'm not sure if I'm working correctly, but it seems to me as if it is a very unreliable device:
Every time I boot my machine, I must remove the device from the USB or my machine will get stuck at the BIOS start up screen (or whatever the name is).
Very frequently the comm port can become unavailable for some reason. I have to close and re open the port, and at times that may not even help.
In the production machine of my client, when he uses one of his software's that utilize the first comm port, he will get a warning message from the software about problems in the port if the device is plugged in (the device port is around 28 or something).
If you've been using a device which you consider reliable, or have been working with the same device as I work with, or you just think that I'm doing it wrong, I'd like to get an advice from you.
Thanks.
This sounds like an issue with your modem. Have you tried any other models? Consumer USB models tend to be unreliable. The preferred method, though slightly more expensive, is using a commercial grade modem in situations where you need the reliability.
Some modems to look at:
Wavecom Fastrack
Sierra Wireless Airlink
These use a serial port or ethernet to communicate with the host which is far more reliable. Serial ports may not be available in your particular situation but even a USB to RS232 adapter will be more reliable.
One further option is to use a smartphone, there are several applications that you can act as a gateway through HTTP.
SMS Gateway for Android:
https://market.android.com/details?id=eu.apksoft.android.smsgateway&hl=en
i have not used this method, but it seems like some people are having luck with it. it may not be any more reliable then your USB modem though.
Hope that answers your question.
I have used WaveCom's modem for sending messages in bulks and found it to be reliable. One difference though, in my implementation was i used Kannel as an SMSC, so my queues were automatically handled by Kannel. But sending multiple requests like 40+ per minute didnt pose any problems for me.
Hope this helps.

Resources