CN112462620A - Intelligent data acquisition system and method - Google Patents

Intelligent data acquisition system and method Download PDF

Info

Publication number
CN112462620A
CN112462620A CN202011298542.3A CN202011298542A CN112462620A CN 112462620 A CN112462620 A CN 112462620A CN 202011298542 A CN202011298542 A CN 202011298542A CN 112462620 A CN112462620 A CN 112462620A
Authority
CN
China
Prior art keywords
equipment
data acquisition
intelligent
module
sensor
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
Application number
CN202011298542.3A
Other languages
Chinese (zh)
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.)
Ketong Industrial Technology Shenzhen Co ltd
Original Assignee
Ketong Industrial Technology Shenzhen Co ltd
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 Ketong Industrial Technology Shenzhen Co ltd filed Critical Ketong Industrial Technology Shenzhen Co ltd
Priority to CN202011298542.3A priority Critical patent/CN112462620A/en
Publication of CN112462620A publication Critical patent/CN112462620A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Alarm Systems (AREA)

Abstract

The invention discloses an intelligent data acquisition system and a method, belonging to the technical field of communication, wherein the intelligent data acquisition system comprises: the hardware support module is used for collecting environmental information and user instructions by using a sensor; the input state reading module reads the environmental information collected by the sensor, judges whether the sensor gives an alarm or not according to the universal input and output value of the sensor and judges the source of the alarm; the intelligent wired gateway processes the user instruction, converts the user instruction into an equipment instruction of the equipment, and the instruction matching module receives the equipment instruction, matches the equipment instruction with the equipment and controls the relay to control the equipment; the Flash storage module stores and modifies the address name and baud rate of the equipment; and the Modbus protocol module is used for providing a core intelligent gateway for the intelligent data acquisition system and providing an interaction function between the intelligent gateway and the intelligent data acquisition system. The application of the invention realizes intelligent control on home furnishing, gives an alarm on the danger of the home furnishing in time and ensures the safety.

Description

