Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRDA/Serial support? #9

Open
TAbdiukov opened this issue Feb 24, 2020 · 1 comment
Open

IRDA/Serial support? #9

TAbdiukov opened this issue Feb 24, 2020 · 1 comment

Comments

@TAbdiukov
Copy link

As ridiculous as it is, is it possible to get the tool to work with Irda or serial?

@sultanqasim
Copy link
Collaborator

It would need some modification, as a lot of the code is expecting RFCOMM connections over Bluetooth Classic rather than a raw serial port.

On the server side (https://github.com/nccgroup/nOBEX/blob/master/nOBEX/server.py), the Bluetooth-specific implementations of start_service(), stop_service(), and serve() would need to be modified.

On the client side, you'd need to use set_socket to specify a "socket-like" object representing the serial port. You could make a wrapper for PySerial that implements the necessary socket methods.

There might be some other little Bluetooth-specific bits that have crept in in places too. Certainly Bluetooth-specific profiles are Bluetooth-specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants