Since the use of computers and networks, it has greatly changed our world. So far, the intelligent brain of chips and hardware devices has been applied and developed in more and more fields. As for protocol, there are also many changes. Next we will introduce the I2C bus protocol for audio and video devices.
I2C bus Definition
The I2C (Inter-Integrated Circuit) b
I2C bus principle and application example
The I2C (Inter-Integrated Circuit) bus is a two-line serial bus developed by Philips to connect the microcontroller and its peripheral devices. The I2C bus was originally developed for audio and video devices in 1980s and is now mainly used in server management, including communication in the status of a
After completing the Platform_device addition, the I2C subsystem will perform the Platform_driver registration process.
Platform_driver registration by calling the initialization function I2c_adapter_s3c_init letter
Number to complete.
The I2c_adap_s3c_init () function body is as follows:
static int __init i2c_adap_s3c_init (void)
{return
platform_driver_register (s3c24xx_i2c_driver);
}Platform_driver_register (s3c24xx_i2c_driver), will complete the
Original URL: http://m.blog.csdn.net/blog/chiooo/43985401BLE Learning RecordAnroid BLE Development, based on Bluetoothlegatt analysis
Mbluetoothadapter = Mbluetoothmanager.getadapter (); Get the adapter for the Bluetooth host on your phone mbluetoothadapterpublic Boolean Initialize () {For API level and above, get a reference to bluetoothadapter throughBluetoothmanager.if (Mbluetoothmanager = = null) {Mbluetoothmanager = (Bluetoothmanager) mc
Connection EventsMy study notes on TI's official website are now organized as followsafter two ble devices are connected, all communication events occur through the connection eventswaveform measured from one of the devices with an oscilloscope after establishing a connection for two bleRed is the timeline---the horizontal axis,Power Consumption---black vertical axisThe spike wave is connection Events.the rest of the sleeping is sleep time.Most of the
The Bluetoothkit is a powerful Android Bluetooth communication framework that supports connection communication, Bluetooth broadcast scanning, and beacon resolution for low power Bluetooth devices.For detailed documentation on this project, please follow: https://github.com/dingjikerbo/BluetoothKitFor beginners just contact with Android Bluetooth development, will often encounter some strange pits, I also walked all the way, I met some of the pits summed up a bit, these pits in this project are
For research and development and testing BLE , often see the same name of the device, is extremely inconvenient, a large pile of equipment at the same time the Power will let colleagues do not know which device is what they really want to operate the target. Again millet bracelet, home has three millet bracelet, open the device search is all "MI", do not know which one to connect, so in the beginning of the use of the user to call the ring a few times
The premise is that the driver of the I2C controller must have been running normally, the standard I2C tool can only read and write to 8-bit address, but the EEPROM of this 16-bit address will be powerless
So this kind of 16-bit address for read and write support, in the embedded domain is still very common
The main use of standard Linux I2C interface, struct i2c
This blog post last modified: January 06, 2017, 11:06.
First, Introduction
This article takes simplebleperipheral as an example to introduce how to customize the normal IO port (P12) as a key.
Note: This article adds the key method does not conflict with the protocol stack's key, the protocol stack to carry the key to still be able to use normally.
second, the experimental platform
Protocol stack version: ble-cc254x-1.4.0
Compiling software: IAR 8.2
This article is not original, mainly because it has recently solved an I2C problem. During this period, I read a lot of rich blog posts and now I will sort out this sub-system.
Eric Xiao described the entire I2C framework in detail and helped me a lot. I would like to express my gratitude here. It seems to be Chengdu too ....
++
Here we will record it in a slightly "vulgar" language to facilitate your memo
i2c--2.6.34 Document: How to enumerate the generated i2c_client
============================================Author: yuanluluHttp://blog.csdn.net/yuanluluCopyright No, but reprint please retain this paragraph statement============================================
According to their own understanding, the http://lxr.linux.no/linux+v2.6.34/Documentation/i2c/instantiating-devices is translated into the do
at24c02d
at24c02d because it is not a standard I2C bus, the I2C 8-byte address bus select、read is not fully used, but the 5+3 external pin setting (A2,A1,A0) is used to determine which device to communicate with, and a I2C bus can mount up to 8 at24c02d, just 2 three times.
Do not understand why at24c02d I2C inside the
BLE-NRF51822 tutorial 9-dynamic password (pairing code)
NordicBLE technology exchange group 498676838This tutorial also describes how to modify the dynamic password (actually a pair code) based on the uart example in the sdk. The Uart example is in the following directory:
XXX \ Keil_v5 \ ARM \ Pack \ nordicsemicondu\ nRF_Examples \ 9.0.0 \ ble_peripheral \ ble_app_uart
Some theoretical knowledge about pairing is introduced in the static password tut
Bluetooth Low-Power BLE: Controls GPIO to light LEDs and blegpio
This section describes the simplest and most basic things. The ios operation of the CC2540 uses the PORT as the GPIO. If you don't talk much about it, let's look at it.
1. Hardware Circuit
The most simple hardware circuit is to use a GPIO to control the LED light. Since GPIO is used as the output, the GPIO mode is not required.
It is quite simple to control the GPIO on the left to switc
1. The problem now encountered, the phone into hibernation after the wake, the app software and CC2541 communication is not normal, but CC2541 still detect when the connection state. How to solve this problem? Will the activity be recreated after the phone wakes up?2.Wakelock lock Mechanism:Applications can vote on whether the system is standby by applying the Wakelock lock mechanism, and when any application has applied for a wakelock lock, it is not released during standby and the system will
TI ble protocol stack comes with data encryption and decryption function, there are two functions, respectively, are encrypted and decrypted, each function is three parameters, are 16 bytes, if the actual data less than 16 bytes, after the completion of their own, after the encryption via Bluetooth, the other device received this data, inverse, get 16 bytes of data, Take the number of bytes you need (if characteristic value is only 1 bytes, take 1 byt
This post was last modified: September 12, 2016, 03:34.First, IntroductionThis article takes simplebleperipheral as an example of how to use indicate instructions in your project.Second, the experimental platformProtocol stack version: ble-cc254x-1.4.0Compiler software: IAR 8.20.2Hardware platform: Smart RF Development Boardthree , Copyright NoticeBo-master: Sweet Big melonStatement: Water do not forget to dig well people, reproduced please indicate t
ble-nrf51822 Tutorial 5-Static password settings
Nordicble Exchange Group 498676838This talk introduces some relevant theoretical knowledge of pairing, and describes how to implement the "Static password" setting
The program is based on the UART demo under sdk9.0
In addition, the mobile app used in the test is lightblue under iOS.
The exact phrase here should be called the pairing code, not the password. Enter this pairing code as an optional part o
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.