Intelligent data acquisition system and method
Technical Field
The invention relates to the technical field of communication, in particular to an intelligent data acquisition system and method.
Background
With the development of artificial intelligence technology, its application has penetrated the aspects of people's life. The traditional household appliances can also experience the convenience brought by artificial intelligence, the mode that the household appliances are controlled only through manual keys is eliminated, and the development direction of the intelligent home is formed. With the improvement of the living standard of users, the safety of family living is becoming an object of attention. The household gas may leak, which is easy to cause poisoning or fire accidents; the power consumption of various household appliances is gradually increased, and when a user wire is aged, a fire disaster is easy to happen; in addition, the problems of formaldehyde residue and domestic water leakage faced by home decoration also can endanger the life health of people and bring inconvenience to the life of people. Therefore, the early warning is timely carried out in the face of possible harm factors in families, and the complete protection preparation is especially important for the life and property safety of users.
Disclosure of Invention
The invention mainly solves the technical problem of providing an intelligent data acquisition system and method, which improve the intelligent degree of the household appliances in the use process, get rid of the household appliance control mode of controlling the household appliances only by keys, and in addition, timely acquire the information of dangerous factors in the family, carry out early warning on possible harm in the family, and avoid causing damage to the life and property safety of users.
In order to achieve the above object, the first technical solution adopted by the present invention is: the intelligent data acquisition system comprises a hardware support module, a data acquisition module and a data processing module, wherein the hardware support module controls equipment through the closing and interruption of a relay, acquires environmental information by using a sensor and completes the input of a user instruction; the input state reading module is used for reading the environmental information acquired by the sensor, judging whether the sensor gives an alarm or not according to the universal input and output value of the sensor, judging the source of the alarm sensor and giving a prompt; the intelligent wired gateway is used for processing the user instruction and converting the user instruction into an equipment instruction of the equipment, and the command matching module is used for receiving the equipment instruction, matching the equipment instruction with the equipment and controlling the relay to control the equipment; the Flash storage module is used for storing and modifying the address name and the baud rate of the equipment; and the Modbus protocol module provides an interactive function between the intelligent gateway and the intelligent data acquisition system for the intelligent data acquisition system.
In order to achieve the above object, the second technical solution adopted by the present invention is: the intelligent data acquisition method comprises a user instruction acquisition step, wherein a hardware support module is used for acquiring a user instruction, the user instruction is identified and processed by an intelligent wired gateway and then is matched with equipment through a command matching module, and the command matching module controls a relay to operate the equipment; and an alarm information acquisition step, wherein the sensor is used for detecting the surrounding environment information and is connected with the universal input/output port, and the input state reading module is used for reading the sensor value of the universal input/output port, judging whether the sensor gives an alarm or not and judging the source of the alarm.
The invention has the beneficial effects that: when the method is applied, the collection and execution of the household appliances by the user are realized, the intellectualization of the household appliances is realized, the mode that the household appliances can only be controlled by keys is eliminated, in addition, the potential danger factor information in the family is collected, and the early warning of various possible dangers in the family is realized.
Drawings
FIG. 1 is a schematic diagram of the configuration of an intelligent data acquisition system of the present invention;
FIG. 2 is a schematic flow chart of the operation of the input status response module of the present invention;
FIG. 3 is a schematic flow chart of the operation of the command matching module of the present invention;
FIG. 4 is a schematic diagram of the working flow of the Flash storage module of the present invention;
FIG. 5 is a schematic flow chart diagram of the intelligent data acquisition method of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Fig. 1 shows a schematic structural diagram of an intelligent data acquisition system of the present invention, and in this embodiment, the intelligent data acquisition system of the present invention includes a hardware support module, which controls a device by closing and interrupting a relay, acquires environmental information by using a sensor, and completes input of a user instruction. The hardware support module also bears the basic function of serial communication with the equipment.
The intelligent data acquisition system is communicated with an external sensor and a relay through serial port communication, related information acquired by the sensor is timely transmitted to the hardware support module through the serial port communication, and then the intelligent data acquisition system processes and judges the acquired information of the sensor; in addition, when the hardware equipment receives an action control command for the household equipment, the hardware equipment establishes contact with a control relay of the household equipment through serial port communication, and the household equipment is controlled through closing or interrupting of the control relay.
In one example of the present invention, the sensors include smoke sensors, gas sensors, and water leakage sensors, among others. The smoke sensor transmits a sensing result by measuring whether smoke exists in a measuring space, the intelligent home system receives the sensing result of the smoke sensor, digitalizes a sensing structure and the retrograde motion and judges the sensing structure and the retrograde motion, and if the sensing value reaches a risk value, the intelligent data acquisition system gives an alarm, and timely informs a user of the reason of the alarm and the position where the alarm is generated, so that possible accidents are avoided.
In one embodiment of the invention, the universal voice collector and key input accomplish multiple ways of command collection for user instructions. The user sends out voice or presses keys on the remote controller, the hardware support module sends the user instruction to the intelligent gateway after collecting the user instruction, and the intelligent gateway identifies and processes the user instruction to realize the action control of the household equipment.
In this particular embodiment, the intelligent data acquisition system of the present invention includes an input status response module. The input state response module is connected with the sensor through the general input/output port, acquires the sensor response and checks the level state of the general input/output port GPIO, and if the level state of the general input/output port GPIO corresponding to the sensor is a high level, the input state response module reads the level state information and then sends a control alarm to send an alarm prompt. For example, the general purpose input/output port GPIO value corresponding to the smoke sensor is in a high level state, and the input state response module controls the alarm to alarm smoke; the general purpose type input and output port GPIO values corresponding to the gas sensors such as gas, formaldehyde and the like are in a high level state, and the input state response module controls the alarm to alarm the gas; the general purpose type input/output port GPIO value corresponding to the humidity sensor is in a high level state, and the input state response module controls the alarm to alarm for water leakage.
In an example of the invention, when the intelligent data acquisition system starts to operate, the input state response module initializes the general purpose input/output port GPIO and zeroes the sensor sensing value of the general purpose input/output port GPIO. The work flow of the input state response module is shown in fig. 2.
In the embodiment of the intelligent data acquisition system of the present invention shown in fig. 1, the intelligent data acquisition system of the present invention comprises a command matching module. Firstly, the intelligent wired gateway processes a user instruction and converts the user instruction into an equipment instruction of equipment, and after the instruction matching module is matched with the equipment, the instruction matching module receives the equipment instruction and controls the relay to control the equipment;
in one example of the invention, a workflow diagram for the command matching module is shown in FIG. 3. After the initialization of the intelligent data acquisition system is completed, the command matching module matches with the equipment according to the stored equipment ID and the baud rate of data transmission, and after the matching is completed, command monitoring is performed. And after receiving the command to the equipment, judging the equipment command according to different command types. Corresponding device control actions are performed.
In the embodiment of the intelligent data acquisition system shown in fig. 1, the intelligent data acquisition system of the present invention includes a Flash memory module, wherein the address of the Flash memory module memory device and the baud rate of data transmission provide basic device address data during the initialization process of the intelligent data acquisition system of the present invention, so that the command matching module matches with the device.
In one embodiment of the present invention, the modification of the device address and the baud rate is performed in the Flash module, wherein the working flow of the Flash module is as shown in fig. 4. During the modification process of the address and the baud rate of the equipment, the Flash module is initialized firstly, then the Flash module is unlocked, a user can write in the Flash module, the ID and the baud rate of the equipment are modified, and after the writing is successful, the Flash module is locked, and the written information is locked and stored.
In the embodiment of the intelligent data acquisition system shown in fig. 1, the intelligent data acquisition system of the present invention includes a Modbus protocol module, which provides the intelligent data acquisition system with the interaction function between the intelligent gateway and the intelligent data acquisition system, and implements communication between modules
In an embodiment of the present invention, fig. 5 is a schematic flow chart of the intelligent data acquisition method of the present invention, wherein the steps of the intelligent data acquisition method of the present invention include:
step S501: and (5) initializing.
In an embodiment of the present invention, initialization operations are performed on the universal type i/o port, the input state reading module, the Flash storage module, and the Modbus protocol module. The universal input/output port is connected with the sensor, a corresponding input/output port level state value is generated according to the sensing condition of the sensor, and the level state value of the universal input/output port is reset to zero in the initialization step. The input state reading module reads the level state value of the universal input/output port, alarms according to the level state value, and returns the working state of the input state reading module to the original position in the initialization process. The Flash module stores the original address of the equipment and the baud rate information of the communication interface, and the Modbus protocol module reads the equipment address and the baud rate stored in the Flash module to complete self initialization operation in the initialization process.
Step S502: and (5) information acquisition.
In one embodiment of the present invention, the information collection is performed by a hardware support module, which includes collecting user commands, and the collection of the use commands is completed by inputting keys and words in the hardware support module. In addition, as for the environmental information of the family, the invention adopts various sensors to collect the environmental conditions of the family, including collecting the multiple conditions of smoke farmers in the family of the smoke sensor, and detecting whether the fire or the dense smoke condition occurs; the humidity sensor detects whether water leakage occurs indoors, and the gas sensor detects whether toxic odor residues such as formaldehyde exist indoors.
Step S503: and command matching and judging.
In one embodiment of the present invention, after receiving a command sent by a user, the intelligent data gateway identifies and analyzes the user command, determines whether the user command is valid, and converts the user command into a device command for communicating with a device, such as a device command using a Modbus protocol. In one example of the present invention, the Modbus protocol module provides an interactive function between the system and the module, that is, data or command transmission is performed between the system or the module through the Modbus protocol. And when the voice command or the key command of the user is analyzed, identified and processed through the command of the intelligent gateway system, the user command is converted into a Modbus protocol command. In the initialization process, the device address and the bit rate information are matched with the device through the original device address and the bit rate information stored in the Flash storage module, then the command matching module starts to enter a command monitoring stage to monitor a Modbus protocol command, after a user command is monitored, the command matching module judges the type of the monitored Modbus protocol command and respectively adopts different types of functions to perform command processing, such as a Read Coils function, a Read DiscreteInputs function, a Write Single Coil function and the like. And matching the user instruction with the processing function, and performing different processing processes.
In an example of the present invention, after the sensor in the hardware support module collects the home environment information, the input state corresponding module is connected to the sensor through the universal input/output port, and determines the level state of the universal input/output port, where the universal input/output port may be connected to a plurality of sensors. When the level state of the general input/output port GPIO is judged to be high level, the situation that the acquired information of the sensor reaches the alarm level at the moment is shown, then the source of the sensing weapon which enables the level state of the general input/output port GPIO to be high level is judged, and after the source is determined, the alarm prompt is sent to the user. For example, when the smoke sensor detects that smoke is generated, the level state of the general input/output port GPIO is displayed to be high, the input state response module judges that the level state is high, and the smoke sensor sends out a signal, so that a fire alarm is sent out to remind a user of carrying out related fire prevention and measures.
Step S504: and command execution and early warning steps.
In an embodiment of the present invention, after the command determining module matches the user command, the relay in the hardware support module is controlled to operate, so as to control the operation of the corresponding device. And after the input state response module judges that the level state of the general input/output port GPIO is displayed to be high, and after the hospital of the alarm sensor is determined, a prompt is sent to a user according to the alarm type to prompt the user to carry out corresponding preventive measures.
When the method is applied, the collection and execution of the household appliances by the user are realized, the intellectualization of the household appliances is realized, the mode that the household appliances can only be controlled by keys is eliminated, in addition, the potential danger factor information in the family is collected, and the early warning of various possible dangers in the family is realized.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structural changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. An intelligent data acquisition system based on an intelligent wired gateway, comprising:
the hardware support module is used for realizing the control of the equipment through the closing or interruption of the relay, collecting the environmental information by using the sensor and finishing the input of a user instruction;
the input state reading module is used for reading a sensing value of the environmental information acquired by the sensor, judging whether the sensor gives an alarm or not according to the level state of a universal input/output port of the sensor, judging the source of the alarm and giving a prompt to a user;
the intelligent wired gateway identifies and analyzes the user instruction and converts the user instruction into an equipment instruction of equipment, and after the intelligent wired gateway is matched with the equipment, the intelligent wired gateway receives the equipment instruction, performs corresponding function method processing according to the type of the equipment instruction and controls the relay to control the equipment;
the Flash storage module is used for storing the address name and the baud rate of the equipment and modifying the address name and the baud rate of the equipment; and
and the Modbus protocol module realizes information transmission inside the intelligent data acquisition system and interaction between the Modbus protocol module and the intelligent gateway by utilizing a Mosbus protocol mode.
2. The intelligent data acquisition system as recited in claim 1, wherein the sensors include, but are not limited to, smoke sensors, gas sensors, and humidity sensors.
3. The intelligent data acquisition system as claimed in claim 1, wherein the user instructions are input in a manner including voice input and manual key input.
4. The intelligent data acquisition system according to claim 1, wherein the sensor is connected to a general purpose input/output port, and the input state reading module obtains the sensing value of the sensor according to a level state of the general purpose input/output port.
5. The intelligent data acquisition system as claimed in claim 1, wherein when receiving a modification to the address name and the baud rate of the device, the Flash memory module unlocks, modifies, locks and saves the address name and the baud rate of the device.
6. The intelligent data acquisition system as claimed in claim 1, wherein the intelligent wired gateway identifies and analyzes the user command, converts the user command into the Modbus protocol command of the intelligent data acquisition system, and controls the operation of the equipment.
7. An intelligent data acquisition method is characterized by comprising the following steps:
a user instruction acquisition step, wherein a hardware support module is used for acquiring the user instruction, the user instruction is identified and processed by an intelligent wired gateway and then is matched with equipment through a command matching module, and the command matching module controls a relay to operate the equipment;
and an alarm information acquisition step of detecting surrounding environment information through a sensor, wherein the sensor is connected with a universal input/output port, and an input state reading module reads the level state of the universal input/output port of the sensor, judges whether the sensor gives an alarm or not, judges an alarm source and sends a prompt.
8. The intelligent data acquisition method of claim 6, further comprising an initialization step of performing initialization operations on the universal input/output port, the input status reading module, the Flash storage module and the Modbus protocol module.
9. The intelligent data acquisition method according to claim 6, further comprising a device address modification step, wherein when an instruction for modifying the address name and the baud rate of the device is received, the Flash memory module performs processes of unlocking, modifying the address name and the baud rate of the device by a write operation, and locking and saving.
CN202011298542.3A 2020-11-18 2020-11-18 Intelligent data acquisition system and method Pending CN112462620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011298542.3A CN112462620A (en) 2020-11-18 2020-11-18 Intelligent data acquisition system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011298542.3A CN112462620A (en) 2020-11-18 2020-11-18 Intelligent data acquisition system and method

