LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 03-25-2004, 05:41 AM   #1
tjdcd
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
Bluetooth In Suse 9.0: CBT100U


Hi to you all, hope you can give me some hints for my CBT100U Device, the one i do internet sharing with my brother in windows, so i'm needing to configure this out in suse so i can put Win32 behind my back.

This the how to i have downloaded from conceptronic.net


Quote:
CONCEPTRONIC USB BLUETOOTH DONGLE CBTU
&
Linux Red Hat 8.0
HOW-TO
Installation of the Conceptronic CBTU on a Linux Red Hat 8.0 system
Copyright 2003, 2L International BV. a Tulip Computers N.V Company
By Jeffrey Jongejan v1.0 01-04-2003
1. We tested with the following:
· Red Hat 8.0 (psyche)
· Linux kernel 2.4.20 (02-11-28) with the mh6 patch (03-03-22)
· Conceptronic CBTU
· Nokia 7650
· Sony Ericsson P800
2. Download the following:
· Latest Linux kernel from
· Latest Mh kernel patch from
Needed to patch bluetooth support into the kernel
· bluez-libs-2.4.tar.gz, bluez-sdp-1.1.tar.gz and bluez-utils-2.3.tar.gz from

Bluetooth support for linux and utils to configure bluetooth
· openobex-1.0.0.tar.gz and openobex-apps-1.0.0.tar.gz from

Utils needed to receive files
· obexserver.c from /sources/unix/obexserver.c
Needed to compile obexserver that is used for receiving files
· ussp-push from
Needed to send files from the linux box to the phone
3. Compiling the kernel with bluez support:
· Copy the kernel to /usr/src/ and untar the kernel with the following command:
# tar zxfv linux-2.2.20.tar.gz
· Copy the mh patch to /usr/src/linux-2.4.20 and apply the patch with:
# gzip –cd patch-2.4.20-mh6.gz | patch –p1 -E
when you get the error “file is not in gzip format” try the following command:
# cat patch-2.4.20-mh6.gz | patch –p1 –E
· Configure and compile your kernel and don’t forget to apply the following as modules in
the bluetooth section:
- Bluetooth subsystem support
- L2CAP protocol support
- SCO links support
- RFCOMM protocol support
- RFCOMM TTY support
- BNEP protocol support
- Bluetooth device drivers ŕ HCI USB Driver
· Edit /etc/modules.conf and add the following:
- alias bt-proto-0 l2cap
- alias net-pf-31 bluez
- alias bt-proto-2 sco
- alias bt-proto-3 rfcomm
· Load your bluetooth driver and create /dev/rfcomm* with:
# cd /dev && mknod rfcomm0 c 216 0 && mknod rfcomm1 c 216 1
· A howto about kernel compiling can be found at in the howto section.
4. Compile, install and configure bluez:
· Unpack bluez-libs-2.4.tar.gz and go to that directory. Configure, compile and install
bluez-libs:
# ./configure
# make
# make install
· Unpack bluez-utils-2.3.tar.gz and go to that directory. Configure, compile and install
bluez-sdp:
# ./configure
# make
# make install
· Unpack bluez-sdp-1.1.tat.gz and go to that directory. Configure, compile and install
bluez-sdp:
# ./configure
# make
# make install
· Now configure bluez with the file /etc/bluetooth/hcid.conf.
· If you want to change your bluetooth id you have to edit this section in hcid.conf:
# Local device name
# %d - device id
# %h - host name
name “your name (%d)”
· The default pin code is BlueZ. If you want to change this you must edit the file
/etc/bluetooth/pin
· Launch hcid and sdpd
# hcid
# sdpd
· Check if the CBTU is up with the command:
# hciconfig
If the device is down you can start it this way:
# hciconfig hci0 up
5. Compile and install openobex and obexserver
· Unpack openobex-1.0.0.tar.gz and go to that directory. Configure, compile and install:
# ./configure
# make
# make install
· Unpack obexserver-apps-1.0.0 and go to that directory. Configure, compile and install
as followed:
#./configure && make
# cd src
# wget sources/unix/obexserver.c
# cc –o obexserver obexserver.c libmisc.a –lopenobex
# chown root.root obexserver && cp obexserver /usr/local/bin
· Now we have to register a SDP service for openobex. Nokia uses rfcomm channel 10
and Sony Ericsson uses rfcomm channel 3. We add them as followed:
#sdptool add –channel=3 OPUSH
#sdptool add –channel=10 OPUSH
· If you have another brand phone you van detect the rfcomm channel as followed:
# hcitool inq
Here we can see the mac address of your phone.
#sdptool browse (mac_address)
(you can see the complete command list of sdptool with the command sdptool –help)
Here you can find the channel number by the PUSH information
· Now start the obex server. From now you can send files from your phone to the
computer.
#obexserver
6. Compile ussp-push and upload photos to your phone.
· Unpack ussp-push.tar.gz en go to that directory. No we first have to edit obex_main.c.
Open the file with an editor and change the line “custfunc.userdata = gt->userdata” to
“custfunc.customdata = gt->userdata”. Now save and exit
· Compile the program.
# make
· Now we have to connect to the phone with the following command.
# rfcomm connect 0 <Mac_adress of phone> <OBEX_PUSH Channel>
The mac address is different for every phone and the OBEX_PUSH channel depends on
the brand of the phone. Nokia uses channel 10 and Sonyericson uses channel 3 or 9.
· There now is a connection and we can send a file with the following command:
# ./ussp-push /dev/rfcomm0 ./<filename> <name for sending>
The phone should receive the file.
7. Nokia 6750 and Sony Ericsson P800.
We tested with two types of phones that supported bluetooth. The Nokia 7650 and the Sony
Ericsson P800. With the Nokia we didn’t experience any problems and file sending from and to
the phone worked well. The Sony Ericsson on the otherhand gave some problems. File sending
only worked when we send from the system to the phone. This seemd to be caused by the
phone that changes the OBEX_PUSH channel once in a while.


Ok now, my questions.

1 - If I update my kernel to 2.6, i still need to patch it with mh kernel patch?? I'm asking this because in the site only have patch for the 2.4 kernel...

2 - How to configure the Modules in suse, is like red hat?? # make menuconfig or xconfig??

Many thanks for your help, this is still confusing to me, i will try to do it step by step, i think i will have no problems with bluez and openobex, i found the rpm's and are easy to install......
 
Old 03-26-2004, 05:30 PM   #2
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
You might not need the mh patch, I don't know for sure.

http://www.bluez.org/faq.html

make menuconfig should differ only by the kernel version, not the vendor.

I have had better luck with menuconfig, than xconfig or gconfig.

Last edited by beyer42; 03-26-2004 at 05:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to get bluetooth working on Suse 10.0 fannymites SUSE / openSUSE 0 12-03-2005 05:49 AM
networking suse 10 and xp over bluetooth bmaher292 Linux - Networking 0 11-19-2005 08:38 AM
bluetooth on suse bmaher292 Linux - Newbie 2 10-30-2005 01:24 AM
SuSe 9.0, Bluetooth dongle configuration as master RohanShrivastav SUSE / openSUSE 1 08-06-2005 03:40 AM
Bluetooth OBEX PUSH with Suse 9.3 JesperX Linux - Networking 1 07-31-2005 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration