Skip to contentSkip to conversation

working bluetooth obex test scripts?

DISCUSSION Don Zickus 2 participants 2 messages Jun 9, 2016 Bluetooth drivers

lore
Share & tools
lore

Don Zickus

author
#0 lore raw

Hi,

I was trying to put together some bluetooth obex test scripts to help continuously verify that interface works reliably on various machines we have.

However, I am not very successful with the stuff in the test/ directory.

I started by focusing on ftp-client -d <address> -l. I assume I had to run the 'simple-obex-agent' on the machine with <address>.

Working around the dbus.SessionBus errors (I am connecting through ssh instead of the desktop), I get 'Unable to find service record' after ftp-client creates a session.

I think that is because it isn't connecting the remote agent correctly?

Anyway, pointers for good scripts to run to test the obex interface?

Cheers,
Don

#1 lore raw

Hello Don,

Quoted 5 lines · Don Zickus

Hi,

I was trying to put together some bluetooth obex test scripts to help continuously verify that interface works reliably on various machines we have.

I'm not sure I understand exactly what it is you are looking to do.

If you only want to check that you are submitting to DBus correctly then you might want to take a look at the dbusmock library.

It only has limited support for Bluez currently but there are some templates in there that are helpful. They have one for obex:
https://github.com/martinpitt/python-dbusmock/blob/master/dbusmock/templates/bluez5-obex.py

Regards,
Barry

Quoted 21 lines

However, I am not very successful with the stuff in the test/ directory.

I started by focusing on ftp-client -d <address> -l. I assume I had to run the 'simple-obex-agent' on the machine with <address>.

Working around the dbus.SessionBus errors (I am connecting through ssh instead of the desktop), I get 'Unable to find service record' after ftp-client creates a session.

I think that is because it isn't connecting the remote agent correctly?

Anyway, pointers for good scripts to run to test the obex interface?

Cheers,
Don

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html