Reading from a Bluetooth device
Petter Adsen
petter at synth.no
Sun Aug 23 07:53:08 UTC 2015
On Sun, 23 Aug 2015 17:42:27 +1000
Phil <phil_lor at bigpond.com> wrote:
> On 23/08/15 16:59, Petter Adsen wrote:
>
> >
> > If you are getting error messages related to a config file, maybe it
> > would be a good idea to post the file?
>
> Thank you Petter for your quick response.
>
>
> phil at Asus:~$ hcitool scan
> Scanning ...
> 20:15:07:02:02:04 HC-05
>
>
> phil at Asus:~$ more /etc/bluetooth/rfcomm.conf
> #
> # RFCOMM configuration file.
> #
>
> #rfcomm0 {
> # # Automatically bind the device at startup
> bind no;
> #
> # # Bluetooth address of the device
> # device 11:22:33:44:55:66;
> device 20:15:07:02:02:04;
> #
> # # RFCOMM channel for the connection
> channel 1;
> #
> # # Description of the connection
> # comment "Example Bluetooth device";
> comment "HC-05";
> #}
This won't work. Try this:
rfcomm0 {
# # Automatically bind the device at startup
bind no;
# # Bluetooth address of the device
device 20:15:07:02:02:04;
# # RFCOMM channel for the connection
channel 1;
# # Description of the connection
comment "HC-05";
}
The first and last lines here are what you did wrong - you didn't open
and close the statement.
> >
> > Are the bluetooth modules loaded?
> ># # Automatically bind the device at startup
>
> I can transfer files to my tablet so that much is working.
>
> I've done another Google search and it seems that /dev/rfcomm should be
> created once the rfcomm config file is enabled.
If it doesn't work after changing the config file, send the output of
this command:
lsmod | grep rfcomm
You might also need to unload and reload the relevant modules, I'm not
all that familiar with bluetooth.
Petter
--
"I'm ionized"
"Are you sure?"
"I'm positive."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150823/4d990159/attachment.sig>
More information about the ubuntu-users
mailing list