The first article of the new year.
Recently, I am working on a small Bluetooth Lock project. There is always a problem when the mobile phone is connected to the single-chip microcomputer, and the connection to the mobile phone is also unstable. I have read many bluetooth documents, I made a summary about the Bluetooth connection.
The previous article explains the basic use of Bluetooth in Android, and this article delves into the hidden APIs in the next Bluetooth context. People who have used the Android system setup (Setting) know that pairing and pairing can be established after a Bluetooth search,
This example describes the Bluetooth test for Android programming. Share to everyone for your reference. The specific analysis is as follows:
First, software platform:
Win7 + eclipse + SDK
Second, design ideas:
With the countdown timer to achieve Bluetooth open, visible, scanning three functions
Third, the source code:
Main.xml:
Test_bluetooth.jav
This article for you to share the Android Operation Bluetooth 2.0 use method, for everyone's reference, the specific content as follows
1.Android Operation Bluetooth 2.0 usage process(1) Find device UUID(2) Obtain the Bluetooth adapter, makes the
native code, while in the green is Java code. The top thread: inputdevicereader is the control center of the entire input process (in Android 4. x, this thread is in inputmanager. cpp ). This thread reads the input devices in the/dev/input directory of Linux Through eventhub: getevent () to obtain the hardware key input. Based on a key layout map associated with each input device, the key input is mapped to a key that can be recognized by Android.Cod
Generally, Android phones use the client role to actively connect to the SPP protocol device (connect to the digital sensor of the bluetooth module). The connection process is as follows:
1. Use registerReceiver to register BroadcastReceiver to obtain Bluetooth status, search for devices, and other messages;2. Use BlueAdatper for search;3. Obtain the
There are a lot of tutorials on using WiFi to connect Android devices to debug apps, but you need to use Bluetooth to communicate in your project. So it involves using Bluetooth to call ADB.1. Pairing your computer's Bluetooth with your phone (Control Panel, devices and printers, adding devices)2. Set on the phone (set
In Bluetooth development, we have the following requirement: Our android client must always be connected to Bluetooth. When Bluetooth has data returned, the android client must collect data in a timely manner, when Bluetooth does
Module: marvel 8787Kernel: 2.6.35
My module is shared by WiFi and Bluetooth. There is nothing to say about the Bluetooth porting part. Just load the Ko file.
For use, there is a problem in power management. Because the power supply of my Wi-Fi module is controlled, that is
During sleep, the module will be powered off, which will lead to a Bluetooth driver, which
Android G1 Bluetooth and wireless network, and APN Access Point settings
The Bluetooth of G1 now only supports Bluetooth headsets (supporting Bluetooth stereo). Like the new iPhone, G1 does not support Bluetooth data transm
1, download header filethe latest Android uses the Bluedroid Bluetooth library. The research Androhid uses the BlueZ Bluetooth library. To BlueZ downloaded a, inside the directory structure and files are different. Search for half a day, search the Android BlueZ.git clone Https://android.googlesource.com/platform/exter
How does android modify the maximum number of Bluetooth search devices?
In this file, modify the following parameters of the function:
Bool btmtk_gap_discovery (native_data_t * nat, btbm_discovery_type mode){...Req_p-> inquiry_number = 25; // the number can be modify less than 25
Android Bluetooth development issues
Requirements: BLE connection and communication (do now-device on-search device-connect device)Resources: Some demos and official documents from the Web:1-ble is a Android4.3 version of the api-to provide some conceptual things or it is necessary to understandAt present, the Android real machine can only accept and control products-that is, the client side of the-server end is only a product-and Apple seems to be a mobile phone can be used as the recei
There are a lot of tutorials on using WiFi to connect Android devices to debug apps, but you need Bluetooth to communicate with your project, so it involves using Bluetooth to call ADB.1. Pairing your computer's Bluetooth with your phone (Control Panel, device and printer, add device)2. Set on the phone (set à more wir
Android headset line control details, Bluetooth headset button monitoring (similar to cool dog line control effect)
When the media button of the headset is clicked, the Android system sends a broadcast. The broadcast carries an Intent with the Action MEDIA_BUTTON. After listening to the broadcast, you can obtain the click events of the headset media buttons on y
Android phones generally use the client's role to actively connect the SPP protocol device (digital sensor connected to the Bluetooth module), the connection process is:1. Use Registerreceiver to register broadcastreceiver to get Bluetooth status, search device and other messages;2. Search using Blueadatper;3. Obtain the Blue
How to implement Android Bluetooth development automatic pairing connection, do not pop up the prompt box Before making an Android version of Bluetooth, the biggest challenge is to automatically pair. Surfing the internet for information says it is using reflex createbond () and Setpin (), but pairing or prompting when
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.