CN103219972A - System and device for controlling pulse width modulation (PWM) output by intelligent terminal - Google Patents

System and device for controlling pulse width modulation (PWM) output by intelligent terminal Download PDF

Info

Publication number
CN103219972A
CN103219972A CN2013101492189A CN201310149218A CN103219972A CN 103219972 A CN103219972 A CN 103219972A CN 2013101492189 A CN2013101492189 A CN 2013101492189A CN 201310149218 A CN201310149218 A CN 201310149218A CN 103219972 A CN103219972 A CN 103219972A
Authority
CN
China
Prior art keywords
module
pulse width
output
width modulation
radio network
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.)
Granted
Application number
CN2013101492189A
Other languages
Chinese (zh)
Other versions
CN103219972B (en
Inventor
唐文雄
黄雁鹰
徐立
覃坤钦
廖韦翔
向少华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
V-CHIP MICROSYSTEMS Inc
Original Assignee
V-CHIP MICROSYSTEMS Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by V-CHIP MICROSYSTEMS Inc filed Critical V-CHIP MICROSYSTEMS Inc
Priority to CN201310149218.9A priority Critical patent/CN103219972B/en
Publication of CN103219972A publication Critical patent/CN103219972A/en
Application granted granted Critical
Publication of CN103219972B publication Critical patent/CN103219972B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a system and a device for controlling pulse width modulation (PWM) output by an intelligent terminal. The system and the device for controlling the PWM output by the intelligent terminal is capable of controlling switch-on and switch-off of a power source and adjusting output power in a long-range and intensive mode. The system for controlling the PWM output by the intelligent terminal is composed of an intelligent control module, a radio network gateway module and a PWM sub machine controlling module which are connected together. The device is provided with a smart phone, a radio network gateway controller and a PWM sub machine controller. The smart phone and the radio network gateway controller are connected through a wireless fidelity (WIFI) network. The radio network gateway controller and the PWM sub machine controller are connected through a wireless sensor network. Compared with the prior art, a structure of the intelligent control module, the radio network gateway module, the PWM sub machine controlling module is adopted, the smart phone is operated to control the PWM sub machine controller to output a PWM analog signal, voltage of an adjustable voltage device and output power of the adjustable voltage device are controlled, and a plurality of devices with electricity and power adjustable can be operated and controlled conveniently.

Description

System and device with the output of intelligent terminal control impuls width modulated
Technical field
The present invention relates to control system and device that a kind of switch and power output are regulated, particularly a kind of with the tele-control system of intelligent terminal by the output of wireless sensor network control impuls width modulated.
Background technology
Pulse width modulation (PWM) is to utilize the numeral of microprocessor to export a kind of very effective method that analog circuit is controlled, and is widely used in power control field, as LED lamp brightness regulation, motor switch and speed regulation.But, traditional PWM modulation is mainly used in closely control in real time, for need be to quantity huge and need just seem unable to do what one wishes by the controlling object of Long-distance Control, carry out brightness regulation, switching manipulation as LED lamp to 100 quantity, can not centralized control, data message can not be concentrated collection, inventory analysis.
Summary of the invention
The purpose of this invention is to provide a kind of system and device with the output of intelligent terminal control impuls width modulated, the technical problem that solve is switch and an adjusting power output long-range, concentrated area control power supply.
The present invention is by the following technical solutions: a kind of system with the output of intelligent terminal control impuls width modulated, and described system with the output of intelligent terminal control impuls width modulated is controlled the slave module and is connected and composed by intelligent control module, radio network gateway module, pulse width modulation; Described intelligent control module sends control command, through the radio network gateway module, delivers to pulse width modulation control slave module, and by the modulation signal of pulse width modulation control slave module output pulse width modulation, the control output power of power supply is supplied with power consumption equipment.
Pulse width modulation control slave module of the present invention is 1 to 255.
Pulse width modulation control slave module of the present invention returns the address of current pulse width modulation control slave module, the device type information generation response message 1 of controlled device to the radio network gateway module, the radio network gateway module is added the output valve of pulse width modulation control slave module, the information of operating time, form response message 2, deliver to intelligent control module.
Intelligent control module of the present invention is provided with first data processing module, and first data processing module is connected with user's input module, user's display module, first data memory module, a WIFI communication module;
Described first data processing module is used for the parameter that is provided with the input of user's input module, sends into user's display module and shows, sends into the storage of first data memory module, delivers to a WIFI communication module and encapsulates; Receive the response message 2 that a WIFI communication module is sent into, send into the storage of first data memory module, send into user's display module and show; The described parameter that is provided with is: the device type and the operating time of the output valve of pulse width modulation control slave module, address, controlled device;
Described user's input module is used for user's input parameter is set, and parameter will be set send into first data processing module;
A described WIFI communication module is used for communicating by letter of intelligent control module and radio network gateway module;
Described first data memory module is used to store the data that parameter is set that first data processing module is sent, the data of the response message 2 that first data processing module is sent;
User's display module is used to show the parameter that is provided with that first data processing module sends; The response message 2 that first data processing module is sent.
Radio network gateway module of the present invention is provided with the 2nd WIFI communication module and wireless sensor network master station module;
Described the 2nd WIFI communication module is used for the radio network gateway module and communicates by letter with a WIFI communication module;
Described wireless sensor network master station module is used for radio network gateway module and pulse width modulation control slave module communication; The wireless sensor network master station module is provided with second data processing module, and second data processing module is connected with serial transceiver module, wireless sensor network main website protocol stack module and second data memory module;
Described serial transceiver module is used for wireless sensor network master station module and the 2nd WIFI communication module serial communication;
Described wireless sensor network main website protocol stack module is used for radio network gateway module and pulse width modulation control slave module communication;
Described second data memory module is used to deposit in checking and the legal control command that second data processing module is sent into; Deposit the response message 2 that second data memory module is sent in;
Second data processing module receives the control command that the serial transceiver module imports into, and the legitimacy of verification setting parameter is sent to wireless sensor network main website protocol stack module; Receive the response message 1 that wireless network sensor main website protocol stack module is sent, generate response message 2 and send to the serial transceiver module.
Pulse width modulation control slave module of the present invention is provided with wireless sensor network substation module and pulse width modulation output module;
Described wireless sensor network substation module is provided with the 3rd data processing module, and the 3rd data processing module is connected with wireless sensor network substation protocol stack module and the 3rd data memory module;
Described wireless sensor network substation protocol stack module is used to receive checking and the legal control command that wireless sensor network main website protocol stack module sends, and sends into the 3rd data processing module; Receive response message 1 from the 3rd data processing module, send to wireless sensor network main website protocol stack module;
Described the 3rd data processing module receives checking and the legal control command that wireless sensor network substation protocol stack module sends, and sends into the pulse width modulation output module, sends into the storage of the 3rd data memory module; Generate response message 1, send to wireless sensor network substation protocol stack module;
Described the 3rd data memory module is used to store checking and the legal control command that the 3rd data processing module is sent into, the address of storage pulse width modulated control slave module, the device type of controlled device;
Described pulse width modulation output module is used to produce pulse width modulation analog signal and output.
The present invention is during with the system power-down rebooting of intelligent terminal control impuls width modulated output, second data processing module extracts checking and legal control command from second memory module, send to pulse width modulation control slave module by wireless sensor network main website protocol stack module, second data processing module extracts response message 2, sends to the 2nd WIFI communication module by the serial transceiver module; The 3rd data processing module reads the output valve that slave is controlled in current pulse width modulation from the 3rd memory, sends to the pulse width modulation output module.
Be provided with general WIFI routing module between intelligent control module of the present invention and the radio network gateway module, or/and between described radio network gateway module and the PWM control slave module relaying forwarding module is set;
Described general WIFI routing module is used to receive the control command that intelligent control module sends, and the control command that intelligent control module sends is transmitted to the radio network gateway module;
Described relaying is transmitted the transmission range that mould relaying forwarding module is used to expand radio network gateway module and PWM control slave module.
A kind of device with the output of intelligent terminal control impuls width modulated, described device with the output of intelligent terminal control impuls width modulated is provided with smart mobile phone, radio network gateway controller, pulse width modulation from machine controller; Smart mobile phone is connected through the WIFI network with the radio network gateway controller, and the radio network gateway controller forms through wireless sensor network from machine controller with pulse width modulation and is connected; Described smart mobile phone is handheld device, the computer terminal of linking the Internet or PC; Described radio network gateway controller is provided with second processor, second processor is connected with the first processor and first controller module, the first processor and second processor are used for setting up the WIFI network between smart mobile phone and the radio network gateway controller and are connected, receive the control command that smart mobile phone sends, first controller module is used for control command is sent to pulse width modulation from machine controller; Described pulse width modulation is provided with second controller module of communicating by letter with first controller module from machine controller, and second controller module is connected with the modulation circuit of pulse width modulation through data/address bus; The modulation circuit of described pulse width modulation is provided with the pulse width modulation drive circuit, and the pulse width modulation drive circuit is connected with N passage metal-oxide layer-semiconductor-field and imitates modulation circuit.
Pulse width modulation of the present invention is 1 to 255 from machine controller.
Smart mobile phone of the present invention adopts Sony Ericsson LT18I; First processor adopts CC3000, the second processor adopting MSP430, and first controller module adopts VT-CC2530PA-Z1, and CC3000 is connected with MSP430 by the SPI communication bus, and MSP430 is connected with VT-CC2530PA-Z by universal serial bus; Second controller module adopts VT-CC2530-Z1, and the pulse width modulation drive circuit adopts the triode push-pull circuit, and modulation circuit employing N passage metal-oxide layer-semiconductor-field-effect transistor is imitated in N passage metal-oxide layer-semiconductor-field.
Be provided with general WIFI router between smart mobile phone of the present invention and the radio network gateway controller, or/and described radio network gateway controller and PWM are from being provided with the relaying transmitting controller between the machine controller.
The present invention compared with prior art, adopt intelligent control module, radio network gateway module, PWM control slave modular structure, the operative intelligence mobile phone, control PWM is from machine controller output PWM analog signal, control adjustable voltage equipment voltage and power output thereof, a plurality of adjustable electric, power apparatus are controlled in operation more easily, and are not limited to the limited distance of operator and adjustable output voltage equipment.
Description of drawings
Fig. 1 is system construction drawing of the present invention (one).
Fig. 2 is an intelligent control module structure chart of the present invention.
Fig. 3 is radio network gateway modular structure figure of the present invention.
Fig. 4 is a wireless sensor network master station module structure chart of the present invention.
Fig. 5 is PWM control slave modular structure figure of the present invention.
Fig. 6 is wireless sensor network of the present invention substation modular structure figure.
Fig. 7 is the radio network gateway controller circuitry block diagram of the embodiment of the invention.
Fig. 8 is the PWM slave controller circuitry block diagram of the embodiment of the invention.
Fig. 9 is the PWM modulation circuit schematic diagram of the embodiment of the invention.
Figure 10 is the PWM drive circuit schematic diagram of the embodiment of the invention.
Figure 11 is system construction drawing of the present invention (two).
Embodiment
Below in conjunction with drawings and Examples the present invention is described in further detail.As shown in Figure 1, the system's (native system) with the output of intelligent terminal control impuls width modulated of the present invention is connected and composed by intelligent control module, radio network gateway module, 1 to 255 PWM control slave module.Intelligent control module sends control command, after the radio network gateway module parses, delivers to different PWM control slave modules, by each PWM control slave module responds control command, exports corresponding PWM modulation signal, and the control output power of power supply is supplied with power consumption equipment.Each PWM control slave module returns the address of current PWM control slave module, the device type information generation response message 1 of controlled device to the radio network gateway module, the radio network gateway module is added the output valve of PWM control slave module, the information of operating time, and after the add-on system agreement, formation meets the response message 2 of native system agreement, delivers to intelligent control module.
As shown in Figure 2, intelligent control module is provided with first data processing module, and first data processing module is connected with user's input module, user's display module, first data memory module, a WIFI communication module.
First data processing module is used for the information transmission between leading subscriber input module, first data memory module, a WIFI communication module, the user's display module, coordinates the work of described each module.On the one hand,,, after parametric classification is set, send into the demonstration of user's display module, send into the storage of first data memory module simultaneously by identical kind or the address of pressing slave with the parameter that is provided with of user's input module input.Parameter is set is: the device type and the operating time of the output valve of PWM control slave module, address, controlled device.The parameter packing that is provided with that first data processing module will be imported forms packet, add sign (the native system communication protocol of native system communication, be used for the data format of communicating by letter between each module, comprise the data packet head sign, the packet tail tag is known, packet size, verification mode), form control command, deliver to a WIFI communication module and encapsulate.On the other hand, receive the response message 2 that a WIFI communication module is sent into, extract the address of the PWM control slave module in the response message 2, the device type of controlled device, the output valve of PWM control slave module, the information of operating time, send into the storage of first data memory module, and with the output valve of the PWM in above-mentioned information control slave module, the information of operating time (response message 2 deducts the information behind the response message 1) by identical kind or the address of press slave, send into the demonstration of user's display module.
User's input module is used for user input parameter is set, and parameter will be set send into first data processing module and classify.First data processing module advances to be delivered to the sorted parameter that is provided with user's display module and shows, deliver to the storage of first data memory module simultaneously, at last, these are provided with the parameter packing form packet, add-on system communication protocol forms control command, delivers to a WIFI communication module and encapsulates.
The one WIFI communication module is used for intelligent control module through the communicating by letter of WIFI network and radio network gateway module, and the WIFI Frame of response message 2 is carried out branch usefulness, and control command is encapsulated.Divide with being a WIFI communication module and receive when comprising the WIFI Frame of response message 2 from the radio network gateway module through the WIFI network, according to the ICP/IP protocol algorithm, rise from bottom to up in the protocol stack in the WIFI Frame, remove the heading that each layer protocol adds successively, as Ethernet stem, afterbody, IP stem, TCP stem, the packet that is only comprised response message 2 sends to first data processing module.Encapsulation is that control command that first data processing module is sent is according to the ICP/IP protocol algorithm, fall from top to bottom from protocol stack, add each layer protocol message stem successively, as add the TCP stem, the IP stem, Ethernet stem afterbody, the WIFI Frame of controlled order sends to the radio network gateway module by a WIFI communication module through the WIFI network again.
Output valve, address, the device type of controlled device and the data of operating time that first data memory module is used for first data processing module storage or reads that first data processing module sends to PWM control slave that parametric classification is set.First data processing module storage or read the address that first data processing module sends, the device type of controlled device, the output valve of PWM control slave module, the data of the information of operating time to PWM control slave module.
User's display module is used to show the device type and the operating time of first data processing module is sent the sorted output valve that parameter PWM control slave is set, address, controlled device.The address that first data processing module is sent, the device type of controlled device, the output valve of PWM control slave module, the information of operating time to PWM control slave module.
As shown in Figure 3, the radio network gateway module is provided with the 2nd WIFI communication module and wireless sensor network master station module.
The 2nd WIFI communication module is used for the radio network gateway module and communicates by letter with a WIFI communication module through the WIFI network.On the one hand, the 2nd WIFI communication module receives the WIFI Frame that comprises control command that a WIFI communication module is sent by the WIFI network, and it is carried out branch usefulness, and the wireless sensor network master station module is delivered in controlled order then.On the other hand, receive the response message 2 of wireless sensor network master station module, and it is converted into the WIFI Frame according to the ICP/IP protocol encapsulation, send to a WIFI communication module by the WIFI network.
The wireless sensor network master station module is used for the radio network gateway module and communicates through wireless sensor network and PWM control slave module.Receive the control command that the 2nd WIFI communication module is sent on the one hand, extract the parameter that is provided with in the control command, verification is provided with parameter whether legal (legitimacy), whether address and this address of verification of extracting PWM slave control module meet wireless sensor network main website addresses distributed rule, whether the device type and the verification of extracting controlled device exceed the device type scope that is provided with, extract the PWM output valve and whether exceed the scope of setting, verification is correct after wireless sensor network sends to PWM control slave module.Wireless sensor network main website addresses distributed rule is: the address of PWM slave control module must be given in the address list of PWM slave control module in the Random assignment of wireless sensor network master station module, when wireless sensor network is set up, PWM slave control module address is given in the Random assignment of wireless sensor network master station module, and this address is retained in oneself the memory module in (second memory module).The device type scope is set is: the 1-255 kind, the PWM output valve is set between the 0%-100%.Receive the response message 1 that PWM control slave module is sent through wireless sensor network on the other hand, add the output valve of current PWM control slave module, the information of operating time, after the add-on system agreement, generate response message 2, send to the 2nd WIFI communication module after the legitimacy of extraction and analysis response message 2.
As shown in Figure 4, the wireless sensor network master station module is provided with second data processing module, and second data processing module is connected with serial transceiver module, wireless sensor network main website protocol stack module and second data memory module.
The serial transceiver module is used to realize wireless sensor network master station module and the 2nd WIFI communication module serial communication, receives the control command that the 2nd WIFI communication module is sent on the one hand, and control command is sent to second data processing module.Receive the response message 2 that second data processing module sends on the other hand, and send it to the 2nd WIFI communication module.
Wireless sensor network main website protocol stack module is used for the radio network gateway module through wireless sensor network and PWM control slave module communication.On the one hand, wireless sensor network main website protocol stack module receives the response message 1 that PWM control slave module is sent through wireless sensor network, sends to second data processing module and generates response message 2.On the other hand, wireless sensor network main website protocol stack module receives second data processing module checking and legal control command, and it is sent to PWM control slave module by wireless sensor network.
Second data memory module is used for second data processing module on the one hand and deposits and read checking and the legal control command of sending into from second data processing module in.When the native system power-down rebooting, extract checking and legal control command, send to PWM control slave module by wireless sensor network main website protocol stack module for second data processing module.Be used for second data processing module on the other hand and deposit and read the response message of sending into from second data memory module 2 in, when system's power-down rebooting, extract response message 2, send to the 2nd WIFI communication module by the serial transceiver module for second data processing module.
Second data processing module receives the control command that the 2nd WIFI communication module is imported into through the serial transceiver module on the one hand, the device type and the operating time of the output valve of PWM control slave module, address, controlled device in the extraction control command, and the legitimacy of verification setting parameter, and control command is sent to wireless sensor network main website protocol stack module.On the other hand, receive the response message 1 that wireless network sensor main website protocol stack module is sent, generate response message 2 after the serial transceiver module sends to the 2nd WIFI communication module.When system's power-down rebooting, second data processing module extracts checking and legal control command, send to PWM control slave module through wireless sensor network main website protocol stack module, extract response message 2, send to the 2nd WIFI communication module through the serial transceiver module.
As shown in Figure 5, PWM control slave module is provided with wireless sensor network substation module and PWM output module.PWM control slave module receives the control command that wireless sensor network main website protocol stack module is sent by wireless sensor network, output valve according to the control of the PWM in control command slave realizes the power circuit of controlling object is controlled, and controlling object is: LED lamp, direct current machine.The slave of PWM control simultaneously module generates response message 1 with the address of controlling object (slave), the data of device type, delivers to intelligent control module after the radio network gateway module generates response message 2.
Wireless sensor network substation module receives wireless sensor network main website protocol stack module is sent in the radio network gateway checking and legal control command through wireless sensor network on the one hand, extract output valve, address, the device type of controlled device, the operating time of the PWM control slave in this control command, and the output valve that PWM controls slave is sent into the PWM output module produce pwm signal.Utilize the address of current PWM control slave, the device type information of controlled device to produce response message 1 on the other hand, send to wireless sensor network main website protocol stack module in the radio network gateway module by wireless sensor network.
The PWM output module is used to produce PWM analog signal and output, the inner triangular waveform that produces of PWM output module, the PWM output module is compared with this triangular wave amplitude with the output valve of the control of the PWM in the control command that receives slave, when equal the time just the PWM output port output level negate of PWM output module, thereby produce the PWM analog signal.The output valve of the PWM control slave that reception wireless sensor network substation module is sent into produces the PWM analog signal, with the high-low level signal output of distinct pulse widths length.
As shown in Figure 6, wireless sensor network substation module is provided with the 3rd data processing module, and the 3rd data processing module is connected with wireless sensor network substation protocol stack module and the 3rd data memory module.
Wireless sensor network substation protocol stack module is used for PWM control slave module through wireless sensor network and radio network gateway module communication.On the one hand, wireless sensor network substation protocol stack module receives checking and the legal control command that wireless sensor network main website protocol stack module sends through wireless sensor network, sends into the 3rd data processing module.Receive response message 1 from the 3rd data processing module on the other hand, send to wireless sensor network main website protocol stack module by wireless sensor network.
The 3rd data processing module receives checking and the legal control command that wireless sensor network substation protocol stack module sends on the one hand, extract output valve, address, the device type of controlled device, the operating time of PWM control slave, the output valve of PWM control slave is sent into the PWM output module, and this control command is sent into the storage of the 3rd data memory module simultaneously.Device type according to this machine address, controlled device forms response message 1 on the other hand, sends to wireless sensor network substation protocol stack module.
The 3rd data memory module is used to store checking and the legal control command that the 3rd data processing module is sent into, and when system's power-down rebooting, reads the output valve that current PWM controls the slave module for the 3rd data processing module, sends to the PWM output module.The 3rd data memory module is also stored the address of PWM control slave module, the device type of controlled device.
As shown in figure 11, native system can be provided with general WIFI routing module between intelligent control module and radio network gateway module, between radio network gateway module and PWM control slave module the relaying forwarding module is set.Intelligent control module sends control command, is forwarded to the radio network gateway module through general WIFI routing module, after the radio network gateway module parses, delivers to different PWM control slave modules through the relaying forwarding module.Each PWM control slave module returns the address of current PWM control slave module, the device type information generation response message 1 of controlled device to the radio network gateway module through the relaying forwarding module, the radio network gateway module is added the output valve of PWM control slave module, the information of operating time, and after the add-on system agreement, formation meets the response message 2 of native system agreement, delivers to intelligent control module through general WIFI routing module.
General WIFI routing module is used to receive the control command that intelligent control module sends, and the control command that intelligent control module sends is transmitted to the radio network gateway module.General WIFI routing module receives only the control command that intelligent control module sends, and control command is transferred to the radio network gateway module, do not receive all communications commands that intelligent control module sends except that described control command, make things convenient for the user when utilizing native system to send control command, do not influence user access internet, little letter communication and voice communication simultaneously.
The relaying forwarding module is used to expand the transmission range of radio network gateway module and PWM control slave module, makes that the wireless sensor network coverage of radio network gateway module is wideer, and the communication distance of radio network gateway module and PWM control slave module is farther.
System with the output of intelligent terminal control impuls width modulated of the present invention, intelligent control module is arranged on the smart mobile phone, and smart mobile phone can replace with palmtop PC PDA, the computer terminal of linking the Internet or PC PC.The radio network gateway module is arranged on the radio network gateway controller.PWM control slave module is arranged on PWM from machine controller.
Device (this device) with the output of intelligent terminal control impuls width modulated of the present invention is provided with smart mobile phone, radio network gateway controller, PWM from machine controller.Smart mobile phone is connected through the WIFI network with the radio network gateway controller, and the radio network gateway controller forms through wireless sensor network from machine controller (slave) with 1 to 255 PWM and is connected.The control command that smart mobile phone sends through the radio network gateway controller to PWM from machine controller, control adjustable voltage equipment voltage and power output thereof.PWM delivers to the radio network gateway controller from machine controller according to the address of slave, the device type generation response message 1 of controlled device, delivers to the smart mobile phone storage after the radio network gateway controller generates response message 2.
Smart mobile phone can be used handheld device such as palmtop PC PDA, or links computer terminal, the PC PC replacement of the Internet.In the present embodiment, smart mobile phone adopts the smart mobile phone Sony Ericsson LT18I that has Android operating system.
The radio network gateway controller is provided with second processor, and second processor is connected with the first processor and first controller module.As shown in Figure 7, in the present embodiment, first processor adopts the special-purpose WIFI processor CC3000 of TIX, the MSP430 processor of the second processor adopting TIX, first controller module adopts the 2.4GHZ ZIGBEE module VT-CC2530PA-Z1 (ZIGBEE module) based on the CC2530 processor of Shenzhen core prestige Science and Technology Ltd..CC3000 is connected with MSP430 by the SPI communication bus, and MSP430 is connected with the ZIGBEE module by universal serial bus.When the smart mobile phone transmitting control commands, the CC3000 processor receives the WIFI Frame that includes control command by the WIFI network, and the WIFI Frame carried out branch usefulness, controlled order, through spi bus control command is sent to the MSP430 processor, the MSP430 processor is forwarded to the ZIGBEE module with control command by universal serial bus again, the ZIGBEE module is extracted the output valve of PWM control slave in the control command, the address, the device type of controlled device and operating time, and after the legitimacy of verification setting parameter, send to PWM from machine controller by wireless sensor network.CC3000WIFI processor and MSP430 processor have constituted the WIFI communication equipment in the radio network gateway controller, CC3000 and MSP430 provide circuit support (hardware environment) for the radio network gateway module jointly, realize that setting up the WIFI network between intelligent control module and the radio network gateway module is connected, or set up the connection of WIFI network after searching for the WIFI network.ZIGBEE module based on the CC2530 processor contains the ZIGBEE protocol stack, and the ZIGBEE protocol stack then is that control command is transmitted, and sends to PWM from machine controller by wireless sensor network, therefore also can satisfy the functional requirement of this device.
PWM is provided with second controller module from machine controller, and second controller module is connected with the PWM modulation circuit through data/address bus.As shown in Figure 8, in the present embodiment, second controller module adopts the ZIGBEE module VT-CC2530-Z1 of Shenzhen core prestige Science and Technology Ltd., and second controller module is used for realizing and the communicating by letter of first controller module through wireless sensor network.Receive the control command that first controller module sends on the one hand, according to the output valve generation PWM analog signal of the control of the PWM in control command slave.Generate response message 1 on the other hand and send to first controller module.
The PWM modulation circuit is provided with the PWM drive circuit, and the PWM drive circuit is connected with the N-MOSFET modulation circuit.As shown in Figure 9, in the present embodiment, the N-MOSFET modulation circuit adopts the FQPF630 type N passage metal-oxide layer-semiconductor-field-effect transistor Q1 of U.S. fairchild Fairchild company.The PWM analog signal that second controller module produces is input to the input port 101 of PWM drive circuit, after the PWM drive circuit amplifies, by the grid of PWM analog signal output pin to field effect transistor Q1, the drain electrode 102 of Q1 connects the controlled voltage source of 9-80V, the source electrode 103 of Q1 is accepted the control voltage output end, and promptly the source electrode 103 of Q1 is after the voltage output end that N-MOSFET modulated from 102 input voltages.By unlatching and the disconnection of PWM drive circuit driving Q1, the unlatching of Q1 has realized the PWM modulation of pwm signal to controlled voltage with disconnection, supplies with power consumption equipment from 103 port power outputs.
As shown in figure 10, the PWM drive circuit adopts the triode push-pull circuit, and two triode Q4 and Q2 in the triode push-pull circuit adopt the FJV3103R and the FJV4104R of U.S. fairchild company, and each is responsible for the voltage amplification task of positive-negative half-cycle.The PWM analog signal is input to the input port 201 of triode push-pull circuit, just the input port 101 of the PWM drive circuit among Fig. 9.During circuit working, Q4 and Q2 have only a conducting at every turn, when the PWM analog signal is high level, the Q4 conducting, the high level that output port 202 outputs of triode push-pull circuit are amplified, when the PWM analog signal is low level, the Q2 conducting, the low level that 202 outputs of the output port of triode push-pull circuit are amplified, conducting and the disconnection of output voltage control Q1.
When the smart mobile phone transmitting control commands, second controller module receives control command by wireless sensor network from the radio network gateway controller, produce pwm signal according to control command, pwm signal is outputed to the PWM modulation circuit by data/address bus, open and disconnection by PWM modulation circuit control controlled voltage.After PWM produces the PWM analog signal from second controller module of machine controller, second controller module is with the information of the device type of the address of second controller module, controlled device, send to the radio network gateway controller through wireless sensor network, send to smart mobile phone through the WIFI network again and store.
In the present embodiment, be provided with 255 slaves, wireless sensor network is the 2.4G radio frequency communication network that the wireless sensor network master station module of radio network gateway controller and the wireless sensor network substation module in the slave form by the IEEE802.15.4 standard.Radio network gateway module, PWM control slave module adopt the c programming language that meets the C99 standard in the native system, and intelligent control module adopts towards the JAVA ME of microprocessor and realizes.
In this device, can between smart mobile phone and radio network gateway controller, be provided with general WIFI router, at radio network gateway controller and PWM from being provided with the relaying transmitting controller between the machine controller.Smart mobile phone is connected through the WIFI network with the radio network gateway controller by general WIFI router, and the radio network gateway controller forms through wireless sensor network from machine controller with 1 to 255 PWM through the relaying transmitting controller and is connected.The control command that smart mobile phone sends through general WIFI router, radio network gateway controller, relaying transmitting controller to PWM from machine controller, control adjustable voltage equipment voltage and power output thereof.PWM delivers to radio network gateway controller according to the address of slave, the device type generation response message 1 of controlled device through the relaying transmitting controller from machine controller, generates response message 2 after general WIFI router is delivered to the smart mobile phone storage through the radio network gateway controller.
General WIFI router is the router that has radio function, and present embodiment selects for use the TL-WR340G+ wireless router of Shenzhen general technology Co., Ltd as general WIFI router.The VT-DTMUA5-433 relaying forwarding module that the relaying transmitting controller selects for use Shenzhen core prestige Science and Technology Ltd. to produce.
The device type and the operating time of the output valve of PWM control slave module, address, controlled device in second data processing module extraction control command, and the instruction of the legitimacy of verification setting parameter:
Figure BDA00003108367000161
Figure BDA00003108367000171
Figure BDA00003108367000181
Figure BDA00003108367000191
Figure BDA00003108367000201
Figure BDA00003108367000211
Second data processing module is sent to control command the instruction of wireless sensor network main website protocol stack module:
Figure BDA00003108367000221
Figure BDA00003108367000231
The 3rd data processing module is sent into the output valve of PWM control slave the instruction of PWM output module:
Figure BDA00003108367000232
Figure BDA00003108367000251
The PWM output module produces the instruction of PWM analog signal and output:
Figure BDA00003108367000252
Figure BDA00003108367000261
Figure BDA00003108367000271
The 3rd data processing module sends to the instruction of wireless sensor network substation protocol stack module with response message 1:
Figure BDA00003108367000272
Figure BDA00003108367000281
Second data processing module generates the instruction of response message 2 with response message 1:
Figure BDA00003108367000282
Figure BDA00003108367000291
During the system power-down rebooting, second data processing module extracts checking and legal control command, sends to the instruction of PWM control slave module through wireless sensor network main website protocol stack module:
Figure BDA00003108367000292
Figure BDA00003108367000311
Figure BDA00003108367000321
During the system power-down rebooting, second data processing module extracts response message 2, sends to the instruction of the 2nd WIFI communication module through the serial transceiver module:
Figure BDA00003108367000322
Figure BDA00003108367000331
Figure BDA00003108367000341

Claims (12)

1. system with intelligent terminal control impuls width modulated output, it is characterized in that: described system with the output of intelligent terminal control impuls width modulated is controlled the slave module and is connected and composed by intelligent control module, radio network gateway module, pulse width modulation; Described intelligent control module sends control command, through the radio network gateway module, delivers to pulse width modulation control slave module, and by the modulation signal of pulse width modulation control slave module output pulse width modulation, the control output power of power supply is supplied with power consumption equipment.
2. the system with the output of intelligent terminal control impuls width modulated according to claim 1 is characterized in that: described pulse width modulation control slave module is 1 to 255.
3. the system with the output of intelligent terminal control impuls width modulated according to claim 2, it is characterized in that: described pulse width modulation control slave module returns the address of current pulse width modulation control slave module, the device type information generation response message 1 of controlled device to the radio network gateway module, the radio network gateway module is added the output valve of pulse width modulation control slave module, the information of operating time, form response message 2, deliver to intelligent control module.
4. the system with the output of intelligent terminal control impuls width modulated according to claim 3, it is characterized in that: described intelligent control module is provided with first data processing module, first data processing module is connected with user's input module, user's display module, first data memory module, a WIFI communication module;
Described first data processing module is used for the parameter that is provided with the input of user's input module, sends into user's display module and shows, sends into the storage of first data memory module, delivers to a WIFI communication module and encapsulates; Receive the response message 2 that a WIFI communication module is sent into, send into the storage of first data memory module, send into user's display module and show; The described parameter that is provided with is: the device type and the operating time of the output valve of pulse width modulation control slave module, address, controlled device;
Described user's input module is used for user's input parameter is set, and parameter will be set send into first data processing module;
A described WIFI communication module is used for communicating by letter of intelligent control module and radio network gateway module;
Described first data memory module is used to store the data that parameter is set that first data processing module is sent, the data of the response message 2 that first data processing module is sent;
User's display module is used to show the parameter that is provided with that first data processing module sends; The response message 2 that first data processing module is sent.
5. the system with the output of intelligent terminal control impuls width modulated according to claim 4, it is characterized in that: described radio network gateway module is provided with the 2nd WIFI communication module and wireless sensor network master station module;
Described the 2nd WIFI communication module is used for the radio network gateway module and communicates by letter with a WIFI communication module;
Described wireless sensor network master station module is used for radio network gateway module and pulse width modulation control slave module communication; The wireless sensor network master station module is provided with second data processing module, and second data processing module is connected with serial transceiver module, wireless sensor network main website protocol stack module and second data memory module;
Described serial transceiver module is used for wireless sensor network master station module and the 2nd WIFI communication module serial communication;
Described wireless sensor network main website protocol stack module is used for radio network gateway module and pulse width modulation control slave module communication;
Described second data memory module is used to deposit in checking and the legal control command that second data processing module is sent into; Deposit the response message 2 that second data memory module is sent in;
Second data processing module receives the control command that the serial transceiver module imports into, and the legitimacy of verification setting parameter is sent to wireless sensor network main website protocol stack module; Receive the response message 1 that wireless network sensor main website protocol stack module is sent, generate response message 2 and send to the serial transceiver module.
6. the system with the output of intelligent terminal control impuls width modulated according to claim 5 is characterized in that: described pulse width modulation control slave module is provided with wireless sensor network substation module and pulse width modulation output module;
Described wireless sensor network substation module is provided with the 3rd data processing module, and the 3rd data processing module is connected with wireless sensor network substation protocol stack module and the 3rd data memory module;
Described wireless sensor network substation protocol stack module is used to receive checking and the legal control command that wireless sensor network main website protocol stack module sends, and sends into the 3rd data processing module; Receive response message 1 from the 3rd data processing module, send to wireless sensor network main website protocol stack module;
Described the 3rd data processing module receives checking and the legal control command that wireless sensor network substation protocol stack module sends, and sends into the pulse width modulation output module, sends into the storage of the 3rd data memory module; Generate response message 1, send to wireless sensor network substation protocol stack module;
Described the 3rd data memory module is used to store checking and the legal control command that the 3rd data processing module is sent into, the address of storage pulse width modulated control slave module, the device type of controlled device;
Described pulse width modulation output module is used to produce pulse width modulation analog signal and output.
7. the system with the output of intelligent terminal control impuls width modulated according to claim 6, it is characterized in that: during described system power-down rebooting with the output of intelligent terminal control impuls width modulated, second data processing module extracts checking and legal control command from second memory module, send to pulse width modulation control slave module by wireless sensor network main website protocol stack module, second data processing module extracts response message 2, sends to the 2nd WIFI communication module by the serial transceiver module; The 3rd data processing module reads the output valve that slave is controlled in current pulse width modulation from the 3rd memory, sends to the pulse width modulation output module.
8. the system with the output of intelligent terminal control impuls width modulated according to claim 1, it is characterized in that: be provided with general WIFI routing module between described intelligent control module and the radio network gateway module, or/and between described radio network gateway module and the PWM control slave module relaying forwarding module is set;
Described general WIFI routing module is used to receive the control command that intelligent control module sends, and the control command that intelligent control module sends is transmitted to the radio network gateway module;
Described relaying is transmitted the transmission range that mould relaying forwarding module is used to expand radio network gateway module and PWM control slave module.
9. device with intelligent terminal control impuls width modulated output, it is characterized in that: the described device of exporting with intelligent terminal control impuls width modulated is provided with smart mobile phone, radio network gateway controller, pulse width modulation from machine controller; Smart mobile phone is connected through the WIFI network with the radio network gateway controller, and the radio network gateway controller forms through wireless sensor network from machine controller with pulse width modulation and is connected; Described smart mobile phone is handheld device, the computer terminal of linking the Internet or PC; Described radio network gateway controller is provided with second processor, second processor is connected with the first processor and first controller module, the first processor and second processor are used for setting up the WIFI network between smart mobile phone and the radio network gateway controller and are connected, receive the control command that smart mobile phone sends, first controller module is used for control command is sent to pulse width modulation from machine controller; Described pulse width modulation is provided with second controller module of communicating by letter with first controller module from machine controller, and second controller module is connected with the modulation circuit of pulse width modulation through data/address bus; The modulation circuit of described pulse width modulation is provided with the pulse width modulation drive circuit, and the pulse width modulation drive circuit is connected with N passage metal-oxide layer-semiconductor-field and imitates modulation circuit.
10. the device with the output of intelligent terminal control impuls width modulated according to claim 9, it is characterized in that: described pulse width modulation is 1 to 255 from machine controller.
11. the device with the output of intelligent terminal control impuls width modulated according to claim 10 is characterized in that: described smart mobile phone adopts Sony Ericsson LT18I; First processor adopts CC3000, the second processor adopting MSP430, and first controller module adopts VT-CC2530PA-Z1, and CC3000 is connected with MSP430 by the SPI communication bus, and MSP430 is connected with VT-CC2530PA-Z by universal serial bus; Second controller module adopts VT-CC2530-Z1, and the pulse width modulation drive circuit adopts the triode push-pull circuit, and modulation circuit employing N passage metal-oxide layer-semiconductor-field-effect transistor is imitated in N passage metal-oxide layer-semiconductor-field.
12. the device with the output of intelligent terminal control impuls width modulated according to claim 11, it is characterized in that: be provided with general WIFI router between described smart mobile phone and the radio network gateway controller, or/and described radio network gateway controller and PWM are from being provided with the relaying transmitting controller between the machine controller.
CN201310149218.9A 2013-04-26 2013-04-26 System and device for controlling pulse width modulation (PWM) output by intelligent terminal Expired - Fee Related CN103219972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310149218.9A CN103219972B (en) 2013-04-26 2013-04-26 System and device for controlling pulse width modulation (PWM) output by intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310149218.9A CN103219972B (en) 2013-04-26 2013-04-26 System and device for controlling pulse width modulation (PWM) output by intelligent terminal

Publications (2)

Publication Number Publication Date
CN103219972A true CN103219972A (en) 2013-07-24
CN103219972B CN103219972B (en) 2014-08-20

Family

ID=48817517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310149218.9A Expired - Fee Related CN103219972B (en) 2013-04-26 2013-04-26 System and device for controlling pulse width modulation (PWM) output by intelligent terminal

Country Status (1)

Country Link
CN (1) CN103219972B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954143A (en) * 2015-06-29 2015-09-30 江苏龙芯梦兰信息安全技术有限公司 Novel low-cost network physical on-off control circuit topology
CN105005241A (en) * 2015-07-08 2015-10-28 唐文雄 Multi-point touch control system and device based on intelligent terminal
CN106487988A (en) * 2015-08-25 2017-03-08 中兴通讯股份有限公司 A kind of method and system realizing terminal control
WO2017128445A1 (en) * 2016-01-31 2017-08-03 冯旋宇 Method and system for controlling illumination of led lamp
CN111800203A (en) * 2020-07-14 2020-10-20 南通西塔自动化科技有限公司 Single-bus communication remote I/O implementation method and system based on PWM
CN111830910A (en) * 2020-07-14 2020-10-27 南通西塔自动化科技有限公司 Method and system for realizing multi-axis synchronous motion controller based on PWM
CN115955428A (en) * 2022-12-30 2023-04-11 上海天旦网络科技发展有限公司 Cloud network data packet cutting method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827479A (en) * 2010-05-10 2010-09-08 杭州奥能照明电器有限公司 Wireless control system for dimming light-emitting diode
CN201690650U (en) * 2010-05-10 2010-12-29 杭州奥能照明电器有限公司 Wireless control system used for LED dimming
CN102905434A (en) * 2012-10-16 2013-01-30 东莞理工学院 Intelligent remote wireless road lamp monitoring system and method
CN202841622U (en) * 2012-09-20 2013-03-27 浙江百士迪科技有限公司 Wireless LED street lamp remote control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827479A (en) * 2010-05-10 2010-09-08 杭州奥能照明电器有限公司 Wireless control system for dimming light-emitting diode
CN201690650U (en) * 2010-05-10 2010-12-29 杭州奥能照明电器有限公司 Wireless control system used for LED dimming
CN202841622U (en) * 2012-09-20 2013-03-27 浙江百士迪科技有限公司 Wireless LED street lamp remote control device
CN102905434A (en) * 2012-10-16 2013-01-30 东莞理工学院 Intelligent remote wireless road lamp monitoring system and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954143A (en) * 2015-06-29 2015-09-30 江苏龙芯梦兰信息安全技术有限公司 Novel low-cost network physical on-off control circuit topology
CN104954143B (en) * 2015-06-29 2018-10-09 江苏龙芯梦兰信息安全技术有限公司 A kind of network physical on-off control circuit topology of novel low-cost
CN105005241A (en) * 2015-07-08 2015-10-28 唐文雄 Multi-point touch control system and device based on intelligent terminal
CN106487988A (en) * 2015-08-25 2017-03-08 中兴通讯股份有限公司 A kind of method and system realizing terminal control
WO2017128445A1 (en) * 2016-01-31 2017-08-03 冯旋宇 Method and system for controlling illumination of led lamp
CN111800203A (en) * 2020-07-14 2020-10-20 南通西塔自动化科技有限公司 Single-bus communication remote I/O implementation method and system based on PWM
CN111830910A (en) * 2020-07-14 2020-10-27 南通西塔自动化科技有限公司 Method and system for realizing multi-axis synchronous motion controller based on PWM
CN115955428A (en) * 2022-12-30 2023-04-11 上海天旦网络科技发展有限公司 Cloud network data packet cutting method and system

Also Published As

Publication number Publication date
CN103219972B (en) 2014-08-20

Similar Documents

Publication Publication Date Title
CN103219972B (en) System and device for controlling pulse width modulation (PWM) output by intelligent terminal
CN203178784U (en) Intelligent household control system based on Internet of Things
CN104749996B (en) A kind of ZigBee remote controlers long-range control method
CN104656607A (en) Stage multimachine wireless coordination system
CN104378752A (en) Network roaming system and method
CN110199535A (en) The blue-tooth device of multiple terminals can be connected simultaneously
CN203167301U (en) Gatewayconverting WiFi to ZigBee
CN205080728U (en) Electric parameter acquisition of intelligence and control system based on cloud platform
CN203104865U (en) WIFI lighting control system
CN106888281A (en) A kind of things-internet gateway and application towards ZigBee radio sensing networks and IPv4 networks
CN105005241A (en) Multi-point touch control system and device based on intelligent terminal
CN205921804U (en) Smart lighting control system
CN105517286B (en) A kind of intelligence WIFI lamp control system and its control method
CN107132785A (en) A kind of agricultural robot wireless remote-control system
CN202817898U (en) Power distribution terminal based on EtherCAT industrial Ethernet
CN105357111A (en) ZigBee and KNX protocol conversion gateway
CN204887008U (en) High -power local lan switch of intelligence restriction network speed
CN104883306A (en) Router expansion intelligent antenna
CN110248394A (en) A kind of quick networking method of WiFi equipment based on Bluetooth
CN207571882U (en) A kind of infrared forwarding device
CN207124639U (en) A kind of intelligent lamp and intelligent domestic system
CN205384459U (en) Intelligence house cloud processing platform based on thing networking
CN204614189U (en) A kind of small intelligent electric appliance control box
CN205665542U (en) Multimedia central controller
CN204515370U (en) Based on the intelligent building air-conditioner control system of field bus technique

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140820