So I recently got started using a pi zero (running the most recent raspbian) as something to drive an image display application. I'll be sending it files over bluetooth via a file transfer protocol (obex/obexpushd).
The problem I am running into repeatedly is secure pairing. The device won't know the MAC address/Name of what will connect to it in advance, but I still want to secure that connection and prevent random things from connecting. It won't have user input when it is in place, so any GUI based pairing agent won't cut it. On another debian wheezy system I had it set up using secure simple pairing and a fixed pin number using an edited bluez-simple-agent. I could change the pin on the fly and it accepted/handled any connection attempts with the correct pin.
The problem (after much searching) is that bluez-simple-agent simply won't work for a variety of reasons (deprecated due to transition to bluez5, dbus problems is using it, etc etc) on the pi zero.
So my main question here would be is there a headless bluetooth pairing agent for raspbian that can set a pin (or something like a bluetooth password)? Something where I could start it and then push it to the background to handle incoming connections while my main application runs separately.
Thanks for any help, let me know if more details are needed.