Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For the device inquiry, the tools that ship in bluez-utils will be ample and bulk object push, write a short shell script that parses the output of 'hcitool scan' and then pushes your object to all listed devices.
Linux doesn't provide many tools that do everything for you but it provides many small simple tools that allow you to easily build the functionality yourself. Have fun
Thanks Mr.cs-cam. Actually I am looking for a tool that automatically search all blootooth divices in that area and send some files to all. Also i need to continue this process(just for bluetooth advertisement)
A combination of 'hcitool scan' from bluez-utils and 'obex_test' from OpenOBEX and a very simple shell script could make this a very, very simple task. Try out the above tools to see how they work and you shouldn't have any trouble from there
I installed both BlueZ utils and BlueZ-lib. Now I am facing some problem on installation of OBEXServer(openobex-apps-1.0.0). It gives some error in C Program files.
while true
do
echo ""
echo "Searching for Bluetooth devices ........................................................................"
echo ""
count=0
for dev in $(hcitool inq | sed -e '/Inquiring/d' | awk '{print $1}'); do
devname=$(hcitool name $dev)
file="/dev/rfcomm$count"
rfcomm release $file
echo "New device found with bluetooth address: "$dev" ( "$devname" )"
echo "Channel for the device = "$(sdptool search --bdaddr $dev OPUSH | sed -e '/Channel/!d')
channel=$(sdptool search --bdaddr $dev OPUSH | sed -e '/Channel/!d' | awk '{print $2}')
echo $dev" is binding with "$file" using channel "$channel" ........."
rfcomm bind $file ${dev} $channel
echo "Pushing data to "$dev" ........"
./ussp-push $file /home/thoyyib/Desktop/iac.txt IAC
echo "Job finished for device "$dev
echo ""
echo ""
((count++))
sleep 1
done
done
here is the O/P of the script:
Searching for Bluetooth devices ........................................................................
New device found with bluetooth address: 00:16:4E:0C:55:E0 ( )02Blip )
Channel for the device = Channel: 9
00:16:4E:0C:55:E0 is binding with /dev/rfcomm0 using channel 9 .........
Pushing data to 00:16:4E:0C:55:E0 ........
name=/home/thoyyib/Desktop/iac.txt, size=90
Can' t open tty: No such file or directory
Error while doing OBEX_HandleInput()
__obex_connect: error=-1
Unable to connect to the server
Error
Job finished for device 00:16:4E:0C:55:E0
New device found with bluetooth address: 00:0E:ED:AF:72:73 ( tux )
Channel for the device = Channel: 9
00:0E:ED:AF:72:73 is binding with /dev/rfcomm1 using channel 9 .........
Pushing data to 00:0E:ED:AF:72:73 ........
name=/home/thoyyib/Desktop/iac.txt, size=90
Can' t open tty: Connection refused
Error while doing OBEX_HandleInput()
__obex_connect: error=-1
Unable to connect to the server
Error
Job finished for device 00:0E:ED:AF:72:73
New device found with bluetooth address: 00:15:A0:44:3A:52 ( عذب الكلام )
Channel for the device = Channel: 9
00:15:A0:44:3A:52 is binding with /dev/rfcomm2 using channel 9 .........
Pushing data to 00:15:A0:44:3A:52 ........
name=/home/thoyyib/Desktop/iac.txt, size=90
Can' t open tty: No such file or directory
Error while doing OBEX_HandleInput()
__obex_connect: error=-1
Unable to connect to the server
Error
Job finished for device 00:15:A0:44:3A:52
New device found with bluetooth address: 00:13:FD:B5:AD:AD ( MAS )
Channel for the device = Channel: 9
00:13:FD:B5:AD:AD is binding with /dev/rfcomm3 using channel 9 .........
Pushing data to 00:13:FD:B5:AD:AD ........
name=/home/thoyyib/Desktop/iac.txt, size=90
Can' t open tty: No such file or directory
Error while doing OBEX_HandleInput()
__obex_connect: error=-1
Unable to connect to the server
Error
Job finished for device 00:13:FD:B5:AD:AD
Searching for Bluetooth devices ........................................................................
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.