Publications (1)

Publication Number Publication Date
CN112462620A true CN112462620A (en) 2021-03-09

Family

ID=74836869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011298542.3A Pending CN112462620A (en) 2020-11-18 2020-11-18 Intelligent data acquisition system and method

Country Status (1)

Country Link
CN (1) CN112462620A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826427A (en) * 2023-01-31 2023-03-21 黑龙江八一农垦大学 Man-machine interaction system applied to smart home

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536401A (en) * 2014-12-11 2015-04-22 华侨大学 Intelligent home control system based on GSM
CN108427318A (en) * 2018-06-11 2018-08-21 黄河科技学院 A kind of Intelligent home monitoring system based on Internet of Things
CN108833231A (en) * 2018-06-27 2018-11-16 无锡南理工科技发展有限公司 A kind of household security protection device and its application method based on Internet of Things
CN208589996U (en) * 2018-08-13 2019-03-08 三峡大学 Intelligent home control system based on radio network technique
CN111243592A (en) * 2020-03-10 2020-06-05 科通工业技术(深圳)有限公司 Modbus voice intelligent switch control system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536401A (en) * 2014-12-11 2015-04-22 华侨大学 Intelligent home control system based on GSM
CN108427318A (en) * 2018-06-11 2018-08-21 黄河科技学院 A kind of Intelligent home monitoring system based on Internet of Things
CN108833231A (en) * 2018-06-27 2018-11-16 无锡南理工科技发展有限公司 A kind of household security protection device and its application method based on Internet of Things
CN208589996U (en) * 2018-08-13 2019-03-08 三峡大学 Intelligent home control system based on radio network technique
CN111243592A (en) * 2020-03-10 2020-06-05 科通工业技术(深圳)有限公司 Modbus voice intelligent switch control system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826427A (en) * 2023-01-31 2023-03-21 黑龙江八一农垦大学 Man-machine interaction system applied to smart home
CN115826427B (en) * 2023-01-31 2024-02-09 黑龙江八一农垦大学 Man-machine interaction system applied to intelligent home

