Re: bluetooth 20030604 and 5.1 release

2003-06-14 Thread User Toyboy
Thanks for the information, I can now surf the internet from my laptop via bluetooth.  
I will put up a page on how to do it, even though there are already a few pages on it 
already.  The problem with my setup was using my laptop's address instead of the 
FreeBSd box address.  Also, I needed to clean up my ppp file a little.Thanks for 
all the help!!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-14 Thread Maksim Yevmenkin
Hello,

--- User Toyboy [EMAIL PROTECTED] wrote:
 Thanks for the information, I can now surf the internet from my laptop via
 bluetooth.  I will put up a page on how to do it, even though there are

i'm very glad it works for you :)

 already a few pages on it already.  The problem with my setup was using my
 laptop's address instead of the FreeBSd box address.  Also, I needed to
 clean up my ppp file a little.Thanks for all the help!!

please do not forget to send us link to your page.
thank you very much for your time and help,

max

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-13 Thread User Toyboy
Hello again, all information you have given me has been very helpful.  ButI have 
messed up somewhere while setting up the rcfomm_pppd section and I don't know where 
the problem is.  I have setup my ppp.conf like this:
default:
nat enable yes
set ifaddr 192.168.0.1/0 192.168.0.2/0
bluetooth:
enable dns
disable pap
deny pap
disable chap
deny chap
verizon:
set log Phase tun command
set device PPPoE:fxp0
set authname blahblah
set authkey blahblah
set dal
//above is set dial, not dal
set login

the output from hcidump when my other computer tries to make a LAN connection over PPP 
is:

HCIDump - HCI packet analyzer ver 1.4
device: any snap_len: 65535 filter: 0x
 HCI Event: Connect Request(0x04) plen 10
 HCI Command: Accept Connection Request(0x01|0x0009) plen 7
 HCI Event: Command Status(0x0f) plen 4
 HCI Event: Role Change(0x12) plen 8
 HCI Event: Connect Complete(0x03) plen 11
 HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
 HCI Event: Command Complete(0x0e) plen 6
 ACL data: handle 0x0006 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
 ACL data: handle 0x0006 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x004f scid 0x0040 result 0 status 0
 HCI Event: Number of Completed Packets(0x13) plen 5
 ACL data: handle 0x0006 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x004f flags 0x clen 4
MTU 32767
 ACL data: handle 0x0006 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x result 0 clen 0
 ACL data: handle 0x0006 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x clen 4
MTU 132
 HCI Event: Number of Completed Packets(0x13) plen 5
 HCI Event: Role Change(0x12) plen 8
 ACL data: handle 0x0006 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x004f flags 0x result 0 clen 0
 ACL data: handle 0x0006 flags 0x02 dlen 8
L2CAP(d): cid 0x4f len 4 [psm 3]
  RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
 ACL data: handle 0x0006 flags 0x02 dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
  RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
 HCI Event: Number of Completed Packets(0x13) plen 5
 ACL data: handle 0x0006 flags 0x02 dlen 17
 ACL data: handle 0x0006 flags 0x01 dlen 1
L2CAP(d): cid 0x4f len 14 [psm 3]
  RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
  dlci 2 frame_type 0 credit_flow 15 pri 0 ack_timer 0 frame_size 127 max_re
trans 0 credits 0
 ACL data: handle 0x0006 flags 0x02 dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
  RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73
 HCI Event: Number of Completed Packets(0x13) plen 5

Also, let me explain cleary what I am trying to do so you can tell me if my 
understanding is wrong.  I am using my FreeBSD box with a bluetooth adaptor to serve 
internet connections to other devices, my laptop specifically.  
So I did hcsecd, then sdptool add --channel=1 LAN then 
rfcomm_pppd -a mylaptopaddress -s -C 1 -l bluetooth
These are all the steps I took to get this to work.  The items are already paired.  
Does anyone know where I am making a wrong step?  The laptop I am using to connect is 
MAC OS X, and I found info on the net to connect OSX to a bluetooth PPP over LAN 
connection says I should do this on my mac:
select LAN access using PPP.
Select RS232 on Port type.
On the Modem tab, select Null Modem 115200 modem profile.

I would appreciate it if anyone could help me with this.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-13 Thread Maksim Yevmenkin
Hello,

--- User Toyboy [EMAIL PROTECTED] wrote:
 Hello again, all information you have given me has been very helpful.  ButI
 have messed up somewhere while setting up the rcfomm_pppd section and I
 don't know where the problem is.  I have setup my ppp.conf like this:

[section skipped]

please take a look at examples in rfcomm_pppd(8) man page. you might want
to start with clean ppp.conf and make Bluetooth stuff work then add your
existing configuration.

 the output from hcidump when my other computer tries to make a LAN
 connection over PPP is:

[ skipped ] 

