Linux bluetooth development
 help / color / mirror / Atom feed
From: Mauro Tortonesi <mtortonesi@ing.unife.it>
To: Marcel Holtmann <marcel@holtmann.org>,
	BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] problems with nc6 with bluez support
Date: Thu, 22 Jan 2004 12:21:49 +0100	[thread overview]
Message-ID: <200401221221.49241.mtortonesi@ing.unife.it> (raw)
In-Reply-To: <1074767225.7263.65.camel@pegasus>

On Thursday 22 January 2004 11:27, you wrote:
> Hi Mauro,
>
> > i have just modified nc6 (an advanced IPv6-enabled nc clone) to support
> > connections over bluetooth. normal connections over l2cap seem to work
> > fine (although i have not been able to tranfer audio data over l2cap yet)
> > but when i try to perform data tranfers over sco the
>
> looks like nice stuff and if I find some extra time I will test it.

yes, IMVHO it is nice indeed. unfortunately, i haven't added 
configuration-time checks for Bluez yet, so if anyone of you wants to try nc6 
with bluetooth, he'll have to edit src/Makefile and add -DHAVE_BLUEZ to DEFS 
and -lbluetooth to LDFLAGS.

i was thinking about adding something like the following test to configure.ac 
to check if the system supports bluez:

bluez=yes
PROTO_BLUEZ(
  [
    AC_CHECK_LIB(bluetooth, baswap, , bluez=no)
  ],
  [
    AC_MSG_NOTICE([Disabling Bluetooth support: PF_BLUETOOTH protocol family 
is required])
    bluez=no
  ]
)

where PROTO_BLUEZ is defined in this way:

AC_DEFUN([PROTO_BLUEZ],[
  AC_CACHE_CHECK([for Bluetooth support], [ds6_cv_proto_bluez],[
    AC_TRY_CPP([
#include <sys/types.h>
#include <sys/socket.h>

#ifndef PF_BLUETOOTH
#error Missing PF_BLUETOOTH
#endif
#ifndef AF_BLUETOOTH
#error Mlssing AF_BLUETOOTH
#endif
    ],[
      ds6_cv_proto_bluez=yes
    ],[
      ds6_cv_proto_bluez=no
    ])
  ])

  if test "X$ds6_cv_proto_bluez" = "Xyes"; then :
    $1
  else :
    $2
  fi
])

what do you think about it?

> But you should forget about the SCO transfers. SCO is for audio transmission
> (voice) only. Use L2CAP (SOCK_SEQPACKET) and RFCOMM (SOCK_STREAM).

in fact i just wanted to perform audio transmission.

i have written the audioread application, that reads an oggvorbis file, 
decodes it and writes the PCM samples to stdout, and the audiotest 
application, that reads PCM samples from stdin and writes them to /dev/dsp.

so i was testing audio transfers by issuing this command on the server host:

nc6 -b -l -p 10 | audiotest
(nc6 -b -l --sco | audiotest for SCO)

and this command on the client host:

audioread file.ogg | nc6 -b 00:0D:88:8E:CA:07 10
(audioread file.ogg | nc6 -b --sco 00:0D:88:8E:CA:07 for SCO)

i must have made something wrong, since all the audio transfer tests i've made 
failed.

> > i am using kernel 2.4.25-pre6 and 2.4.22 on my test hosts. perhaps i
> > should switch to 2.6-series kernels? i am not sure about this, since
> > l2test and scotest from bluez-utils 2.3 seem to work fine on these
> > kernel.
>
> The 2.4.25-pre6 is still fine. If you get a problem with a 2.4 kernel
> apply the latest of my -mh patches.

so are you suggesting to stick to 2.4 for the moment? i have been using 2.6 on 
my laptop for the last 5 months and i am really enthusiastic about it ;-)

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                 mtortonesi@ing.unife.it
                                mauro@deepspace6.net
                                mauro@ferrara.linux.it
Deep Space 6 - IPv6 with Linux  http://www.deepspace6.net
Ferrara Linux User Group        http://www.ferrara.linux.it

  reply	other threads:[~2004-01-22 11:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22  9:42 [Bluez-devel] problems with nc6 with bluez support Mauro Tortonesi
2004-01-22 10:27 ` Marcel Holtmann
2004-01-22 11:21   ` Mauro Tortonesi [this message]
2004-01-22 11:38     ` Marcel Holtmann
2004-01-23 10:25       ` Mauro Tortonesi
2004-01-23 13:28         ` Marcel Holtmann
2004-01-22 10:27 ` Mauro Tortonesi
2004-01-22 11:14   ` Marcel Holtmann
2004-01-22 11:31     ` Mauro Tortonesi
2004-01-22 11:44       ` Marcel Holtmann
2004-01-23 11:18         ` Mauro Tortonesi
2004-01-23 13:35           ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401221221.49241.mtortonesi@ing.unife.it \
    --to=mtortonesi@ing.unife.it \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox