From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 13 04:12:10 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD1D416A4CE for ; Mon, 13 Dec 2004 04:12:10 +0000 (GMT) Received: from web53406.mail.yahoo.com (web53406.mail.yahoo.com [206.190.37.53]) by mx1.FreeBSD.org (Postfix) with SMTP id 62DA843D2D for ; Mon, 13 Dec 2004 04:12:10 +0000 (GMT) (envelope-from edwin_vinas@yahoo.com) Received: (qmail 79757 invoked by uid 60001); 13 Dec 2004 04:12:09 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=DOrMkLj/LYKzBd8OWMmaGCu6rn1D+ogKM6yu37Dcy3wTL76wIzh3HueVtMCdq9Jm/1xpB5t6hDoWnfa8dpZtqMfI804IXCRbBXH+59tRV5ONeiv+14A1TVer6cKTfho2hgeMzQBf1PnFA5j/bZZKycJvU02VtUv4LaQ8FsB1Eqk= ; Message-ID: <20041213041209.79755.qmail@web53406.mail.yahoo.com> Received: from [202.90.128.21] by web53406.mail.yahoo.com via HTTP; Sun, 12 Dec 2004 20:12:09 PST Date: Sun, 12 Dec 2004 20:12:09 -0800 (PST) From: "Edwin D. Vinas" To: Maksim Yevmenkin In-Reply-To: <41BB529A.7020008@savvis.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-bluetooth@FreeBSD.org Subject: Re: FreeBSD-5.3 obexapp-1.3 Can't send file to PC from phone X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 04:12:11 -0000 Hi! I have a Nokia3660 and a newly installed FreeBSD-5.3. I installed obexapp/openobex and was able to use obexapp to push a file to my phone's inbox but I can't pull a file from my phone to my PC nor send a file directly from my phone to my PC. Here are some details. Hope you could help me coz if I can't send bidirectionally, I cant transfer file from my phone. I use my phone as portable storage device wherein I save my files to my phone and open it at home's PC. If you could help me make this thing work, many thanks to you! - FreeBSD-5.3 fresh installed from CD - installed openobex via ports version 1.0.1 - installed obexapp via ports version 1.3 - bluetooth dongle is found misoy# dmesg | grep ubt0 ubt0: Micro Star International product 0x6970, rev 1.10/5.25, addr 2 ubt0: Micro Star International product 0x6970, rev 1.10/5.25, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 NOTES: - can run /etc/rc.bluetooth misoy# /etc/rc.bluetooth start ubt0 BD_ADDR: 00:0c:76:9a:36:6c Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 - can discover bluetooth devices misoy# hccontrol -n ubt0hci inquiry Inquiry result, num_responses=1 Inquiry result #0 BD_ADDR: misoy Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 00 Page Scan Mode: 00 Class: 50:02:04 Clock offset: 0x7d65 Inquiry result, num_responses=1 Inquiry result #0 BD_ADDR: 00:60:57:82:35:f1 Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 00 Page Scan Mode: 00 Class: 50:02:04 Clock offset: 0x64bb Inquiry complete. Status: No error [00] - can inquire name of bluetooth device hccontrol -n ubt0hci remote_name_request 00:10:60:a6:32:02 misoy# hccontrol -n ubt0hci remote_name_request 00:60:57:82:35:f1 BD_ADDR: 00:60:57:82:35:f1 Name: Nokia3650 - can l2ping of course - has a /etc/bluetooth/hcsed.confdevice { bdaddr 00:60:57:b6:f7:b1; name "Misoy N3660"; key nokey; pin "1234"; } (my phone has been paired) - my target device is Nokia3660 [00:60:57:b6:f7:b1] which has an OBEX file trasfer protocol - i want to my phone from FreeBSD and vise versa using obexapp - i run sdpd - i run sdpcontrol -l browse Record Handle: 00000000 Service Class ID List: Service Discovery Server (0x1000) Protocol Descriptor List: L2CAP (0x0100) Protocol specific parameter #1: u/int/uuid16 1 Protocol specific parameter #2: u/int/uuid16 1 Record Handle: 0x00000001 Service Class ID List: Browse Group Descriptor (0x1001 - i can connect to my phone using obexapp misoy# obexapp -a misoy -C OPUSH obex> - i can transfer a file from FreeBSD to phone using Put command in obexapp misoy# obexapp -a misoy -C OPUSH vi /home/misoy/test.txt obex> Put test.txt put: local file> Cancelled obex> P put: local file> test.txt put: remote file> test.txt Success, response: OK, Success (0x20) obex> - can't get file from my phone using Get of obexapp maybe because i don't have a shared file - how about if i try to send file(picture) from my phone to PC (initiated file transfer from phone) * obexapp connection is of course turned off * sdpd is running in background * i select a pic form my phone * send it to my freebsd machine * then, i got an "Unable to connect!" message in my phone. - i tried running obexapp server in FreeBSD %obexapp -s -C 10 -r /home/misoy/bluetooth/ * still "Unable to connect!" is the error when i send file from my phone any idea why or what i should do? -edwin --- Maksim Yevmenkin wrote: > Edwin D. Vinas wrote: > > > I have a problem with transferring a file fro my > phone > > to PC via obexapp. I can transfer from PC->phone > but I > > can't transfer from phone->PC! Im using > FreeBSD-5.3. > > The phone and PC has been paired. What shall I do? > > i can not help you unless you provide more > information. > > - were you able to transfer files *before* (with > obexapp-1.3 or earlier > versions)? > > - how exactly are you trying to transfer files from > your phone? are you > sending files from the phone (push) or are you > connecting to the phone > and trying to download files from it? (pull) > > - can you provide binary hcidump(1) output (can be > created with -w > option)? if you were able to transfer files before > then i would like to > have two dumps: one with working setup and other > with non working setup. > > max > > ===== --- http://www.geocities.com/edwin_vinas/ If others think 10 minutes ahead; Filipinos must think 10 years ahead. --- __________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 13 18:08:03 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F10916A4CE for ; Mon, 13 Dec 2004 18:08:03 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE0F043D76 for ; Mon, 13 Dec 2004 18:08:01 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44])iBDI6eVi012560; Mon, 13 Dec 2004 12:06:40 -0600 Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 13 Dec 2004 12:06:35 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 13 Dec 2004 12:06:25 -0600 Message-ID: <41BDDA1C.70407@savvis.net> Date: Mon, 13 Dec 2004 10:06:20 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Edwin D. Vinas" References: <20041213041209.79755.qmail@web53406.mail.yahoo.com> In-Reply-To: <20041213041209.79755.qmail@web53406.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Dec 2004 18:06:25.0358 (UTC) FILETIME=[75C986E0:01C4E13E] X-ECS-MailScanner: No virus is found cc: freebsd-bluetooth@FreeBSD.org Subject: Re: FreeBSD-5.3 obexapp-1.3 Can't send file to PC from phone X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 18:08:03 -0000 Hello Edwin, > I have a Nokia3660 and a newly installed FreeBSD-5.3. > I installed obexapp/openobex and was able to use > obexapp to push a file to my phone's inbox but I can't > pull a file from my phone to my PC nor send a file > directly from my phone to my PC. Here are some > details. Hope you could help me coz if I can't send > bidirectionally, I cant transfer file from my phone. I > use my phone as portable storage device wherein I save > my files to my phone and open it at home's PC. If you > could help me make this thing work, many thanks to > you! [snip] so far everything looks good to me. > - my target device is Nokia3660 [00:60:57:b6:f7:b1] > which has an OBEX file trasfer protocol > > - i want to my phone from FreeBSD and vise versa using > obexapp > > - i run sdpd > > - i run sdpcontrol -l browse > > Record Handle: 00000000 > Service Class ID List: > Service Discovery Server (0x1000) > Protocol Descriptor List: > L2CAP (0x0100) > Protocol specific parameter #1: > u/int/uuid16 1 > Protocol specific parameter #2: > u/int/uuid16 1 > > Record Handle: 0x00000001 > Service Class ID List: > Browse Group Descriptor (0x1001 ok. thats default (empty) sdpd(8) database, i.e. *no* usable services registered on your pc. that means remote device will not be able to do anything. > - i can connect to my phone using obexapp > misoy# obexapp -a misoy -C OPUSH > obex> > > - i can transfer a file from FreeBSD to phone using > Put command in obexapp > misoy# obexapp -a misoy -C OPUSH > vi /home/misoy/test.txt > obex> Put test.txt > put: local file> > Cancelled > obex> P > put: local file> test.txt > put: remote file> test.txt > Success, response: OK, Success (0x20) > obex> that's fine too. because in this case your pc is acting as a *client*, i.e. your pc (obexapp(1)) will query *remote* device (phone) to find out which services it offers. > - can't get file from my phone using Get of obexapp > maybe because i don't have a shared file > > - how about if i try to send file(picture) from my > phone to PC (initiated file transfer from phone) > * obexapp connection is of course turned off > * sdpd is running in background > * i select a pic form my phone > * send it to my freebsd machine > * then, i got an "Unable to connect!" message in my > phone. well, that's just it. you have to run bluetooth service *server* on your pc in order to accept pictures/files etc. in addition to that *local* sdpd(8) must be running (which you have) *and* bluetooth service *must* be registered with local sdpd(8). otherwise the phone will not be able to find the service on your pc. > - i tried running obexapp server in FreeBSD > %obexapp -s -C 10 -r /home/misoy/bluetooth/ > * still "Unable to connect!" is the error when i send > file from my phone in order to *offer* services to the remote clients, you need two things: 1) run sdpd(8). you need to start it as root. once you run it make sure it continues to run. 'sdpcontrol -l browse' (again, you need to run it as root) is way to see if sdpd(8) is running and what services are offered. 2) run bluetooth service server (in your case obexapp(1)). all bluetooth service servers *will* register service with local sdpd(8) automatically, but you *need* to start them as root. again, once you run it make sure it continues to run. so, in your case, you want to do the following: make sure /home/misoy/bluetooth directory exists and writable for user 'misoy'. # sdpd # obexapp -s -S -C 10 -u misoy -r /home/misoy/bluetooth/ note that i added two more options to the obexapp(1) command: '-S' will make to obexapp(1) to chroot(2) into /home/misoy/bluetooth '-u misoy' will make obexapp(1) to drop root privileges and run as 'misoy' user. after you run these command run # sdpcontrol -l browse and *should* see 'OBEX Push' service. if you do not see it, then you need to check if obexapp(1) is running, and if its not - then check /var/log/messages for errors. keep in mind that you *can* have obexapp(1) running as *server* in the background and use obexapp(1) as *client* at the same time. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 14 02:33:39 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AC1C16A4CE for ; Tue, 14 Dec 2004 02:33:39 +0000 (GMT) Received: from web53409.mail.yahoo.com (web53409.mail.yahoo.com [206.190.37.56]) by mx1.FreeBSD.org (Postfix) with SMTP id DDCFA43D4C for ; Tue, 14 Dec 2004 02:33:38 +0000 (GMT) (envelope-from edwin_vinas@yahoo.com) Received: (qmail 77534 invoked by uid 60001); 14 Dec 2004 02:33:38 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Kd55+EpALX1ZW7lUeTSYQth1Ki8t3zaN1TVkadYnsfYA04wiW7v23EkjRYQulQjeDZWzlQwzgEtmb+lwcTMhboIkFTnI3cXdtEi+/hXf+4A9kOlA+I9cYiqLwrj0TFjaqkM6K66ClB//dsP5/lGa6ULnevSx6wxreTCHdKlYvWc= ; Message-ID: <20041214023338.77532.qmail@web53409.mail.yahoo.com> Received: from [202.90.128.27] by web53409.mail.yahoo.com via HTTP; Mon, 13 Dec 2004 18:33:37 PST Date: Mon, 13 Dec 2004 18:33:37 -0800 (PST) From: "Edwin D. Vinas" To: Maksim Yevmenkin In-Reply-To: <41BDDA1C.70407@savvis.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-bluetooth@FreeBSD.org Subject: Re: FreeBSD-5.3 obexapp-1.3 Can't send file to PC from phone X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 02:33:39 -0000 Hi everyone! Yes, I finally have tested sending from my phone to my PC via Bluetooth through the help of Max. 1. Plug MSI Bluetooth dongle in your PC's USB port. 2. Start the bluetooth device. #/etc/rc.bluetooth start ubt0 3. Start the sdpd server #sdpd 4. Start the obexapp server #obexapp -s -S -C 10 -u misoy -r /home/misoy/bluetooth NOTE: - make sure /home/misoy/bluetooth is permission to misoy - to start all bluetooth processes, i wrote a program below #!/usr/bin/perl -w print "\Starting bluetooth device..."; system("/etc/rc.bluetooth start ubt0 &"); print "\nStarting the sdpd..."; system("sdpd &"); print "\nStarting the obexapp server..."; system("bexapp -s -S -C 10 -u misoy -r /home/misoy/bluetooth &"); Using the Perl script above, just plug-in the dongle and run the script. To transfer from phone to PC, it's easy, just initiate transfer it will send to that directory in ur PC. To transfer from PC to phone, just run obexapp as client as shown below: %obexapp -a misoy -C OPUSH (obexapp --h for help) To stop bluetooth system: 1. Stop bluetooth device misoy#/etc/rc.bluetooth stop ubt0 2. Stop sdpd misoy# ps ax | grep sdpd 695 ?? Is 0:00.00 sdpd misoy# kill -9 695 3. Stop the obexapp isoy# ps ax | grep obexapp 730 ?? Is 0:00.00 obexapp -s -S -C 10 -u misoy -r /home/misoy/bluetooth misoy# kill -9 730 So, when I login to my FreeBSD and after plugging-in the dongle, I just command: misoy# ./startBluetooth.pl Starting bluetooth device... Starting the sdpd... Starting the obexapp server...misoy# BD_ADDR: 00:0c:76:9a:36:6c Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 These are the summary of commands: 1. Starting bluetooth device # /etc/rc.bluetooth start ubt0 2. Starting sdpd server # sdpd 3. Starting the obexapp server # obexapp -s -S -C 10 -u misoy -r /home/misoy/bluetooth 4. Starting obexapp as client % obexapp -a misoy -C OPUSH 5. Browsing bluetooth services of a device # sdpcontrol -l browse 6. Discovering other bluetooth devices # hccontrol -n ubt0hci inquiry 7. Knowing the name of device # hccontrol -n ubt0hci remote_name_request 00:10:60:a6:32:02 8. Giving a permanent name for devices (/etc/bluetooth/hosts) 9. Knowing the present bluetooth connections in the localhost # hccontrol -n ubt0hci read_connection_list - gives a connections handle etc. 10. Killing a connection handle # hccontrol -n ubt0hci disconnect 41 11. Pinging if host is up # l2ping -a 00:80:37:29:19:a4 12. Knowing the logical connections and baseband connections in localhost # l2control -a 00:02:72:00:d4:1a read_channel_list # l2control -a 00:02:72:00:d4:1a read_connection_list # btsockstat 13. Pairing local FreeBSD and remote bluetooth device # vi /usr/local/etc/hcsecd.conf device { bdaddr 00:80:37:29:19:a4; name "Pav's T39"; key nokey; pin "1234"; } # hcsecd -d -f /usr/local/etc/hcsecd.conf (will prompt for pin in your device) 14. Discovering what services available for a bluetooth device - sdpcontrol -a 00:60:57:b6:f7:b1 browse - gives Obex (file transer), Dial-up (accessing ISP via phone) or LAN PPP (accesing internet via dial-up to local FreeBSD) -known services - sdpcontrol -a 00:60:57:b6:f7:b1 search Known service names =================== CIP - Common ISDN Access CTP - Cordless Telephony DUN - DialUp Networking FAX - Fax FTRN - OBEX File Transfer GN - GN HID - Human Interface Device HSET - Headset LAN - LAN Access Using PPP NAP - Network Access Point OPUSH - OBEX Object Push SP - Serial Port 15. checking if your device supports LAN Access using PPP # sdpcontrol -a 00:60:57:b6:f7:b1 search LAN Thank you very much!!! -Edwin --- Maksim Yevmenkin wrote: > Hello Edwin, > > > I have a Nokia3660 and a newly installed > FreeBSD-5.3. > > I installed obexapp/openobex and was able to use > > obexapp to push a file to my phone's inbox but I > can't > > pull a file from my phone to my PC nor send a file > > directly from my phone to my PC. Here are some > > details. Hope you could help me coz if I can't > send > > bidirectionally, I cant transfer file from my > phone. I > > use my phone as portable storage device wherein I > save > > my files to my phone and open it at home's PC. If > you > > could help me make this thing work, many thanks to > > you! > > [snip] > > so far everything looks good to me. > > > - my target device is Nokia3660 > [00:60:57:b6:f7:b1] > > which has an OBEX file trasfer protocol > > > > - i want to my phone from FreeBSD and vise versa > using > > obexapp > > > > - i run sdpd > > > > - i run sdpcontrol -l browse > > > > Record Handle: 00000000 > > Service Class ID List: > > Service Discovery Server (0x1000) > > Protocol Descriptor List: > > L2CAP (0x0100) > > Protocol specific parameter #1: > > u/int/uuid16 1 > > Protocol specific parameter #2: > > u/int/uuid16 1 > > > > Record Handle: 0x00000001 > > Service Class ID List: > > Browse Group Descriptor (0x1001 > > ok. thats default (empty) sdpd(8) database, i.e. > *no* usable services > registered on your pc. that means remote device will > not be able to do > anything. > > > - i can connect to my phone using obexapp > > misoy# obexapp -a misoy -C OPUSH > > obex> > > > > - i can transfer a file from FreeBSD to phone > using > > Put command in obexapp > > misoy# obexapp -a misoy -C OPUSH > > vi /home/misoy/test.txt > > obex> Put test.txt > > put: local file> > > Cancelled > > obex> P > > put: local file> test.txt > > put: remote file> test.txt > > Success, response: OK, Success (0x20) > > obex> > > that's fine too. because in this case your pc is > acting as a *client*, > i.e. your pc (obexapp(1)) will query *remote* device > (phone) to find out > which services it offers. > > > - can't get file from my phone using Get of > obexapp > > maybe because i don't have a shared file > > > > - how about if i try to send file(picture) from my > > phone to PC (initiated file transfer from phone) > > * obexapp connection is of course turned off > > * sdpd is running in background > > * i select a pic form my phone > > * send it to my freebsd machine > > * then, i got an "Unable to connect!" message in > my > > phone. > > well, that's just it. you have to run bluetooth > service *server* on your > pc in order to accept pictures/files etc. in > addition to that *local* > sdpd(8) must be running (which you have) *and* > bluetooth service *must* > be registered with local sdpd(8). otherwise the > phone will not be able > to find the service on your pc. > > > - i tried running obexapp server in FreeBSD > > %obexapp -s -C 10 -r /home/misoy/bluetooth/ > > * still "Unable to connect!" is the error when i > send > > file from my phone > > in order to *offer* services to the remote clients, > you need two things: > > 1) run sdpd(8). you need to start it as root. once > you run it make sure > it continues to run. 'sdpcontrol -l browse' (again, > you need to run it > as root) is way to see if sdpd(8) is running and > what services are offered. > > 2) run bluetooth service server (in your case > obexapp(1)). all bluetooth > service servers *will* register service with local > sdpd(8) > automatically, but you *need* to start them as root. > again, once you run > it make sure it continues to run. > > so, in your case, you want to do the following: > > make sure /home/misoy/bluetooth directory exists and > writable for user > 'misoy'. > > # sdpd > # obexapp -s -S -C 10 -u misoy -r > /home/misoy/bluetooth/ > > note that i added two more options to the obexapp(1) > command: > > '-S' will make to obexapp(1) to chroot(2) into > /home/misoy/bluetooth > > '-u misoy' will make obexapp(1) to drop root > privileges and run as > 'misoy' user. > > after you run these command run > > # sdpcontrol -l browse > > and *should* see 'OBEX Push' service. if you do not > see it, then you > need to check if obexapp(1) is running, and if its > not - then check > /var/log/messages for errors. > > keep in mind that you *can* have obexapp(1) running > as *server* in the > background and use obexapp(1) as *client* at the > same time. > > thanks, > max > ===== --- http://www.geocities.com/edwin_vinas/ If others think 10 minutes ahead; Filipinos must think 10 years ahead. --- __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 14 03:00:28 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D11A16A4D0 for ; Tue, 14 Dec 2004 03:00:28 +0000 (GMT) Received: from web53405.mail.yahoo.com (web53405.mail.yahoo.com [206.190.37.52]) by mx1.FreeBSD.org (Postfix) with SMTP id 7D68643D55 for ; Tue, 14 Dec 2004 03:00:27 +0000 (GMT) (envelope-from edwin_vinas@yahoo.com) Received: (qmail 57210 invoked by uid 60001); 14 Dec 2004 03:00:26 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=JZrnKt1LanxD2pjtRzDdMtMgHY6HLCLFJZXbMnG9zwBoFVdFHM7fDbeX03RSqnhRA3FteFJRbYqCSCSqFdw5AcBjvHJcPHxRlSfynZmj5WzvaHxR8hDserfC95YBJXbz01y3MvwNZifj1rnatBuUzv0d2z5mbtVAVjhne5wDWFU= ; Message-ID: <20041214030026.57208.qmail@web53405.mail.yahoo.com> Received: from [202.90.128.27] by web53405.mail.yahoo.com via HTTP; Mon, 13 Dec 2004 19:00:26 PST Date: Mon, 13 Dec 2004 19:00:26 -0800 (PST) From: "Edwin D. Vinas" To: freebsd-bluetooth@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Access internet in my Nokia phone via FreeBSD-5.3 Bluetooth X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 03:00:28 -0000 Hello, This list is so helpful to that's why Im sending another call for help. I have a Nokia 3660 phone and a working FreeBSD-5.3 Bluetooth system (i.e., can send/receive files). Now, I have to test if I can access Internet through the LAN through my FreeBSD PC through the Bluetooth connection. My questions are: 1. Has anyone tried using Nokia3660 to access Internet via FreeBSD machine's bluetooth connection? 2. What are the Nokia phone models that can do Internet access in the LAN via bluetooth? 3. What are the required steps to configure my phone and my FreeBSD PC inorder to share internet access to my phone? I barely understand RFCOMM or PPP Dial-up which I think is the method being used for this. Thanks in advance for the help! -Edwin ===== --- http://www.geocities.com/edwin_vinas/ If others think 10 minutes ahead; Filipinos must think 10 years ahead. --- __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 14 22:57:49 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AE9216A4CE for ; Tue, 14 Dec 2004 22:57:49 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0696543D55 for ; Tue, 14 Dec 2004 22:57:49 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45])iBEMvblf023118; Tue, 14 Dec 2004 16:57:37 -0600 Received: from s228130hz1ew17.apptix-01.savvis.net ([10.146.4.29]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 14 Dec 2004 16:57:32 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew17.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 14 Dec 2004 16:57:20 -0600 Message-ID: <41BF6FCE.30605@savvis.net> Date: Tue, 14 Dec 2004 14:57:18 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Edwin D. Vinas" References: <20041214030026.57208.qmail@web53405.mail.yahoo.com> In-Reply-To: <20041214030026.57208.qmail@web53405.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 14 Dec 2004 22:57:20.0609 (UTC) FILETIME=[44573510:01C4E230] X-ECS-MailScanner: No virus is found cc: freebsd-bluetooth@freebsd.org Subject: Re: Access internet in my Nokia phone via FreeBSD-5.3 Bluetooth X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 22:57:49 -0000 Edwin, > I have a Nokia 3660 phone and a working FreeBSD-5.3 > Bluetooth system (i.e., can send/receive files). Now, > I have to test if I can access Internet through the > LAN through my FreeBSD PC through the Bluetooth > connection. let me get it straight. you want to use your freebsd box as gateway, right? so your phone will act as a *client* and freebsd box will act as a bluetooth access point, correct? > My questions are: > 1. Has anyone tried using Nokia3660 to access Internet > via FreeBSD machine's bluetooth connection? dont know > 2. What are the Nokia phone models that can do > Internet access in the LAN via bluetooth? dont know > 3. What are the required steps to configure my phone > and my FreeBSD PC inorder to share internet access to > my phone? I barely understand RFCOMM or PPP Dial-up > which I think is the method being used for this. as usual, if you want to provide bluetooth services on a freebsd box you need to run sdpd(8). another thing you need to do is to run bluetooth LAN (LAN Access Using PPP) profile daemon rfcomm_pppd(8). the purpose of rfcomm_pppd(8) is to accept *incoming* rfcomm connection from the remote bluetooth client (i.e. your phone) and then run ppp(8) on it. therefore you need to prepare an entry in your /etc/ppp/ppp.conf file for the remote bluetooth clients. please see rfcomm_pppd(8) and ppp(8) man pages for examples. so, the steps are prepare 'rfcomm-client' section in your /etc/ppp/ppp.conf file. # sdpd # rfcomm_pppd -s -C 1 -l rfcomm-client # sdpcontrol -l browse you should see LAN service offered on freebsd box. note: if your phone is symbian based you might need to add '-S' option to rfcomm_pppd(8) command line. also for some phones you might need to adjust chat script in /etc/ppp/ppp.conf file. max From owner-freebsd-bluetooth@FreeBSD.ORG Wed Dec 15 23:33:13 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94CF416A4CE; Wed, 15 Dec 2004 23:33:13 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29A9243D55; Wed, 15 Dec 2004 23:33:13 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44])iBFNWnUO009979; Wed, 15 Dec 2004 17:32:49 -0600 Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 15 Dec 2004 17:32:46 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 15 Dec 2004 17:32:36 -0600 Message-ID: <41C0C992.2050605@savvis.net> Date: Wed, 15 Dec 2004 15:32:34 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pav@FreeBSD.org References: <41B8D6D5.6090801@savvis.net> <1102634931.90683.9.camel@hood.oook.cz> <41B8E56C.6050409@savvis.net> <1102668370.34937.7.camel@pav.hide.vol.cz> <41B9E211.8050005@savvis.net> <1102709951.60420.9.camel@hood.oook.cz> <41BA2816.9000908@savvis.net> <1102721530.60420.15.camel@hood.oook.cz> <41BA5490.3000708@savvis.net> <1102731873.60420.21.camel@hood.oook.cz> In-Reply-To: <1102731873.60420.21.camel@hood.oook.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Dec 2004 23:32:37.0018 (UTC) FILETIME=[5C3B57A0:01C4E2FE] X-ECS-MailScanner: No virus is found cc: freebsd-bluetooth@FreeBSD.org Subject: Re: obexapp-1.4 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 23:33:13 -0000 Pav, >>>> so i guess obexapp(1) should use encoding header from xml and >>>> translate values from xml into locale one is using >>> >>> Would be very nice, yes. >> >> how about setting you locate to utf-8, i.e. >> >> % LANG=.UTF-8 xterm (for Russian language >> LANG=ru_RU.UTF-8) >> >> and then in new xterm window try to run obexapp and do ls. does cd >> command work? do you see any difference in ls output? > > ls output is now readable, but I can't cd to directories. ok, thanks. just as i expected :( this whole thing is a train wreck :( OBEX_CharToUnicode and OBEX_UnicodeToChar just plain broken in openobex library :( the quick hack is to use something like iconv(3) to convert between current locate and unicode/utf-8. i do not like it very much, because its another port to install, but i'm not sure there is a standard freebsd-way to do the same thing. also, it seems, libbsdxml(3) always feeds utf-8 characters to all callbacks. it worked before only because no one tried obexapp(1) on "localized" phone :( btw, what locale are you using? max From owner-freebsd-bluetooth@FreeBSD.ORG Thu Dec 16 08:26:36 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B225F16A4CE for ; Thu, 16 Dec 2004 08:26:36 +0000 (GMT) Received: from e0-a11.b1.lan.prg.vol.cz (e0-a11.b1.lan.prg.vol.cz [195.122.204.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id E669943D2D for ; Thu, 16 Dec 2004 08:26:35 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from pav.hide.vol.cz (localhost [127.0.0.1])iBG8QX3H075933; Thu, 16 Dec 2004 09:26:34 +0100 (CET) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by pav.hide.vol.cz (8.13.1/8.13.1/Submit) id iBG8QX1F075927; Thu, 16 Dec 2004 09:26:33 +0100 (CET) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: pav.hide.vol.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Maksim Yevmenkin In-Reply-To: <41C0C992.2050605@savvis.net> References: <41B8D6D5.6090801@savvis.net> <41B8E56C.6050409@savvis.net><41B9E211.8050005@savvis.net> <41BA2816.9000908@savvis.net><41BA5490.3000708@savvis.net> <41C0C992.2050605@savvis.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-74GksvHHm5uRI4Hfaujd" Date: Thu, 16 Dec 2004 09:26:33 +0100 Message-Id: <1103185593.69011.3.camel@pav.hide.vol.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port cc: freebsd-bluetooth@FreeBSD.org Subject: Re: obexapp-1.4 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 08:26:36 -0000 --=-74GksvHHm5uRI4Hfaujd Content-Type: text/plain; charset=ISO8859-2 Content-Transfer-Encoding: quoted-printable Maksim Yevmenkin p=ED=B9e v st 15. 12. 2004 v 15:32 -0800: > >>>> so i guess obexapp(1) should use encoding header from xml and=20 > >>>> translate values from xml into locale one is using > >>>=20 > >>> Would be very nice, yes. > >>=20 > >> how about setting you locate to utf-8, i.e. > >>=20 > >> % LANG=3D.UTF-8 xterm (for Russian language > >> LANG=3Dru_RU.UTF-8) > >>=20 > >> and then in new xterm window try to run obexapp and do ls. does cd > >> command work? do you see any difference in ls output? > >=20 > > ls output is now readable, but I can't cd to directories. >=20 > ok, thanks. just as i expected :( this whole thing is a train wreck :(=20 > OBEX_CharToUnicode and OBEX_UnicodeToChar just plain broken in openobex=20 > library :( the quick hack is to use something like iconv(3) to convert=20 > between current locate and unicode/utf-8. i do not like it very much,=20 That would be not a big paint, libiconv is present on almost every system, and certainly on every desktop system. It's dependency on common packages like gettext, gmake, ... > because its another port to install, but i'm not sure there is a=20 > standard freebsd-way to do the same thing. also, it seems, libbsdxml(3)=20 > always feeds utf-8 characters to all callbacks. it worked before only=20 > because no one tried obexapp(1) on "localized" phone :( >=20 > btw, what locale are you using? LANG=3Dcs_CZ.ISO8859-2 --=20 Pav Lucistnik Autumn changed into Winter ... Winter changed into Spring ... Spring changed back into Autumn and Autumn gave Winter and Spring a miss and went straight on into Summer --=-74GksvHHm5uRI4Hfaujd Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBwUa5ntdYP8FOsoIRAmLlAJ9i4ewa/JJlksdObTcO8GsHMLQ2LwCgvo1d Jyz7P2QdDNqQ+HA1n5ERfoc= =1Ji9 -----END PGP SIGNATURE----- --=-74GksvHHm5uRI4Hfaujd-- From owner-freebsd-bluetooth@FreeBSD.ORG Thu Dec 16 09:00:45 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED2A116A4D0 for ; Thu, 16 Dec 2004 09:00:44 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BF9D43D4C for ; Thu, 16 Dec 2004 09:00:44 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.43 (FreeBSD)) id 1CejKU-0000kl-4a; Thu, 16 Dec 2004 03:17:14 +0300 From: Vladimir Grebenschikov To: miketmp@xs4all.nl In-Reply-To: References: <1100552998.1098.5.camel@localhost> <419B8353.7040908@savvis.net> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Thu, 16 Dec 2004 03:17:13 +0300 Message-Id: <1103156233.2821.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: bluetooth@freebsd.org Subject: Re: Bluetooth mouse X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 09:00:45 -0000 =F7 =D3=D2, 17/11/2004 =D7 19:47 +0100, Mike Crosland =D0=C9=DB=C5=D4: > My current setup allows me to use my Logitech di Novo keyboard/mouse on m= y =20 > dual-boot machine. FreeBSD just sees it as being a usb hub. However I did= =20 > have to do some patching and a kernel rebuild to do it. Also FreeBSD =20 > doesn't recognise the bt hub, which means if you want to link to other bt= =20 > devices you need to have a seperate dongle. Can you share these patches ? Recently I have got Logitech bt mouse (MX900). It just works with native USB receiver. But I want to get it work with on-board bt chip. There is my USB buses: $ usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 addr 2: low speed, power 100 mA, config 1, Microsoft 3-Button Mouse= with IntelliEye(TM)(0x0040), Microsoft(0x045e), rev 3.00 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, General Purpose USB Hub= (0x2036), Texas Instruments(0x0451), rev 1.01 port 1 addr 3: low speed, power 98 mA, config 1, USB Receiver(0xc705), Lo= gitech(0x046d), rev 27.04 > ^^^^^^^^ native receiver port 2 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 100 mA, config 1, UGX(0x3003), ALPS(0x044= e), rev 7.81 > ^^^^^^^^ on-board bt chip Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 addr 2: high speed, self powered, config 1, USB Memory Stick Slot(0= x014d), Sony(0x054c), rev 1.10 port 6 powered $ I see it over bluetooth, but have no idea how to convert it into USB bus. $ hccontrol -n ubt0hci inquiry Inquiry result, num_responses=3D1 Inquiry result #0 BD_ADDR: mouse Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 00 Page Scan Mode: 00 Class: 00:25:80 Clock offset: 0x5c43 Inquiry complete. Status: No error [00] $ hccontrol -n ubt0hci remote_name_request mouse BD_ADDR: mouse Name: Logitech MX900 Mouse $ l2ping -a mouse 44 bytes from mouse seq_no=3D-664775869 time=3D1463.118 ms result=3D0=20 44 bytes from mouse seq_no=3D-664775869 time=3D29.184 ms result=3D0=20 44 bytes from mouse seq_no=3D-664775869 time=3D21.172 ms result=3D0=20 44 bytes from mouse seq_no=3D-664775869 time=3D17.164 ms result=3D0=20 ^C $=20 Any hints/advises are very appreciated. > What would be decidedly cool was if the usb bt chip AND extra dongle(s)= =20 > ie multiple devices could be recognised, in much the same way that the =20 > system can handle several network cards. Yes, it should be cool. > Mike >=20 > PS Max - congratulations to your enlarging user base - er I mean family > :) >=20 >=20 > On Wed, 17 Nov 2004 08:58:59 -0800, Maksim Yevmenkin =20 > wrote: >=20 > > Vladimir Grebenschikov wrote: > >> Hi > >> Have anybody managed to get bluetooth mouse or/and keyboard work with > > > > not yet > > > >> FreeBSD ? If yes what models/manufacturers supported ? > > > > any model that conforms to bluetooth hid spec will be supported. > > > > max > > > > > > > > > > _______________________________________________ > > freebsd-bluetooth@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > > To unsubscribe, send any mail to =20 > > "freebsd-bluetooth-unsubscribe@freebsd.org" > > >=20 >=20 >=20 > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to "freebsd-bluetooth-unsubscribe@freebsd.o= rg" --=20 Vladimir B. Grebenchikov vova@fbsd.ru From owner-freebsd-bluetooth@FreeBSD.ORG Fri Dec 17 08:50:30 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1A2916A4CE for ; Fri, 17 Dec 2004 08:50:30 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D4243D4C for ; Fri, 17 Dec 2004 08:50:30 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.43 (FreeBSD)) id 1CfCuj-0000Hs-Ht; Fri, 17 Dec 2004 10:52:37 +0300 From: Vladimir Grebenschikov To: Maksim Yevmenkin In-Reply-To: <419B9EF8.2090401@savvis.net> References: <1100552998.1098.5.camel@localhost> <419B8353.7040908@savvis.net> <419B9EF8.2090401@savvis.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Fri, 17 Dec 2004 10:52:37 +0300 Message-Id: <1103269957.974.7.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: bluetooth@freebsd.org Subject: Re: Bluetooth mouse X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 08:50:30 -0000 Hi I have found your message: ====================================== you need to have Bluetooth HID (Human Interface Device) support. someone wrote me an e-mail a while ago asking the same question. i tried to explain Bluetooth HID and how it works. its not a rocket science - you just need write a daemon that opens a couple of L2CAP connection to the mouse and read bytes from it. then you feed these bytes into /dev/console via ioctl(2) to move actual mouse pointer. i'm not sure if this person working on this. ====================================== So I am ready to try it, Can you resend me your explanations ? Also, I think, it is better to provide usual /dev/*msX interface for moused ? It looks like I need to write ng node which will connect to l2cap node one side and create /dev/btmsX on another side ? > max -- Vladimir B. Grebenchikov vova@fbsd.ru From owner-freebsd-bluetooth@FreeBSD.ORG Fri Dec 17 18:26:27 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A29C16A4CE for ; Fri, 17 Dec 2004 18:26:27 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05C8243D54 for ; Fri, 17 Dec 2004 18:26:27 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44])iBHIPJBT007278; Fri, 17 Dec 2004 12:25:19 -0600 Received: from s228130hz1ew17.apptix-01.savvis.net ([10.146.4.29]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 17 Dec 2004 12:24:57 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew17.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 17 Dec 2004 12:24:50 -0600 Message-ID: <41C32471.2050805@savvis.net> Date: Fri, 17 Dec 2004 10:24:49 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: vova@fbsd.ru References: <1100552998.1098.5.camel@localhost> <419B8353.7040908@savvis.net> <419B9EF8.2090401@savvis.net> <1103269957.974.7.camel@localhost> In-Reply-To: <1103269957.974.7.camel@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Dec 2004 18:24:50.0876 (UTC) FILETIME=[B2612FC0:01C4E465] X-ECS-MailScanner: No virus is found cc: bluetooth@freebsd.org Subject: Re: Bluetooth mouse X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 18:26:27 -0000 Vladimir, > I have found your message: > ====================================== > you need to have Bluetooth HID (Human Interface Device) support. someone > wrote me an e-mail a while ago asking the same question. i tried to > explain Bluetooth HID and how it works. its not a rocket science - you > just need write a daemon that opens a couple of L2CAP connection to the > mouse and read bytes from it. then you feed these bytes > into /dev/console via ioctl(2) to move actual mouse pointer. i'm not > sure if this person working on this. > ====================================== > > So I am ready to try it, Can you resend me your explanations ? good :) > Also, I think, it is better to provide usual /dev/*msX interface for > moused ? why? > It looks like I need to write ng node which will connect to l2cap node > one side and create /dev/btmsX on another side ? well, actually its much simpler :) most of the work already was done. take a look at /usr/src/usr.sbin/bluetooth/{bthidcontrol,bthidd}. these are not yet connected to the build, but you should be able to compile and run them. bthidcontrol(8) is a utility that can query bluetooth hid devices and create configuration for bthidd(8). % nroff -man bthidcontrol.8 | less -- for more information bthidd(8) is a bluetooth hid daemon (incomplete but mouse should work). it will read configuration created by bthidcontrol(8) and talk to bluetooth hid devices. whats needs to be done: 1) finish and test bthidd(8) and vkbd(4) integration (bluetooth keyboard support). i've done most of it, but was never able to finish and test it :( 2) better handling of bluetooth mouse events, i.e. detect double clicks etc. and send appropriate ioctl(2) to /dev/console. double clicks etc. will work in X, but not in the text mode. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Fri Dec 17 22:02:35 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EDED16A4CE for ; Fri, 17 Dec 2004 22:02:35 +0000 (GMT) Received: from dagobah.rfc1149.org (dagobah.rfc1149.org [217.160.170.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01BE443D5A for ; Fri, 17 Dec 2004 22:02:35 +0000 (GMT) (envelope-from arne@rfc2549.org) Received: from dsl-213-023-208-065.arcor-ip.net ([213.23.208.65] helo=kamino.rfc1149.org) by dagobah.rfc1149.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.43 (FreeBSD)) id 1CfQC9-000AGd-ST; Fri, 17 Dec 2004 23:03:30 +0100 Received: by kamino.rfc1149.org (Postfix, from userid 1001) id AABCC4089; Fri, 17 Dec 2004 23:02:13 +0100 (CET) To: Maksim Yevmenkin In-Reply-To: <41C32471.2050805@savvis.net> (Maksim Yevmenkin's message of "Fri, 17 Dec 2004 10:24:49 -0800") References: <1100552998.1098.5.camel@localhost> <419B8353.7040908@savvis.net> <419B9EF8.2090401@savvis.net> <1103269957.974.7.camel@localhost> <41C32471.2050805@savvis.net> From: Arne Schwabe Date: Fri, 17 Dec 2004 23:02:13 +0100 Message-ID: <866530fusa.fsf@kamino.rfc1149.org> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: bluetooth@freebsd.org Subject: Re: Bluetooth mouse X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 22:02:35 -0000 Maksim Yevmenkin writes: > > bthidcontrol(8) is a utility that can query bluetooth hid devices and > create configuration for bthidd(8). > > % nroff -man bthidcontrol.8 | less -- for more information > > bthidd(8) is a bluetooth hid daemon (incomplete but mouse should work). > it will read configuration created by bthidcontrol(8) and talk to > bluetooth hid devices. > I just tried it with my Logitech MX900 mouse, it works! :) But for _some_ reason, my third and second buttons are swapped. Well I hacked it in the hid.c source code %) Arne From owner-freebsd-bluetooth@FreeBSD.ORG Fri Dec 17 22:24:17 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A2FF16A4D0 for ; Fri, 17 Dec 2004 22:24:17 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id B145A43D48 for ; Fri, 17 Dec 2004 22:24:16 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44])iBHMKYBT029183; Fri, 17 Dec 2004 16:20:37 -0600 Received: from s228130hz1ew17.apptix-01.savvis.net ([10.146.4.29]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 17 Dec 2004 16:20:19 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew17.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 17 Dec 2004 16:19:46 -0600 Message-ID: <41C35B92.7080908@savvis.net> Date: Fri, 17 Dec 2004 14:20:02 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Arne Schwabe References: <1100552998.1098.5.camel@localhost> <419B8353.7040908@savvis.net> <419B9EF8.2090401@savvis.net> <1103269957.974.7.camel@localhost> <41C32471.2050805@savvis.net> <866530fusa.fsf@kamino.rfc1149.org> In-Reply-To: <866530fusa.fsf@kamino.rfc1149.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Dec 2004 22:19:46.0887 (UTC) FILETIME=[8441C570:01C4E486] X-ECS-MailScanner: No virus is found cc: bluetooth@freebsd.org Subject: Re: Bluetooth mouse X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 22:24:17 -0000 Arne Schwabe wrote: > Maksim Yevmenkin writes: > >>bthidcontrol(8) is a utility that can query bluetooth hid devices and >>create configuration for bthidd(8). >> >>% nroff -man bthidcontrol.8 | less -- for more information >> >>bthidd(8) is a bluetooth hid daemon (incomplete but mouse should work). >>it will read configuration created by bthidcontrol(8) and talk to >>bluetooth hid devices. > > I just tried it with my Logitech MX900 mouse, it works! :) good. > But for _some_ reason, my third and second buttons are swapped. Well I the code just parses input hid reports according to the device's hid descriptor. it hid descriptor says its second button it will be second button :) > hacked it in the hid.c source code %) well, you are more then welcome to hack it further. i hope that enough bluetooth hid users will send me their hacks so i finally will be able to finish this :) thanks, max