Using pin to connect raspberry pi to other equipment using Pybluez - bluetooth

I'm trying connect a Raspberry PI to other equipment via Bluetooth using a Pybluez librarie. It is possible to define a pin in Pybluez to connect to the equipment?

Here You can find the answer for Bluez: http://www.linuxquestions.org/questions/linux-wireless-networking-41/setting-up-bluez-with-a-passkey-pin-to-be-used-as-headset-for-iphone-816003/

Related

Port forwarding using Raspberry Pi

I installed a PPP (Point to Point Protocol) in my Raspberry pi in order to connect with another Linux based card using serial port (with USB-RS422 cable). The PPP is well installed and configured, so from the raspberry pi I can ping the Linux card, my goal is to access the Linux card through the raspberry pi, I active the port forwarding in my raspberry pi also I added a route in my PC (Windows based).
For information, my PC is under my company network, the raspberry is under an IoT device network managed also by my company. Please have a look at the below diagram to well understood the situation.
enter image description here
My Question is : Do you have any idea to how can I access the based Linux
Card through the raspberry pi? Should I use nftables for that? if yes how? any other suggestions?
To clarify more, I changed the design, which means I connect my raspberry pi to my pc using ethernet cable and tried to ping the based card through the raspberry pi, it works well, means that I could ping the based card from my pc. Please have a look at the below picture:
enter image description here

Bluetooth Connection In Raspberry PI

I want to create a python script so that when user wants pair with Raspberry PI's Bluetooth by phone I accept the request by pressing on a button connected to Raspberry PI's GPIO. Is this possible? How?

Two UART Devices (One for USB and one for Bluetooth)

I need to make the Raspberry Pi communicate with the Arduino via USB Cable. From this, I will use the port on the USB which supports Serial Communication. However I also need to make the Raspberry Pi communicate through Bluetooth in a Mobile App via Serial Communication as well. Since both Serial devices use different ports according the the Raspberry Pi 3 Model B documentation, can it communicate at the same time? (The Arduino to Raspberry Pi and Raspberry Pi to Mobile App). The Bluetooth uses the /dev/ttyAMA0 port then I will use an USB port to connect the Pi to the Arduino.
Example using pySerial library.
serialArduino = serial.Serial('/dev/ttyACM0', 9600)
serialBluetooth = serial.Serial('/dev/ttyAMA0', 9600)

How to programing fingerprint with raspberray pi

I have KOOKYE fingerprint scanner
Device:
https://www.amazon.co.uk/gp/product/B019TPP1UK/ref=s9_simh_gw_g147_i1_r?ie=UTF8&fpl=fresh&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=desktop-1&pf_rd_r=0SHK4RN0THZ4NGT6PR3G&pf_rd_t=36701&pf_rd_p=026d359a-cb34-4790-9249-ec9f152ee8e2&pf_rd_i=desktop
I want to connect it to Raspberry Pi 3, but the only library available for this device is for Arduino.
Library:
http://kookye.com/2016/07/24/use-arduino-drive-fingerprint-sensor/
Which is the best way to use the scanner on raspberry pi? Do I need to rewrite the library or I can use an Arduino emulator on Pi? If an emulator is used, how do you make the emulator to listen to the Serial port of the Arduino and which would be better to use?

Connect sensors to the raspberry pi using the inbuilt wifi

I am able to connect sensors using the GPIO pins.
My Question is:
Is there any possible way to connect any kind of sensors to the raspberry pi via Bluetooth or wifi?
And get the data via the same!
If you want to do it with any kind of sensors. I should be:
Sensor -> Micro-Controller <- Bluetooth/Wifi Module )))))))))))((((((((((( Bluetooth/Wifi Module -> Raspberry Pi

Resources