bluetooth keyboard not reconnecting - Raspberry Pi Q&A, Help & Troubleshooting

Hi,
I run raspian and have a problem with my bluetooth keyboard.
I was able to pair the keyboard and trust it and when I run "bluez-test-input connect <address>" I can use it as an iput device, however after some inactivity the keyboard goes to some power saving mode and the connection is lost.
When I use the keyboard with an Android device the keyboard automatically reconnects when I start to use it again but on my Pi this does not work. Instead I have to run the bluez-test-input command again to re-establish the connection.
So what can I do to reestablish the connection automatically?
Many thanks!

Related

Bluetooth PAN and Mac OSX not working

Hi,
I'm trying to use the Bluetooth PAN setting in the Internet Sharing program with a Macbook (Mac OS X 10.5.4). I successfully paired the laptop and Kaiser. I start Internet Sharing on the Kaiser, go to the Bluetooth icon in OSX, click Tilt and click Connect to Network. This doesn't seem to work. Does anyone have suggestions?
I can successfully get it working with Windows XP so I'm guessing it's OSX's fault?
SPL: 3.56 hard
Rom: NotATreoFan's V1 Final (http://forum.xda-developers.com/showthread.php?t=421852)
Radio: 1.65.24.36
Might anyone have an idea, or maybe the better question is has anyone ever gotten Bluetooth PAN working with OSX?
anonova said:
Might anyone have an idea, or maybe the better question is has anyone ever gotten Bluetooth PAN working with OSX?
Click to expand...
Click to collapse
It works for me on a mbpro with 10.5.5. It's been a while since I've set it up, but I don't remember doing anything special to get it working.
Make sure you set your shared internet connection to the correct setting ( Media Net or My ISP )
I have found that tethering using MY ISP works the best and seems to have a tad less latency.
I am running a MB Pro C2D with 10.5.3
My "Hack Pro " is running 10.5.2 and is also tethering with no issues.
P.S.
One more thing. Make sure the phone is set to Visible. Although you can pair it , if its not in Visible mode, it will NOT work
Do you get a connection and it just wont give you an active connection or does your laptop attempt to tether and give a network connection error ?
Here's how I'm trying everything. The device and computer are already paired. The device is visible.
Open Internet Sharing.
Set PC Connection to Bluetooth PAN and Network Connection to MEdia Net.
I tap connect, and the status changes to "Device setup finished. On the PC, connect Bluetooth PAN."
On the Macbook, I click the Bluetooth icon on the menu bar, hover over the device's name, and click Connect to Network.
On the device, the status changes to "Connected."
When doing this in Windows, that's it. I can open up a browser, and the internet is working fine. But on my Macbook, I open up a browser, and I'm not connected to anything. I open up the Network preference pane, and nothing is connected. OSX doesn't see the Bluetooth PAN profile is maybe the problem?
anonova said:
Here's how I'm trying everything. The device and computer are already paired. The device is visible.
Open Internet Sharing.
Set PC Connection to Bluetooth PAN and Network Connection to MEdia Net.
I tap connect, and the status changes to "Device setup finished. On the PC, connect Bluetooth PAN."
On the Macbook, I click the Bluetooth icon on the menu bar, hover over the device's name, and click Connect to Network.
On the device, the status changes to "Connected."
When doing this in Windows, that's it. I can open up a browser, and the internet is working fine. But on my Macbook, I open up a browser, and I'm not connected to anything. I open up the Network preference pane, and nothing is connected. OSX doesn't see the Bluetooth PAN profile is maybe the problem?
Click to expand...
Click to collapse
Ahhhhh When you pair the phone to the mac, make sure you have internet sharing enabled on the phone before you go into pair mode. Otherwise mac osx doesnt see the PAN capability. I think thats what I had to do.
I tried with Internet Sharing pre-connected, but it still didn't work. I did get it working though! In the network connections, Bluetooth does not equal Bluetooth PAN. I went to the little plus at the bottom, and specifically added a Bluetooth PAN interface, and it picked the device up.
Thanks for all of the help!
anonova said:
I tried with Internet Sharing pre-connected, but it still didn't work. I did get it working though! In the network connections, Bluetooth does not equal Bluetooth PAN. I went to the little plus at the bottom, and specifically added a Bluetooth PAN interface, and it picked the device up.
Click to expand...
Click to collapse
Unfortunately, I am on HTC Touch with a WM6.5 ROM, and even though I added the Bluetooth PAN interface manually, my Mac is still not picking up the phone, even though it's been paired successfully and Internet Sharing pre-connected.
OK this is for last year but just in case someone else searches for this a solution I found a while back
Added step open "com port 1" on the WM, not sure where I found that, otherwise the mac keeps "dialing" and the phone says "???? no need to dial, 3G not modem"
These steps work for me on SE Xeperia1 with WM 6.5 and Mac 10.5.8.
http://www.hightechdad.com/2007/05/...sharing-from-windows-mobile-6-to-mac-os-1049/
"Now with Windows Mobile 6, Bluetooth PAN (Personal Area Network) is used. So, if you are on Mac OS 10.4.9, you now have the ability to use a Network Port called “Bluetooth PAN.” Here are the high-level steps you use to enable your Bluetooth Internet Sharing:
1. Turn on Bluetooth and BT discovery on both your WM6 device and your Mac
2. Set up a Pairing between the two devices
My steps + Setup Bluetooth from Phone to Mac. Do it form the phone to the mac not the other way around.
+ Opem Comm port one from Phone bluetooth setup.
3. Enable the Bluetooth PAN port under your Mac’s Network Preferences (Network Port Configurations) by clicking the checkbox
4. Ensure that your devices are “talking together”
5. Start “Internet Sharing” on your WM6 device and click “Connect”
6. On your Mac, it is helpful having the “Show Bluetooth status in the menu bar” enabled
7. On your Mac, from the Bluetooth menu, select “Join Network on [WM6 device]“
8. That is it! (You should have internet connectivity on your Mac, provided you have good signal on your WM6 device). You can even verify that you got an IP address from your WM6 device by going to Network control panel and selecting Bluetooth PAN. Mine shows a 192.168.0.XXX number.
I hope that works. This is a good tip to know if you travel a lot and don’t want to pay for the expensive hotel internet services. Just plug power into your phone and your laptop, connect and you have “dialup” speeds for no additional costs!
If you have questions, write a comment below. If this works for you, DIGG it!
Don’t forget, you will drain your battery pretty quickly and use a lot of bandwidth from your cellular provider (especially if your internet service has a cap)."

