How RaspberryPi will scan the MAC address with Bluetoothctl? - raspberry-pi

If the RSSI values for a permitted phone are above -60, I would like to log the phone's MAC address.
However, when I use Bluetoothctl on Raspberry Pi, I cannot see my phone MAC address unless I open the "Connected devices" page on the phone. Otherwise it scan.
I would like to know how RaspberryPi will scan the MAC address even if I don't open the "Connected devices" page. Any input or advice is greatly appreciated!
Aside from that, Bluetooth of car navigation system works without opening the "Connected devices" page...

Related

Why is the MAC address returned from nmap different from real MAC address on iPhone?

I am using nmap to discover devices on my network. I ran nmap -sn 192.168.1.100/24 and it printed out multiple hosts, one of which is my iPhone. However, the MAC address returned from nmap is different from the one on my iPhone (from going to Settings -> About -> Wifi address).
Which one is the real one and how can I discover it?
Also I would like to compare the IP address. I was able to find the IP address for my iPhone using nmap but not able to find it anywhere in the settings next to Wifi address despite websites which shows them next to each other. Where can I find out my phones IP address?
Actually your Iphone has hidden the real MAC address.
You should check Setting -> WiFi -> Info icon next to WiFi icon.
You will see the Private address is turning on.
WiFi-Address field is your result of nmap command.

Is it possible to print from mobile app (android, iphone) through bluetooth (BLE) printer?

I'm creating a mobile app in flutter where I want to print A4 paper over bluetooth communication with package flutter_blue.
I'm a little confused because some printers have bluetooth option but don't have characterist for printing.
For example:
I successfully connected to the printer "HP OfficeJet 252 mobile" which has support for BLE, but cannot send data to print.
Did I just bought the wrong printer or there isn't possible to print throught bluetooth communication?
My expectation would be that printing is not done with Bluetooth Low Energy but with Bluetooth Classic. This would be done through the Basic Printing Profile (BPP)
Looking at the instructions for your printer, the Bluetooth only seems to be used to assist with getting the printer connected to the WiFi network. I could not find any information about sending prints directly to the printer over Bluetooth.

flutter_blue shows mac address instead of Names

I am running flutter_blue example,it doesn't raise any error but after searching for bluetooth devices it shows mac address instead of Local Names.alse after clicking on connect it doesn't connect.
I did make sure that other devices are ble support, even I purchased Bluetooth v4.0 usb dongle to be completely sure about Bluetooth version, but nothing changed.
also, I thought it may be related to my android phone,I reset(factory) the phone and wiped cache but nothing changed.
my cellphone is Sony Xperia Z3+ with android 7.1.1;
any Idea what is wrong and why I can't get devices name in scan?
It was gattserver, couldn't broadcast properly,I changed gattServer with another app in another smartphone and now it shows the Name of GattServer.

pi-zero usb otg port identified as unknown device during boot

I currently have a pi zero which acts as a bluetooth keyboard which - when attached to a computer - types text read from the SD card. I followed this tutorial https://www.rmedgar.com/blog/using-rpi-zero-as-keyboard-setup-and-device-definition. I use only the USB "Data" port, to power it up and to send data.
This setup works really fine on nearly all computers I tested it on, just on some Windows 7 systems it is not working at all. The system where it is not working on identify the pi zero as "Unknown device" and then never "re-identify" it as the keyboard which it is supposed to be.
All other systems first identify the device as "Unknown device" and after some seconds "re-identify" it as the actual keyboard. IMO the problem is the one mentioned by scruss in this post: https://raspberrypi.stackexchange.com/questions/60056/cant-see-raspberry-pi-zero-via-usb-otg-on-windows-10
I'm looking for a possibility to fix this problem. Is there some possibility to configure the pi zero in a way that during boot it does not identify as any USB device. Maybe that during boot the data USB port acts only as a power USB port.
Or can I turn the USB port off and on after a boot so that form the computers point of view it looks like the usb devices is removed and reattached??
I fixed that with the help of a colleague.
The solutions seems super simple - just remove the usb gadget and add it again.
The code necessary is equally simple:
#Remove usb gadget
echo "" > UDC
#Add it again
ls /sys/class/udc > UDC

Sharing Images from computer to iphone using USB and Wi-fi

I want to sync images from computer to iPhone device with the help of USB and Wi-Fi.
How can i create SBWifiManager in my app?
Most of app like My Disk do the same thing I want.
Create IP address of device and then use that address in web-browser of computer to connect with app Wi-Fi Manager, both should be connect with same Wi-Fi. Then sync images from computer to my app.
How should I start and what would be good to know before starting?