up until this section everything looks good.

  ACL data: handle 0x0006 flags 0x02 dlen 17
  ACL data: handle 0x0006 flags 0x01 dlen 1
 L2CAP(d): cid 0x4f len 14 [psm 3]
   RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
   dlci 2 frame_type 0 credit_flow 15 pri 0 ack_timer 0 frame_size 127
 max_re
 trans 0 credits 0
  ACL data: handle 0x0006 flags 0x02 dlen 8
 L2CAP(d): cid 0x40 len 4 [psm 3]
   RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73

this section tells me that remote side wants to open RFCOMM connection on
DLCI 2 (RFCOMM channel 1), but FreeBSD rejects this connection (most likely
because nothing is listening).

 Also, let me explain cleary what I am trying to do so you can tell me if my
 understanding is wrong.  I am using my FreeBSD box with a bluetooth adaptor
 to serve internet connections to other devices, my laptop specifically.  
 So I did hcsecd, then sdptool add --channel=1 LAN then 

did you run sdpd? you need to run sdpd and then register service with
sdptool. also you can verify that service has been registered by issuing
sdptool browse ff:ff:ff:00:00:00 and look for LAN service.

 rfcomm_pppd -a mylaptopaddress -s -C 1 -l bluetooth

aha! this is the problem. you misused -a option. in server mode -a tells
rfcomm_pppd(8) on which *local* BD_ADDR it should listen. it seems that you 
have specified *remote* (mylaptopaddress) BD_ADDR. this (*remote*) BD_ADDR
does not exists on FreeBSD, so connection will never be accepted.

in general server application should listen on ANY BD_ADDR, i.e. accept
connection via any local device. so what you should do is remove -a
option completely, .i.e.

rfcomm_pppd -s -C 1 -l bluetooth

this will make rfcomm_pppd(8) accept connection from any local device.
its all in the man page.

 These are all the steps I took to get this to work.  The items are already
 paired.  Does anyone know where I am making a wrong step?  The laptop I am
 using to connect is MAC OS X, and I found info on the net to connect OSX to
 a bluetooth PPP over LAN connection says I should do this on my mac:
 select LAN access using PPP.
 Select RS232 on Port type.
 On the Modem tab, select Null Modem 115200 modem profile.

can you discover services on your MAC laptop? do you see FreeBSD? do you
see LAN service on FreeBSD? if not then you did not setup sdpd on FreeBSD
properly.
 
thanks,
max

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-12 Thread User Toyboy
Thanks for all the bluetooth help, I am having one more problem and I was hoping that 
you could help me.  Following the instructions from: 
http://www.oook.cz/bsd/bluetooth.html  I try to start bluetooth with: 
/etc/rc.bluetooth start ubt0
The result is: Could not execute command reset. Operation timed out
My bluetooth device is from broadcom.  dmesg captures it as: ubt0: Broadcom product 
0x2033, rev 1.01/0.a0, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
ubt0: Interface 1 (alt.config 4) endpoints: isoc-in=0x83, isoc-out=0x3; 
wMaxPacketSize=64; nframes=5, buffer size=320
Also, in dmesg, after I run /etc/rc.bluetooth start ubt0, it says: 
ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, 
OCF=0x3. Timeout
ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15)
The output from usbdevs -v -d is: 
addr 1: full speed, self powered, config 1, UHCI root hub(0x), VIA(0x), rev 
1.00
  uhub0
 port 1 addr 2: full speed, power 100 mA, config 1, product 0x2033(0x2033), 
Broadcom(0x0a5c), rev 0.a0
   ubt0
 port 2 addr 3: full speed, power 100 mA, config 1, eUSB MemoryStick Reader(0x0314), 
SCM Microsystems Inc.(0x04e6), rev 5.07
   umass0
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), VIA(0x), rev 
1.00
  uhub1
 port 1 powered
 port 2 powered
I don't really understand what the errors mean and I would appreciate it if anyone 
could help me.  If you need more information, please ask.  Thanks all for the 
assistance.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-12 Thread Maksim Yevmenkin
Hello,

Did you download firmware into the device? Broadcom BCM2033 chip based
device will not work without firmware. The snapshot comes with firmware
download driver ubtbcmfw(4) and firmware download utility bcmfw(8). In
order to make Broadcom device work you need to

1) load ubtbcmfw.ko module
2) load ng_ubt.ko module
3) use bcmfw utility to download mini driver and firmware images

You should see ubtbcmfw(4) driver attach to the device first. After
you download firmware the device should detach itself and ng_ubt(4)
driver should attach to it. After that you can use rc.bluetooth script.

Due to copyright issues I can not provide mini driver and firmware
images for device. The firmware files can be fetched as part of 

http://bluez.sourceforge.net/download/bluez-bluefw-0.9.tar.gz

thanks,
max


