Zebra Printer Bluetooth COM PORT - printing

I have strange behavior with a Zebra printer when connecting via Bluetooth.
Connect the device against a port using BLUETOOTH, f.e : COM 8
Hyperterminal connects to the COM8 port without problems.
Install the ZEBRA Printer against the COM port : "Add Local Printer against existing Port"
Print Test page .
I can no longer connect to the COM port.
It is as if once you print something, the COM port is occupied, and it is not possible to send commands...
The enviroment is a Windows7 x64 PC (same behaviour in Windows7 x32 ,Windows 10)
Tested Bluetooh stacks :
Microsoft
Toshiba
Example of Bluetooth pairing of a Zebra Printer
DIFFERENCES BETWEEN TOSHIBA AND MICROSOFT BLUETOOTH STACK:
With the Toshiba bluetoth stack it is possible to have the same device linked in two different COM ports. This is possible:
Pair/Link, f.e. Device X to Port COM X
Pair/Link, f. e Device X to Port COM Y
This way I can install the printer against the COM Y port.
By the COM X port I can launch send without problems .....
With the of Microsoft Bluetooth stack is not be able to have the same device linked to two ports ....

Related

USB Pcap Wireshark - ''1.1.3'' What this address mean?

I am exploring the world of USB packet capturing.
after a capture session from my USB SubZero device
I understand the data captured but don't understand the address.
Wireshark say '1.1.3' in the address and USB URB in other field.Is not a COM port like i hope it would be cause in effect
in device manager The SUBZERO is not recognized with a COM port and is under the AUDIO,GAMES... peripherics.
What to do if I want to send data to this address.

Using WireShark to sniff network traffic of an Android device connected to a PC

I have an Android device connected to my macbook via USB. The Android device is connected to a WiFi network, the same WiFi network that my macbook is connected to.
I wish to sniff network traffic going to the Android device (using WireShark). I then wish to filter that traffic by the MQTT protocol.
So far, I have tried doing this by running adb shell ip addr from my mac terminal in order to get the ip address of the wlan0 network. I took the inet address and plugged the ip address into the display filter on WireShark like so:
ip.addr == 192.168.190.123
However, no traffic is showing on there, nothing through MQTT protocol or any other protocol, but the device is definitely making network calls.
I am incredibly naive to network stuff, so I really feel lost. Can anyone point me in the right direction?

capturing IEEE 802.11 packets without connecting to the network

I want to analyze networks traffic but not by connecting it Just
switch on wifi and sniff the packets (IEEE 802.11 Frames)
in promiscuous mode
I have tried libpcap but it may be internally changing datalinktype as i am giving wifi interface in
descr=pcap_open_live("en1", MAXBYTES2CAPTURE, 1, 512, errbuf);
(as we know mac OS x have en1 as wifi interface )
now when i do this
printf("%s", pcap_datalink_val_to_name( pcap_datalink(descr)));
It gives me result "ethernet"
I have tried to capture packets using wireshark without connecting to my wifi network and it worked!!
I was able to capture Beacon , Acknowledgement and Authentication frames without connecting to my wifi network.
now:
do I have to make a network card driver for that or libpcap can do that ?if yes how?
Is wireshark making some kind of driver for that? if yes please help me to locate that in it's source code.
I have tried Apple's CFNetwork but it too can't capture without connecting to the network.
It will be very helpful if i get some suggestion on some user space code as kernel level coding is a little tuff :(
I am coding on MacOS 10.7 in xCode 4.5.1
Update:
I am already doing this:
descr=pcap_create("e1", errbuf);
pcap_set_rfmon(descr, 0);
pcap_set_promisc(descr, 0);
pcap_activate(descr);
descr=pcap_open_live("en1", 2048, 1, 512, errbuf);
And yes there is a little monitor icon at the wifi and I can sniff the
packets but only when I connect to the network, I want to do the same
when I am not connected to wifi like capturing Beacon and
Acknowledgment Frames means packets through which our network card detects available wifi network
If you're running on Snow Leopard or later (which you are, as you're running Lion), you should use the new pcap_create()/pcap_activate() APIs, and turn on monitor mode by calling pcap_set_rfmon() between the pcap_create() and pcap_activate() calls.
That's what Wireshark 1.6.0 and later do if you check the monitor mode checkbox, and what tcpdump 1.0.0 and later, and TShark and dumpcap in Wireshark 1.6.0 and later, do if you specify the -I command-line flag.
By default, Wi-Fi interfaces on many OSes, including but not limited to OS X, supply Ethernet headers, not 802.11 headers, which is why pcap_datalink_val_to_name(pcap_datalink(descr)) is reporting Ethernet headers. On Linux and OS X, you have to go into monitor mode to get 802.11 headers; on *BSD, you can get 802.11 headers without going into monitor mode.
You do not need your own driver to go into monitor mode on OS X; Wireshark does not supply its own drivers.

Getting IP addresses of the PC's available on wifi network in android

I am able to establish connection between android and PC via Wi-fi. But this is done by hard coding the the IP address of the PC (server) in the android program. But I wanted to get IP addresses of the PC's available on the Wi-fi network programmatically. So please let me know how to scan for PC's on the network and get their respective IP address.
can you not multicast a UDP packet on the network which the server listens for and responds to with a packet containing the ip address of the server in order to set up the connection?
You should be able to find help on that topic, with some options here here and here

How to make a program that sends data through the WiFi router

I got a WiFi router connected to my PC.
What I want is to send from another device some data to my PC through the Wi-Fi adapter.
Program on the device is developed using EVC++. The one on PC - on VC++.
EDIT 1:
PC has an IP address.
Another device s IP is set at program execution. I mean WiFi IP address. And then connection to WiFi router is proceeded.
EDIT 2:
What if it uses an ethernet and wifi together?
How should I make a connection through WiFi?
WiFI is no different to usual Ethernel network.
So you just usually find out IP of other computer (in config/ask user/DNS), establish usual TCP/IP connection and send data on.

Resources