Accidentally step into Android development: tpmini with big eyes using the PS3 Bluetooth handle (1) Various attempts (1)

Source: Internet
Author: User

This is a set of serialized articles used to record the entire process of connecting a Bluetooth handle with big eyes. I would like to use this document to give my missing sleep this week.

This article is equivalent to a (public) personal diary. Do not repost it without your permission.

 

I bought a TPMini with big eyes from the Internet a few days ago. The configuration is higher than my Xperia Play, and it is placed on top of the TV, just like a visitor from the sky.

This guy does not have a hardware remote control. The official Android client can be used to remotely control it. You can also use a USB keyboard or mouse. But, you know, it's not annoying to pull so many lines from the TV?

The reader said, why not use wireless mouse keys? Hey, let's talk about the problem. At present, I only have a set of 2G mouse keys, Logitech MK320 for the computer, and there is also a lame Bluetooth mouse, which only needs to be connected to the computer's bluetooth, the computer will have a variety of inexplicable problems, the mouse pointer is very stuck, and the mouse does not work every few seconds, it takes half a day to connect. In other words, the Bluetooth hardware of the MacBook Air used by our manager to cut the cake can no longer be connected to the Bluetooth HID (neither in WIN7 nor in MacOS, and other devices are normal ), do you believe it? That's why I gave my manager another 2G 4G mouse that I originally owned, and I brought it back. I don't know how this Bluetooth mouse is damaged.
The level of HID and leibai is too advanced and can damage your hardware. I am afraid that it will damage my Bluetooth adapter. Let's put it aside first. The current G mouse at home is still for the computer, so don't give it big eyes. Voice: but what do I use to remotely control you? My big eyes?

Let's continue with our big eyes. It's said that this product is connected to a TV set. How can we afford this face without playing a game? I have an original SONY PS3 Bluetooth controller in my house. It is named "SIXAXIS" and the opposite word is used. Soni, Soni. I love you and hate you. How nice it would be if I could use the PS3 controller to play games and remotely control TPMini without playing games! Just like Xperia Play in my hand, it serves as the direction key from top to bottom, and the triangle cross side as the function key. It would be better if you could use a joystick to control the mouse pointer ......

However, it seems to have been an official message saying this product does not support Bluetooth. Isn't it a pain? Open the big-eye setting interface, and there is no Bluetooth option ......

A file named "Unzip tpmini_root.zip" is stored on haoku. You don't need to explain why this is used. Whether render manager can be successful or not. Let's get it done first.

User Files are easy to use and the Root process is smooth. Of course, it also has a huge relationship with my mobile phone number for a few days. Hey.

Start with google.

The first search is, of course, "TPMini Bluetooth ". Some people ask TPMini to use Bluetooth on the Internet, but they do not know how to implement the push-back.

In this case, search "Install Bluetooth for Android ". This result is also awkward.

Search again, "linux sixaxis", this time is a bit tricky, there are a lot of solutions, but unfortunately they can't be used ......

Go through and read an article:

Using the PlayStation 3 controller in Bluetooth mode with Linux

This article is very attractive. It seems that you can try it directly in the adb shell.

TPMini uses Android 4.1.1 without in-depth customization, which provides great convenience for us.

I use my computer to open the adb shell (for convenience, of course, I first installed adbWireless and Insecure ADB, so that I can remotely shell the computer and do whatever I want ),

Input:

root@android:/system/bin # cd /etcroot@android:/etc # ls

Output:

NOTICE.html.gzapns-conf.xmlasound.confaudio_effects.confaudio_policy.confbash.bashrcbluetoothbluezdbus.confdhcpcdevent-log-tagsfallback_fonts-ja.xmlfallback_fonts.xmlfirmwarehosts...

(I did not copy it later)

Stop! I rely on it. No, bluetooth, bluez. Isn't there any bluetooth?

It seems that the TP-LINK is just disabling it. In this case, I will try to enable it:

First check:

root@android:/etc # getprop persist.sys.bluetooth.enablegetprop persist.sys.bluetooth.enable0

Indeed, it was disabled. Enable it:

root@android:/etc # setprop persist.sys.bluetooth.enable 1setprop persist.sys.bluetooth.enable 1

OK. The execution is successful. Open the settings window. Haha, the "Bluetooth" option is displayed!

As a result, I don't need to use hidd. Can I simply use the built-in Bluetooth function?

Plug in the Bluetooth adapter and turn on the Bluetooth. It is turned on successfully!

Sorry, no. Why cannot I find any device ??

Allow others to search for him. I searched my mobile phone for half a day and couldn't find it ......

It seems that this cannot be achieved.

Return to the path of Hidd.

(However, as a novice in Android programming, the subsequent work is really not easy for me .)

(After work, go home and continue)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.