Similar Documents

Publication Publication Date Title
CN205388698U (en) With aid of mutual smart home systems of automation of server
CN110512396A (en) A kind of control method and clothes treatment device of clothes treatment device
CN112462620A (en) Intelligent data acquisition system and method
CN107481377A (en) A kind of visual intelligent lock system based on radio communication
CN106297167A (en) A kind of intelligent domestic system
CN105843052A (en) Internet of things and STM32-based smart home system
CN107861515A (en) A kind of wired home robot control system and its control method
CN109188931A (en) A kind of intelligent home remote monitoring system and its application method
CN202777561U (en) Automated fire fighting system for high-rise buildings
CN205644077U (en) Smart home systems based on thing networking and STM32
CN206946252U (en) A kind of smart home interactive system based on human body communication
CN210166922U (en) Intelligent alarm control device and system
CN107145076A (en) Intelligent household security control system
CN105807693A (en) Intelligent video robot control system and control method
CN110597073A (en) Home cloud platform system with Ai prejudgment performance
CN111612989B (en) Intelligent collection control method, system and device for clothes to be washed and storage medium
CN206946296U (en) A kind of smart home interactive terminal
CN211906467U (en) STM32F 103-based fingerprint identification security system
CN208900017U (en) A kind of intelligent type household garage door controller
CN109882024B (en) Intelligent safe cabinet controller based on Internet of things and control method thereof
CN111583571A (en) STM32F 103-based fingerprint identification security system
CN213683666U (en) Novel multi-functional automatic door control system
Dhiman et al. Home computerization for the elderly and disabled with internet of things
CN104793014A (en) Behavior detection system and method based on distributed-type acceleration sensors
CN205977001U (en) Intelligent antitheft door

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