[Solved] XPERIA As BlueTooth Mouse

Possible? : )
Need's soft for WM6, which can emulate BT mouse for PC (HID).
I used this on my diamond it's really good, you can use your phone as a mouse, keyboard and touchpad
http://gbmsoftware.com/
hope that helps
many thanks!!!
There is something that use standard HID protocol?
So we can use with ps3, pc win/linux ecc ecc?
Thx.
I've been checking on this too, but it seems there is not much info.
Looking about HID bluetooth profile on xperia, i think it supports to be controlled by HID from remote bluetooth devies, not to be the controller itself. still looking.
update:
I have just confirmed the second point: xperia can be controlled by other HID controllers with the HID profile. I made a test to control my xperia from my old SE K800i Remote Control application, which uses HID profile to remote control other devices, and i was able to do so, moving arrows and selecting options, cool, but absolutely need the opposite...
im looking for this too
i used to have a SE K790, and i used it a lot to control my laptop
this is a big hing! THX
finally it is out !!!
http://www.mobilesrc.com/MobileRemote.aspx
a HID controller for the computer, with no software needed on pc, just bluetooth that has HID support and the software on the WinMo, works great, mouse and keyboard so easy to use !!! it is said to support hardware keyboards (like xperia and touch pro), but the mouse is so cool: touchpad style
not free, but price is acceptable, $9...
mcbyte_it said:
finally it is out !!!
http://www.mobilesrc.com/MobileRemote.aspx
a HID controller for the computer, with no software needed on pc, just bluetooth that has HID support and the software on the WinMo, works great, mouse and keyboard so easy to use !!! it is said to support hardware keyboards (like xperia and touch pro), but the mouse is so cool: touchpad style
not free, but price is acceptable, $9...
Click to expand...
Click to collapse
Here is a little video showing how it works.
http://www.youtube.com/watch?v=n8tlL3QXNwk
Has anyone tried to get it to work with PS3? Keeps searching without any results.
Works om my laptop though...
Anyone able to get this working with OSX? I can even see the mobileSRC Mobile Remote service on my Mac, but on my phone it just hangs on connecting.
jhoffa said:
Anyone able to get this working with OSX? I can even see the mobileSRC Mobile Remote service on my Mac, but on my phone it just hangs on connecting.
Click to expand...
Click to collapse
Hangs or does not connects?
Ethermind said:
Hangs or does not connects?
Click to expand...
Click to collapse
When you press the bluetooth button in the program the connection progress bar continually tries to connect, but never completes. It just runs endlessly.
I can pair from my mac to my phone while the program is running and the correct mobile remote service will appear, but I can't pair from my phone to my mac (but I can with most other programs).
I waaaaaaaaaaant...... to place my XPERIA face down on a soft fabric mousepad, and have the optical sensor track motion, moving my entire XPERIA as a bluetooth mouse.
DEVELOPERS: On your marks, get set, go!
lol
(plus at the same time you'd be cleaning off your screen on the mousepad lol) GENIUSSSSSSSSSS!!!!
jhoffa said:
When you press the bluetooth button in the program the connection progress bar continually tries to connect, but never completes. It just runs endlessly.
I can pair from my mac to my phone while the program is running and the correct mobile remote service will appear, but I can't pair from my phone to my mac (but I can with most other programs).
Click to expand...
Click to collapse
algorithm
0. switch on BlueTooth on PDA
1. Run mobile remote on PDA (dont care about endless connecting....)
2. Run Bluetooth wizard of bluetooth master on PC
3. Select anything about new device and click on XPERIA
If you see default name for pairing up "MobileRemote mobileSRC" - all correct
4. at the same time on PDA you ca see changes
5. just press OK.
Thanks for the reply Ethermind. I've tried both methods already, but unfortunately it doesn't work.
If I pair from the Mac to the phone while mobileremote is running, I do get the mobileSRC Mobile Remote service on my mac, but the connection fails with the error: "Bluetooth network failed. Failed to open a connection to the network service. Your device may have reached its maximum number of supported network connections."
It does recognize that the phone is connecting as a remote control, but it just drops the connection when you try to connect.
Here's my BT services after pairing:
Device Type: Phone
Device Services: Service Discovery, Network Access Point, Audio Video Remote Control Profile, A2DP, Phone Book Access PSE, OBEX Object Push, Active Sync Bluetooth Service, Voice Gateway, Voice Gateway, mobileSRC Mobile Remote
Paired: Yes
Configured: Yes
Favorite: Yes
Connected: No
Here's the error:
Mar 1 21:57:36 Apple kernel[0]: [IOBluetoothHIDDriver][waitForHandshake][xx-xx-xx-xx-xx-xx] Timeout waiting for handshake
Mar 1 21:57:36 Apple kernel[0]: [IOBluetoothHIDDriver][handleStart] final device setup failed
Mar 1 21:57:36 Apple kernel[0]: [IOBluetoothHIDDriver][handleStart] Failed.
Mar 1 21:59:01 Apple kernel[0]: [IOBluetoothHIDDriver][handleStart] staticPrepControlChannelAction returned error e00002c0
Mar 1 21:59:01 Apple kernel[0]: [IOBluetoothHIDDriver][handleStart] Failed.
I've spoken to the developer as well who says there's an issue with the the OSX bluetooth stack. I'll update if they're able to fix this, but please post if anyone is able to find another workaround as well.

Gremote Installation / setup Issue

Hey guys , so i have a netbook with bluetooth (lenovo S10) and my HTC touch Pro. I wanted to control my netbook with myphone using Gremote either via bluetooth or wifi.
First, i tried the bluetooth method. I followed the instrution at the main site and got all the way until i have to setup a PAN in my netbook. However i couldn't find any option to setup a PAN so i couldn't control my netbook with myphone via bluetooth.
Then i proceded to create an ad-hoc wifi network from my netbook. I made it's SSID and then set it as not using any encryption and the network key is automatically provided by windows. My phone detected the network and connected successfully to it. Both had ip's for within the network. Now the Gremote server is already running in my computer. I started the Gremote app in my phone and then went on to create a profile. When i press the FIND button (to search for the ip address) it says couldn't find ip. However in my netbook, The Gremote server shows in it's log file that it received request search from [my phone's ip here].
What is wrong? My netbook seems to be detecting my phone attempting to connect to it but the gremote app on my phone shows that it couldn't find anything?
P/s: I've tried manually key-ing the ipaddress and it didn't work.
Ive had that issue before and other issue with the app. Its strange, one day it will just start working.
For the bluetooth, make sure you have a serial port open, but i have yet to see a bluetooth stack on a PC that doesnt have an option to activate PAN.
With the wifi, you said you manually keyed it in, are you getting that IP from the status page on the gremote server app? make sure you have that port open as well, i think its 5656 or something.
you should try to
1. connect to your PC using a router
2. Drop the wep encyption on your adhoc connection
3. use a static IP for your PC
4. have your phone connected to the wifi connection for atleast 20 seconds before you try to initiate control with gremote.
ive used gremote on 2 laptops and a PC. the PC is my home PC which is the only one that has given me an issue. Regardless, it works now. One day it just started working. on the PC i can use gremote through my router wifi, adhoc connection straight to it, or bluetooth pan. On my laptop i use it through router wifi and adhoc without ever having an issue. on my sisters laptop ive used it with a adhoc connection......still no issue.
Keep messing with it. The only problems ive ever had seemed to have worked themselves out after a couple days.
Thanks YL Groper. Actually about 2 nights ago, i was playing around and it most certainly worked suddenly.
I made a standard Ad hoc network (open without encryption) and let it run. However my computer couldn't detect the network (which was created from the computer). Then i input the SSID to my Touch Pro, and it found the network. After being connected to the network, my computer found the network as well and begin to connect to it. Once it got the ip, my phone could retrieve the ip from the computer and now i have no problem

Can't connect to BT Mouse

I was having stuttering issues with the mouse cursor this morning when connected to my Logitech BT mouse, so I unpaired it and attempted to re-pair. Now for the life of me I can't connect. When I put the mouse in pairing mode, selecting it in the list of devices doesn't do anything. I have tried clearing the data for "Bluetooth Share" on the TF701, rebooting, and re-scanning. The mouse will re-appear in the list but still nothing happens when I try to connect. The mouse has a blue LED that flashes indicating it's in connect mode. This also indicates the batteries should be fine as the LED would be red if they were dead.
Any ideas? I'm on the KitKat update we got last week, stock...
EDIT: One thing I notice too is that despite the mouse being "forgotten" after clearing data, if I enable pairing mode on it and start scanning on the tablet, the mouse appears w/ it's actual name "Bluetooth Travel Mouse" rather than as a MAC address which is what appears the first time it gets paired (I just confirmed this by pairing it w/ my phone). So there is somewhere else that contains cached data about it other than the "bluetooth share" process...

Tasker not recognizing Blue Toots connection

Can someone please help me figure out why on earth I can't get my note 3 to register on tasker that it made a bluetooth connection...
I'm trying to have a profile where a plugin called drivebit starts upon connection to my car's bluetooth, and stops upon a disconnecting from my blueooth. This is for fitbit to register that I drove, so it discounts missteps registered while I drive...
I got the profile running perfect under wifi, but when I try blueooth, it won't recognize blueooth connection...
I tried blueooth autoconnect, but I can only assign one task to it, so all I can do is start drivebit upon connection. And it will connect under any blueooth device this way. I only want one of my 3 cars...
Any suggestions? Maybe run blueooth autoconnect to have tasker recognize a connection is being made?
Please help...

Categories

Resources