CN107318192A - A kind of APP music intelligent lamp - Google Patents
A kind of APP music intelligent lamp Download PDFInfo
- Publication number
- CN107318192A CN107318192A CN201710554309.9A CN201710554309A CN107318192A CN 107318192 A CN107318192 A CN 107318192A CN 201710554309 A CN201710554309 A CN 201710554309A CN 107318192 A CN107318192 A CN 107318192A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- frequency
- signal
- modules
- bluetooth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the light
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
A kind of app music intelligent lamp, including music signal acquisition module, signal processing module, mobile phone A PP modules, bluetooth communication, digital analog converter, PWM control modules and LED, mobile phone A PP modules and bluetooth communication wireless connection, bluetooth communication connects digital analog converter, digital analog converter connects PWM control modules, PWM control modules connect LED, bluetooth communication outputs signal to PWM control modules after receiving mobile phone A PP control signal by digital analog converter, bluetooth communication is carried out data transmission using bluetooth hop algorithm with mobile phone A PP modules, frequency band is divided into several frequency hopping channels by frequency hopping, in once connecting, radio transceiver constantly jumps to one other channel according to certain code sequence from a channel, only receiving-transmitting sides communicate according to this rule, and other interference sources can not possibly be disturbed according to same rule, it is more stable that this makes Bluetooth system be communicated to connect than other systems, traffic rate is faster, it is not easily disturbed and cracks simultaneously.
Description
Technical field
The present invention relates to field of household appliances, more particularly to a kind of APP music intelligent lamp.
Background technology
Intelligent appliance, microprocessor, sensor technology, the network communications technology are exactly introduced the household electrical appliances formed after home appliance produce
Product, with automatic sensing residence space state and household electrical appliances oneself state, household electrical appliances service state, can automatically control and receive house
User is in premises or long-range control instruction;Meanwhile, intelligent appliance, can be with premises as the part of smart home
Other household electrical appliances and household, facility interconnection composition system, realize smart home function, and which forms one in Internet of Things most
Specific application, with mankind's application demand and household electrical appliances are intelligentized continues to develop, its content will more be enriched, and can most melt
The intelligent appliance for entering mankind's daily life is exactly LED lamp, certainly, according to the function of the different intelligent household electrical appliances of actual application environment
Also can difference, but intelligent appliance should typically possess following basic function:Communication function, intelligent program control function, interaction
Formula control etc., most basic homework therein, is exactly wireless control function, in intelligent domestic system and Internet of Things application, LED
It is also to best embody one of household electrical appliances of intelligent control, remote control, controlled in wireless.
As the rapid advances of photoelectric technology, and attention of the China's Mainland to New Energy Industry are increased, possess environmental protection, energy-conservation spy
Property LED illumination industry be quickly becoming one of most popular industry, according to China national Semiconductor Lighting research and develop and produce
The data display that industry alliance provides, Chinese LED illumination sales Value of Industry increases by a year-on-year basis up to 60,000,000,000 yuans within 2009
More than 30%, China is turned into one of global LED industry region with fastest developing speed, Chinese LED manufacture strength and manufacture level
Also play the part of the leading role in the whole world, why LED can be favored by market or even people, be because its luminance is non-
Chang Gao, can reach 801m/w, can economize on electricity more than 80% under identical light situation, largely just serve section
Can effect, the colour temperature of LED has many kinds, and the colour rendering of various colour temperatures is very good, and the index of colour developing is also very high, can be with
Selected and allocated according to the usage scenario of terminal user, the EMI of LED meets the index in the whole world, and power factor is more than etc.
It is less than or equal to 20% in 0.9, two harmonic distortion, the loss of the electric energy of supply circuit can be reduced, reduces the infringement to circuit, no
Power network can be polluted, the full voltage range index of LED be in 85V between 264V, it ensure that the brightness of LED and
Service life makes LED almost to use in the world, LED does not have spoke than less likely being influenceed by voltage pulsation
Penetrate, without mercury etc. hazardous substance inside its lamp, safer to human body, LED is pure DC operation, will not be because of exchange
There is the phenomenon of stroboscopic in switching, and this eliminates the need for causing visual fatigue phenomenon because of stroboscopic during light fixture use.
At present, people touch the switch on light fixture by using hand and carry out control to light fixture, use it is very inconvenient, such as
Fruit can carry out the control to light fixture by the smart mobile phone in people's hand, just can be brought great convenience to life.Pass through mobile phone
Short message etc. is controlled to light fixture, needs user to pay campus network.
The content of the invention
The present invention is intended to provide a kind of APP music intelligent lamp.
To realize above-mentioned technical purpose, the present invention uses following technical scheme, and a kind of app music intelligent lamp, the intelligent lamp includes
Music signal acquisition module, signal processing module, mobile phone A PP modules, bluetooth communication, digital analog converter, PWM control modules
And LED, music signal acquisition module connection signal processing module, signal processing module connection mobile phone A PP modules, music signal
Acquisition module is specifically mobile microphone, and signal processing module is specifically a staircase generator, and microphone is collected
Audio signal, which is converted into after stepped-up voltage signal, is transmitted further to mobile phone A PP modules, and mobile phone A PP modules and bluetooth communication are wireless
Connection, bluetooth communication connection digital analog converter, digital analog converter connection PWM control modules, PWM control modules connection LED
Lamp, bluetooth communication outputs signal to PWM control modules after receiving mobile phone A PP control signal by digital analog converter,
Data signal is reduced to analog signal to control PWM control modules by changing LED by digital analog converter by ladder algorithm
Duty cycle adjustment LED color and brightness, bluetooth communication enters line number using bluetooth hop algorithm and mobile phone A PP modules
According to transmission, Bluetooth communication hop algorithm is write into mobile phone A PP and bluetooth communication, to ensure mobile phone A PP and Bluetooth communication
The consistent communication module of receiving and sending messages of module can be just in communication with each other, and hop algorithm is that frequency band is divided into several frequency hopping channels,
In once connecting, radio transceiver constantly jumps to one other channel according to certain code sequence from a channel, only receives
Both sides are sent out to communicate according to this rule, and other interference sources can not possibly be disturbed according to same rule, altogether in the presence of 10 kinds
Frequency hop sequences, are divided into 79 jumps and 23 and jump, and 79 jumps and 23 jumps respectively have 5 kinds, and they are respectively:Call frequency hop sequences, call answering sequence
Row, search sequence, inquiry response sequence and Channel Hopping Sequence, each channel represents by a pseudo-random hop sequence, each
The frequency hop sequences of piconet are all different, and frequency hopping selection scheme is made up of two parts:A sequence is selected, is shown in Hopping frequencies
Penetrate the sequence;In the case where choosing sequence, input data, the data of input are divided into two groups, be respectively local clock and work as
Preceding address, under the connection status of mobile phone A PP modules and bluetooth communication, local clock (CLKN) is by one and master clock
(CLK) equal compensation is modified, specifically, and local clock is produced on the MCU crystal oscillating circuits of bluetooth communication
Clock signal, master clock refers to clock signal when MCU receives mobile communication, and equal compensation refers to crystal oscillating circuit connection
One compensation circuit is compensated the distorted signals received, it is ensured that signal stabilization, in connection status, frequency hopping selection scheme is defeated
27 M S B of clock can only be used by entering data, and under calling and inquiry sub-state, will use whole 28 MSB of clock,
Inquiry state refers to whether bluetooth module can once connect mobile phone terminal at interval of inquiry in several seconds and whether have new command, calls
State refers to a kind of instruction of the change of operating handset APP modules control lamp, and under call state, local clock will be modified to
Estimate of the called unit to master unit;The input data of current address is constituted by 28, i.e., whole LAP (bluetooth low address portions
Point) and UAP's (bluetooth high address part) is low 4, and in connection status, master unit address can be used, under the sub- state of calling
Calling unit address is then used, and when for inquiry sub-state, will be used and GIAC (general polling identification code) corresponding UAP/
The local clock and current address inputted under LAP, above-mentioned several states exports then one pseudo-random sequence of composition after mapping,
The mapping process of frequency hopping selection scheme is operated by an add operation, X O R, arranges operation, second addition computing and register
Selecting sequence is constituted, and an add operation adds a constant only on the stage, and to 32 modulus, and for calling frequency hopping sequence
Row, an add operation is unnecessary, because it only changes state in this frequency range, in X O R operations, if with Z ' come table
Show the output of an add operation, then the four of Z ' L S B make the XOR of mould 2, output point with address bit A22-19 respectively
Wei not Z0, Z1, Z2, Z3.Arrangement operation is the core of the algorithm, and the switching from input 5 to output 5 is included for 79 hop patterns,
Period uses the mode of operation that butterfly-unit is controlled by control word, and the mapping relations for inputting and exporting are jumped according to 79 and 23 jump two
The pattern of kind is divided into following two:For 79 hop patterns, frequency hopping selection scheme will select to take 32 frequency hopping bands that gap is 64M Hz,
And these frequency hoppings are accessed once with random order, and then, one 32 different frequency hopping band of selection, and the like, for calling,
Calling scanning and the sub- state of call answering, will use same 32 frequency hopping band, the section is selected by address, and different units will have
Difference exhalation frequency range;23 hop patterns and digit and of end memory cell that 79 hop patterns are each module input signal cable
The slightly difference such as number, the frequency hop sequences for meeting both of which requirement can be produced using unified hardware circuit or software program,
And in same pattern, in order to produce the frequency hop sequences under various states, it is only necessary to receive mobile phone A PP input to Bluetooth chip
Control signal A-F, X, Yl, Y2 take different values.
Further, described LED is RGB LEDs.
Further, described bluetooth communication uses BK3260 chips.
Further, a certain Channel Hopping Sequence under 79 hop patterns, the value of each input control signal is:
X—CL K 6_2;
The 23CL K 25 1 21 of A-A27 mono-;
B—A22_19;
C-A8,6,4,2,0CL K 20_16;
D-A18-10·CL K 15_7;
E—AI3,11,9,7,5,3,1;
The 16X CL K27_7mod79 of F mono-;
Y 1—CL K 1;
Y 2-32 X CL K1;
Wherein " " represents position XOR, and " CL K 6-2 " represent the 6th to the 2nd of master unit clock, and " A22-19 " represents master
The 22nd to the 19th of element address, takes address to input A=OX3716BB8A, and the initial value of main equipment bluetooth clock is
0X00000000, obtains signal frequency hop sequences by programming, have recorded the channel hopping frequency value of a clock cycle, i.e.,
227 continuous Hopping frequencies values.
Collection, processing, the conversion of audio signal of the present invention are gathered and signal processing module using the microphone of mobile phone in itself, most
Obtain exporting the stepped-up voltage signal to mobile phone A PP modules eventually, be easy to the amplification and transmission of signal, and we are then by mobile phone institute
This audio digital signals for gathering and handling well are transferred to our bluetooth module by mobile phone A PP using bluetooth mode, then
This data signal, which is reduced into analog voltage signal, by ladder algorithm controls the dutycycle of PWM control modules to change LED
The change of lamp brightness, and color change now is that program controls random fade effect from a kind of simulation set close to the inner portion, separately
Outside, the present invention transmits data using bluetooth communication, and being mainly characterized by for bluetooth security architecture is open and flexible
Property there is provided the communication between short distance peer layer, the measure such as use data encryption and user to authenticate is to ensure the safety of communication
Property, frequency hopping is one of key technology that Bluetooth system is used, and is grouped corresponding to single time slot, and the frequency hopping rate of bluetooth is per second
1600 jump, and are grouped corresponding to multi-slot, frequency hopping rate is decreased, but (including paging and inquiry) is especially carried when establishing the link
A height of per second 3200 jump, and use so high frequency hopping rate, Bluetooth system has sufficiently high antijamming capability and security, jumps
Frequency band is divided into several frequency hopping channels by frequency technology, and in once connecting, radio transceiver is continuous according to certain code sequence
Ground jumps to one other channel from a channel, and only receiving-transmitting sides communicate according to this rule, and other interference sources can not possibly be by
Disturbed according to same rule, compared with other are operated in the system of similar frequency bands, faster, packet is shorter for bluetooth frequency hopping,
This makes Bluetooth system communicate to connect more stable, traffic rate faster than other systems, while being not easily disturbed and cracking.
Brief description of the drawings
Fig. 1 is the schematic diagram of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein identical from beginning to end
Or similar label represents same or similar element or the element with same or like function.Retouched below with reference to accompanying drawing
The embodiment stated is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
In the description of the invention, unless otherwise prescribed with restriction, it is necessary to explanation, term " installation ", " connected ", " connection "
It should be interpreted broadly, can be straight for example, it may be mechanically connecting or electrical connection or the connection of two element internals
Connect connected, can also be indirectly connected to by intermediary.For the ordinary skill in the art, can be according to specific feelings
Condition understands the concrete meaning of above-mentioned term.
A kind of app music intelligent lamp according to embodiments of the present invention is described referring to Fig. 1, the intelligent lamp is adopted including music signal
Collect module, signal processing module, mobile phone A PP modules, bluetooth communication, digital analog converter, PWM control modules and LED, sound
Music signal acquisition module connects signal processing module, signal processing module connection mobile phone A PP modules, music signal acquisition module tool
Body is mobile microphone, and signal processing module is specifically a staircase generator, and the audio signal that microphone is collected turns
Turn to and mobile phone A PP modules are transmitted further to after stepped-up voltage signal, mobile phone A PP modules and bluetooth communication wireless connection, bluetooth
Communication module connects digital analog converter, and digital analog converter connection PWM control modules, PWM control modules connection LED, bluetooth is led to
Letter module outputs signal to PWM control modules, digital analog converter after receiving mobile phone A PP control signal by digital analog converter
Data signal is reduced to analog signal to control PWM control modules to adjust by changing the dutycycle of LED by ladder algorithm
Color and the brightness of LED are saved, bluetooth communication is carried out data transmission using bluetooth hop algorithm with mobile phone A PP modules, will
Bluetooth communication hop algorithm writes mobile phone A PP and bluetooth communication, to ensure mobile phone A PP and bluetooth communication transmitting-receiving
The consistent communication module of information can be just in communication with each other, and hop algorithm is that frequency band is divided into several frequency hopping channels, in once connecting,
Radio transceiver constantly jumps to one other channel according to certain code sequence from a channel, and only receiving-transmitting sides are according to this
Individual rule communication, and other interference sources can not possibly be disturbed according to same rule, altogether in the presence of 10 kinds of frequency hop sequences, be divided into
79 jump and 23 jumps, and 79 jumps are jumped with 23 respectively 5 kinds, and they are respectively:Calling frequency hop sequences, call answering sequence, search sequence, look into
Response sequence and Channel Hopping Sequence are ask, each channel is represented by a pseudo-random hop sequence, the frequency hopping sequence of each piconet
Row are all different, and frequency hopping selection scheme is made up of two parts:A sequence is selected, the sequence is mapped on Hopping frequencies;In choosing
In the case of having selected sequence, input data, the data of input are divided into two groups, are local clock and current address respectively, in mobile phone
Under the connection status of APP modules and bluetooth communication, local clock (CLKN) is by a compensation equal with master clock (CLK)
Modify, specifically, local clock is the clock signal produced on the MCU crystal oscillating circuits of bluetooth communication, when main
Clock refers to clock signal when MCU receives mobile communication, and equal compensation refers to a compensation circuit pair of crystal oscillating circuit connection
The distorted signals compensation received, it is ensured that signal stabilization, the input data of frequency hopping selection scheme can only be used in connection status
27 M S B of clock, and under calling and inquiry sub-state, by using whole 28 MSB of clock, inquiry state refers to indigo plant
Whether tooth module can once connect mobile phone terminal at interval of inquiry in several seconds and whether have new command, and call state refers to manipulator
A kind of instruction of the change of machine APP modules control lamp, under call state, local clock will be modified to called unit to main list
The estimate of member;The input data of current address is constituted by 28, i.e., (bluetooth is high by whole LAP (bluetooth low address part) and UAP
Address part) it is low 4, in connection status, master unit address can be used, in the case where calling sub- state then using calling unit
Location, and when for inquiry sub-state, will use and GIAC (general polling identification code) corresponding UAP/LAP, above-mentioned several states
The local clock of lower input and current address export then one pseudo-random sequence of composition after mapping, and frequency hopping selection scheme is reflected
Penetrate process to be operated by an add operation, X O R, arrange operation, second addition computing and register selecting sequence and constitute, once
Add operation adds a constant only on the stage, and to 32 modulus, and for calling frequency hop sequences, an add operation is many
Remaining, because it only changes state in this frequency range, in X O R operations, if representing the defeated of an add operation with Z '
Go out, then the four of Z ' L S B make the XOR of mould 2 with address bit A22-19 respectively, output is respectively Z0, Z1, Z2, Z3.Row
Row operation is the core of the algorithm, includes the switching from input 5 to output 5 for 79 hop patterns, during which uses by control word control
The mode of operation of butterfly-unit processed, and the mapping relations for inputting and exporting are jumped according to 79 and 23 jump both of which are divided into following two
Kind:For 79 hop patterns, frequency hopping selection scheme will select to take 32 frequency hopping bands of the gap for 64M Hz, and be accessed with random order
These frequency hoppings once, then, select a 32 different frequency hopping bands, and the like, for calling, calling scan and calling should
Sub- state is answered, same 32 frequency hopping band will be used, the section is selected by address, different units there will be different exhalation frequency ranges;23
Hop pattern and 79 hop patterns are the digit of each module input signal cable and the slightly difference such as number of end memory cell, are made
The frequency hop sequences for meeting both of which requirement can be produced with unified hardware circuit or software program, and in same pattern
In, in order to produce the frequency hop sequences under various states, it is only necessary to receive mobile phone A PP input control signal A-F, X to Bluetooth chip,
Yl, Y2 take different values.
Further, described LED is RGB LEDs.
Further, described bluetooth communication uses BK3260 chips.
Further, a certain Channel Hopping Sequence under 79 hop patterns, the value of each input control signal is:
X—CL K 6_2;
The 23CL K 25 1 21 of A-A27 mono-;
B—A22_19;
C-A8,6,4,2,0CL K 20_16;
D-A18-10·CL K 15_7;
E—AI3,11,9,7,5,3,1;
The X CL K27_7mod79 of F 1;
Y 1—CL K 1;
Y 2-32X CL K1;
Wherein " " represents position XOR, and " CL K 6-2 " represent the 6th to the 2nd of master unit clock, and " A22-19 " represents master
The 22nd to the 19th of element address, takes address to input A=OX3716BB8A, and the initial value of main equipment bluetooth clock is
0X00000000, obtains signal frequency hop sequences by programming, have recorded the channel hopping frequency value of a clock cycle, i.e.,
227 continuous Hopping frequencies values.
Collection, processing, the conversion of audio signal of the present invention are gathered and signal processing module using the microphone of mobile phone in itself, most
Obtain exporting the stepped-up voltage signal to mobile phone A PP modules eventually, be easy to the amplification and transmission of signal, and we are then by mobile phone institute
This audio digital signals for gathering and handling well are transferred to our bluetooth module by mobile phone A PP using bluetooth mode, then
This data signal, which is reduced into analog voltage signal, by ladder algorithm controls the dutycycle of PWM control modules to change LED
The change of lamp brightness, and color change now is that program controls random fade effect from a kind of simulation set close to the inner portion, separately
Outside, the present invention transmits data using bluetooth communication, and being mainly characterized by for bluetooth security architecture is open and flexible
Property there is provided the communication between short distance peer layer, the measure such as use data encryption and user to authenticate is to ensure the safety of communication
Property, frequency hopping is one of key technology that Bluetooth system is used, and is grouped corresponding to single time slot, and the frequency hopping rate of bluetooth is per second
1600 jump, and are grouped corresponding to multi-slot, frequency hopping rate is decreased, but (including paging and inquiry) is especially carried when establishing the link
A height of per second 3200 jump, and use so high frequency hopping rate, Bluetooth system has sufficiently high antijamming capability and security, jumps
Frequency band is divided into several frequency hopping channels by frequency technology, and in once connecting, radio transceiver is continuous according to certain code sequence
Ground jumps to one other channel from a channel, and only receiving-transmitting sides communicate according to this rule, and other interference sources can not possibly be by
Disturbed according to same rule, compared with other are operated in the system of similar frequency bands, faster, packet is shorter for bluetooth frequency hopping,
This makes Bluetooth system communicate to connect more stable, traffic rate faster than other systems, while being not easily disturbed and cracking.
In the description of this specification, the description meaning of reference term " one embodiment ", " example " or " some examples " etc.
Refer at least one reality that the present invention is contained in reference to specific features, structure, material or the feature that the embodiment or example are described
Apply in example or example.In this manual, identical embodiment is not necessarily referring to the schematic representation of above-mentioned term or shown
Example.Moreover, specific features, structure, material or the feature of description can be in any one or more embodiments or example
Combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
In the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, this
The scope of invention is limited by claim and its equivalent.
Claims (4)
1. a kind of APP music intelligent lamp, it is characterised in that the intelligent lamp include music signal acquisition module, signal processing module,
Mobile phone A PP modules, bluetooth communication, digital analog converter, PWM control modules and LED, music signal acquisition module connection letter
Number processing module, signal processing module connection mobile phone A PP modules, music signal acquisition module is specifically mobile microphone, signal
Processing module is specifically a staircase generator, and the audio signal that microphone is collected is converted into after stepped-up voltage signal again
It is transferred to mobile phone A PP modules, mobile phone A PP modules and bluetooth communication wireless connection, bluetooth communication connection digital-to-analogue conversion
Device, digital analog converter connection PWM control modules, PWM control modules connection LED, bluetooth communication receives mobile phone A PP's
PWM control modules are outputed signal to by digital analog converter after control signal, digital analog converter is believed numeral by ladder algorithm
Number it is reduced to analog signal to control PWM control modules by changing color and the brightness of the duty cycle adjustment LED of LED,
Bluetooth communication is carried out data transmission using bluetooth hop algorithm with mobile phone A PP modules, and Bluetooth communication hop algorithm is write
Mobile phone A PP and bluetooth communication, to ensure mobile phone A PP and bluetooth communication consistent communication module ability of receiving and sending messages
It is in communication with each other, hop algorithm is that frequency band is divided into several frequency hopping channels, in once connecting, radio transceiver is according to certain
Code sequence constantly jump to one other channel from a channel, only receiving-transmitting sides communicate according to this rule, and other are dry
The source of disturbing can not possibly be disturbed according to same rule, altogether in the presence of 10 kinds of frequency hop sequences, be divided into 79 jumps and 23 and jumped, 79 jump and 23
Jump respectively has 5 kinds, and they are respectively:Frequency hop sequences, call answering sequence, search sequence, inquiry response sequence and channel is called to jump
Frequency sequence, each channel represents that the frequency hop sequences of each piconet are different by a pseudo-random hop sequence, frequency hopping selection
Scheme is made up of two parts:A sequence is selected, the sequence is mapped on Hopping frequencies;It is defeated in the case where choosing sequence
Enter data, the data of input are divided into two groups, are local clock and current address respectively, in mobile phone A PP modules and Bluetooth communication mould
Under the connection status of block, local clock (CLKN) is modified by a compensation equal with master clock (CLK), specifically,
Local clock is the clock signal produced on the MCU crystal oscillating circuits of bluetooth communication, and master clock refers to that MCU receives mobile phone
Clock signal during communication, equal compensation refers to that a compensation circuit of crystal oscillating circuit connection is mended to the distorted signals received
Repay, it is ensured that signal stabilization, in connection status, the input data of frequency hopping selection scheme can only use 27 M S B of clock, and
Under calling and inquiry sub-state, by using whole 28 MSB of clock, inquiry state refers to that bluetooth module can be at interval of several seconds
Whether clock inquiry once connects mobile phone terminal and whether has new command, and call state refers to operating handset APP modules control lamp
A kind of instruction of change, under call state, local clock will be modified to estimate of the called unit to master unit;Current position
The input data of location is constituted by 28, i.e., whole LAP (bluetooth low address part) and UAP's (bluetooth high address part) is low 4,
In connection status, master unit address can be used, calling unit address is then used in the case where calling sub- state, and works as to inquire about sub- shape
During state, will use with GIAC (general polling identification code) corresponding UAP/LAP, the local clock inputted under above-mentioned several states and
Current address exports then one pseudo-random sequence of composition after mapping, and the mapping process of frequency hopping selection scheme is transported by a sub-addition
Calculate, X O R are operated, arrangement is operated, second addition computing and register selecting sequence are constituted, an add operation is only in the stage
A upper plus constant, and to 32 modulus, and for calling frequency hop sequences, an add operation is unnecessary, because it is only at this
Change state in frequency range, in X O R operations, if representing the output of an add operation with Z ', Z ' four L S B
Make the XOR of mould 2 with address bit A22-19 respectively, output is respectively Z0, Z1, Z2, Z3.Arrangement operation is the core of the algorithm
The heart, includes the switching from input 5 to output 5 for 79 hop patterns, during which uses the operation side that butterfly-unit is controlled by control word
Formula, and input and output mapping relations according to 79 jump and 23 jump both of which be divided into it is following two:For 79 hop patterns, frequency hopping
Selection scheme will select to take 32 frequency hopping bands of the gap for 64M Hz, and access these frequency hoppings once with random order, then, choosing
Select a 32 different frequency hopping bands, and the like, for calling, calling scanning and the sub- state of call answering, it will use same
32 frequency hopping bands, the section is selected by address, and different units will have different exhalation frequency ranges;23 hop patterns are with 79 hop patterns
The digit of each module input signal cable and the number of end memory cell etc. slightly have difference, use unified hardware circuit or soft
Part program can produce the frequency hop sequences for meeting both of which requirement, and in same pattern, in order to produce under various states
Frequency hop sequences, it is only necessary to input the control signal A-F, X, Yl, Y2 that mobile phone A PP is received to Bluetooth chip take different values.
2. APP music intelligent lamp as claimed in claim 1, its is special to be, described LED is RGB LEDs.
3. APP music intelligent lamp as claimed in claim 1, it is characterised in that described bluetooth communication is used
BK3260 chips.
4. APP music intelligent lamp as claimed in claim 1, it is characterised in that a certain channel hopping sequence under 79 hop patterns
Arrange, the value of each input control signal is:
X—CL K 6_2;
A—A27-23·CL K 25-21;
B—A22_19;
C-A8,6,4,2,0CL K 20_16;
D-A18-10·CL K 15_7;
E—AI3,11,9,7,5,3,1;
F-16 X CL K27_7mod79;
Y 1—CL K 1;
Y 2-32 X CL K1;
Wherein " " represents position XOR, and " CL K 6-2 " represent the 6th to the 2nd of master unit clock, and " A22-19 " represents master
The 22nd to the 19th of element address, takes address to input A=OX3716BB8A, and the initial value of main equipment bluetooth clock is
0X00000000, obtains signal frequency hop sequences by programming, have recorded the channel hopping frequency value of a clock cycle, i.e.,
227 continuous Hopping frequencies values.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710554309.9A CN107318192A (en) | 2017-07-10 | 2017-07-10 | A kind of APP music intelligent lamp |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710554309.9A CN107318192A (en) | 2017-07-10 | 2017-07-10 | A kind of APP music intelligent lamp |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107318192A true CN107318192A (en) | 2017-11-03 |
Family
ID=60177803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710554309.9A Pending CN107318192A (en) | 2017-07-10 | 2017-07-10 | A kind of APP music intelligent lamp |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107318192A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019136809A1 (en) * | 2018-01-15 | 2019-07-18 | 深圳市沃特沃德股份有限公司 | Ble bluetooth-based led-lamp music rhythmic motion system, control method, and apparatus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201904947U (en) * | 2010-11-19 | 2011-07-20 | 华北电力大学(保定) | Wireless LED luminous stick controlled by music |
CN104219849A (en) * | 2014-09-16 | 2014-12-17 | 深圳市华海技术有限公司 | Method and device for controlling light-emitting equipment on basis of audio signal |
CN104717806A (en) * | 2015-03-20 | 2015-06-17 | 北京科睿兆明光电科技有限公司 | Method for adjusting light and colors of LED lamp and light and color adjustable LED lamp system |
CN105578640A (en) * | 2015-12-15 | 2016-05-11 | 武良举 | Audio-based lamp control system and device and control method and application thereof |
CN105813269A (en) * | 2016-05-06 | 2016-07-27 | 施必伟 | Intelligent lamp band controller |
CN106051563A (en) * | 2016-08-19 | 2016-10-26 | 江苏达伦电子股份有限公司 | Intelligent lighting equipment and control method thereof |
-
2017
- 2017-07-10 CN CN201710554309.9A patent/CN107318192A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201904947U (en) * | 2010-11-19 | 2011-07-20 | 华北电力大学(保定) | Wireless LED luminous stick controlled by music |
CN104219849A (en) * | 2014-09-16 | 2014-12-17 | 深圳市华海技术有限公司 | Method and device for controlling light-emitting equipment on basis of audio signal |
CN104717806A (en) * | 2015-03-20 | 2015-06-17 | 北京科睿兆明光电科技有限公司 | Method for adjusting light and colors of LED lamp and light and color adjustable LED lamp system |
CN105578640A (en) * | 2015-12-15 | 2016-05-11 | 武良举 | Audio-based lamp control system and device and control method and application thereof |
CN105813269A (en) * | 2016-05-06 | 2016-07-27 | 施必伟 | Intelligent lamp band controller |
CN106051563A (en) * | 2016-08-19 | 2016-10-26 | 江苏达伦电子股份有限公司 | Intelligent lighting equipment and control method thereof |
Non-Patent Citations (1)
Title |
---|
汪振飞, 刘军: "蓝牙跳频算法及性能分析", 《今日科苑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019136809A1 (en) * | 2018-01-15 | 2019-07-18 | 深圳市沃特沃德股份有限公司 | Ble bluetooth-based led-lamp music rhythmic motion system, control method, and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8155289B2 (en) | Remote control system for electric device | |
CN104955241B (en) | Internet of Things intraoral illumination equipment and the method and device exempted from wiring pairing and set of switch | |
CN201766739U (en) | Intelligent home LED lighting system based on ZigBee and ARM techniques | |
CN205305164U (en) | Intelligent light -adjusting LED lamp and intelligent lighting system based on thing networking | |
CN104994530B (en) | More Wi-Fi internet of things equipment grouping collective's control system and method based on group MAC Address | |
CN101662868A (en) | Wireless intelligent light control system | |
CN204100177U (en) | A kind of sound controlled LED light | |
CN105610449A (en) | Dual-mode radio frequency transceiving architecture | |
CN108398888A (en) | Intelligent home furnishing control method, control device and intelligent home control system | |
CN102625530A (en) | Light emitting diode (LED) lamplight remote control system based on institute of electrical and electronic engineers (IEEE) 802.15.4 | |
CN107371296A (en) | A kind of PWM light modulation toning LEDs of music signal control | |
CN107172792A (en) | A kind of APP music intelligent lamps of tunable optical toning | |
CN107231728A (en) | A kind of PWM light modulations toning LED | |
CN107172762A (en) | A kind of APP intelligent lamps of tunable optical toning | |
CN107148122A (en) | A kind of APP intelligent lamps | |
CN205921804U (en) | Smart lighting control system | |
CN107318192A (en) | A kind of APP music intelligent lamp | |
KR100730727B1 (en) | Control system for on/off of lamp | |
CN107071957A (en) | LED light modulating devices and system based on encoded signal | |
KR20130031677A (en) | Wireless management control system and method for intelligenting multipurpose display | |
Jun et al. | LED lighting control system based on the zigbee wireless network | |
CN203748080U (en) | Illumination control system | |
CN205040032U (en) | Man -machine interface device and man -machine interface device group | |
CN208353681U (en) | A kind of intelligent lighting regulating system | |
CN204968152U (en) | Device that sets up is paird in wiring of exempting from of lighting apparatus and switch in thing networking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171103 |