--- User Toyboy [EMAIL PROTECTED] wrote:
 Thanks for all the bluetooth help, I am having one more problem and I was
 hoping that you could help me.  Following the instructions from:
 http://www.oook.cz/bsd/bluetooth.html  I try to start bluetooth with:
 /etc/rc.bluetooth start ubt0
 The result is: Could not execute command reset. Operation timed out
 My bluetooth device is from broadcom.  dmesg captures it as: ubt0: Broadcom
 product 0x2033, rev 1.01/0.a0, addr 2
 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
 ubt0: Interface 1 (alt.config 4) endpoints: isoc-in=0x83, isoc-out=0x3;
 wMaxPacketSize=64; nframes=5, buffer size=320
 Also, in dmesg, after I run /etc/rc.bluetooth start ubt0, it says:
 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command
 OGF=0x3, OCF=0x3. Timeout
 ubt_request_complete2: ubt0 - Control request failed. TIMEOUT (15)
 The output from usbdevs -v -d is: 
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 VIA(0x), rev 1.00
   uhub0
  port 1 addr 2: full speed, power 100 mA, config 1, product 0x2033(0x2033),
 Broadcom(0x0a5c), rev 0.a0
ubt0
  port 2 addr 3: full speed, power 100 mA, config 1, eUSB MemoryStick
 Reader(0x0314), SCM Microsystems Inc.(0x04e6), rev 5.07
umass0
 Controller /dev/usb1:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 VIA(0x), rev 1.00
   uhub1
  port 1 powered
  port 2 powered
 I don't really understand what the errors mean and I would appreciate it if
 anyone could help me.  If you need more information, please ask.  Thanks all
 for the assistance.

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


bluetooth 20030604 and 5.1 release

2003-06-10 Thread User Toyboy
Hello, I downloaded the latest bluetooth stack from 20030604 and I am running 5.1 
release which was also tagged on 20030604 and I followed the steps to compile 
bluetooth  which was make depend  make  make install  make cleandir in 
src/usr.bin/bluetooth/ but it fails at make with:
=== bthost
Warning: Object directory not changed from original 
/root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost
cc -O -pipe -mcpu=pentiumpro -g 
-I/root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost/../../../sys  
-I/root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost/../../../lib/libbluetooth   
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized   -o bthost bthost.o 
-L/root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost/../../../lib/libbluetooth 
-lbluetooth
/usr/bin/ld: cannot find -lbluetooth
*** Error code 1

This is my first time installing the bluetooth stack and so I was wondering if anyone 
could help me solve my probelm.  Is there over things that I need to get this to work? 
 Do you guys have any suggestions?  thnaks for your time.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-10 Thread Maksim Yevmenkin
Hello,

 Hello, I downloaded the latest bluetooth stack from 20030604 and I am
 running 5.1 release which was also tagged on 20030604 and I followed the
 steps to compile bluetooth  which was make depend  make  make install
  make cleandir in src/usr.bin/bluetooth/ but it fails at make with:
 === bthost
 Warning: Object directory not changed from original
 /root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost
 cc -O -pipe -mcpu=pentiumpro -g
 -I/root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost/../../../sys 

-I/root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost/../../../lib/libbluetooth
   -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized   -o
 bthost bthost.o

-L/root/sandbox/2003-06-04/src/usr.bin/bluetooth/bthost/../../../lib/libbluetooth
 -lbluetooth
 /usr/bin/ld: cannot find -lbluetooth
 *** Error code 1
 
 This is my first time installing the bluetooth stack and so I was wondering
 if anyone could help me solve my probelm.  Is there over things that I need
 to get this to work?  Do you guys have any suggestions?  thnaks for your
 time.

you need to build and install libbluetooth first. please go into snapshot's
src/lib/libbluetooth/ directory and do make depend  make  make install

thanks,
max


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-10 Thread User Toyboy
Thanks for that help, it worked, I have one more question, Is it possible to share my 
internet connection on my  FreeBSd box that has bluetooth on it with other devices 
with bluetooth like my laptop?  I looked at http://www.oook.cz/bsd/bluetooth.html , 
but the information there is for how to use the internet connection  from your phone 
to the FreeBSD box, not the other way around.  Thanks.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bluetooth 20030604 and 5.1 release

2003-06-10 Thread Maksim Yevmenkin

Hello,

--- User Toyboy [EMAIL PROTECTED] wrote:
 Thanks for that help, it worked, I have one more question, Is it possible to
 share my internet connection on my  FreeBSd box that has bluetooth on it
 with other devices with bluetooth like my laptop?  I looked at
 http://www.oook.cz/bsd/bluetooth.html , but the information there is for how
 to use the internet connection  from your phone to the FreeBSD box, not the
 other way around.  Thanks.

yes, it is possible. FreeBSD box should provide LAN service. you will need
to use ppp(8) + rfcomm_pppd(8) in server mode + SDPD from snapshot's ports/
directory. please check rfcomm_pppd(8) man page for examples.

also future Bluetooth chapter for FreeBSD handbook can be found at

http://www.oook.cz/bsd/handbook/bluetooth.html

thanks,
max


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]