CN107547316A - A kind of intelligent domestic system based on technology of Internet of things - Google Patents

A kind of intelligent domestic system based on technology of Internet of things Download PDF

Info

Publication number
CN107547316A
CN107547316A CN201610484176.8A CN201610484176A CN107547316A CN 107547316 A CN107547316 A CN 107547316A CN 201610484176 A CN201610484176 A CN 201610484176A CN 107547316 A CN107547316 A CN 107547316A
Authority
CN
China
Prior art keywords
module
intelligent domestic
sensor
domestic system
technology
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
CN201610484176.8A
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.)
Jiangsu Huayang Mdt Infotech Ltd
Original Assignee
Jiangsu Huayang Mdt Infotech 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 Jiangsu Huayang Mdt Infotech Ltd filed Critical Jiangsu Huayang Mdt Infotech Ltd
Priority to CN201610484176.8A priority Critical patent/CN107547316A/en
Publication of CN107547316A publication Critical patent/CN107547316A/en
Pending legal-status Critical Current

Links

Abstract

The design passes through the analysis to intelligent domestic system, it is determined that general frame designs.The characteristics of for intelligent domestic system and the basic function to be realized, analyze the basic structure of the intelligent domestic appliance controller, have then carried out detailed design to modules circuit.Finally utilize infrared sensor of the human body (infrared sensor), gsm module, temperature sensor (temperature transmitter), photoelectric sensor (photoelectric sensor); Smoke Sensor (MQ 2); relay etc.; combined circuit is assembled into system; realize the remote monitoring in house; and protection staff, the safety of object, facilitate user to understand at any time within the most short time and grasp house situation.

Description

A kind of intelligent domestic system based on technology of Internet of things
Technical field
A kind of intelligent domestic system based on technology of Internet of things is to be related to field of computer.
Background technology
" smart home ", also known as intelligent dwelling, it is by using advanced computer technology, the network communications technology and comprehensive wiring technology, the home services being made up of household safe protection system, network service system and domestic automation system etc. and integrated management system are established, so as to realize comprehensive, safe, comfortable living environment and convenient communication network home dwelling.Each subsystem relevant with family life is organically combined unified management, makes life comfortable, safe and efficient, there is good development prospect.With the development of science and technology with the raising of living standard, requirement of the people to life staying idle at home environment also more and more higher.Household is no longer the place of daily life, while is also leisure, the place of amusement.At present, high-tech technology has been incorporated among intelligent building, and intelligent concept is also continuously available in-depth and renewal.The Ministry of Construction is required according to different consumer demands, promotes household to digitize, building intellectualization, the development of product judicial convenience, and following smart home market potential is huge.
Smart home is a multi-functional system, and it includes visualization intercommunication, the safety precaution of household internal, household electrical appliances remote monitoring, monitoring remote video, distance medical diagnosis and nursing system, line education systems, family's movie star's system etc..The elementary object of smart home is that the devices such as various information in family related communication equipment, household electrical appliance and domestic security are connected on an intellectualizing system to be concentrated or strange land monitoring, control and domestic affairs management, and keeps the harmony of these home amenities and residential environment with coordinating.With the application demand of the mankind and the development of housing intelligent, intelligent domestic system will possess more rich content, and system also becomes increasingly complex, and function is also more and more complete.
In Vehicles Collected from Market, the market share of the smart home compared to traditional household, shared by building material industry or very little.Many enterprises are development projects and channel building Parallel Development in current smart home market, in occupation of considerable position, these projects are also often that the relatively high-end villa of positioning, compound building and big-room and luxury housing project top grade Residential Area are in the majority for wherein project cooperation.With the rapid development of information technology and Internet technologies, smart home technology is greatly lowered in cost of implementation, while people pursue life intellectuality and comfortableization with never stopping, if technology is more ripe, cost is cheaper, function is more perfect, and its market demand will be very huge.
The content of the invention
The several module compositions of this intelligent domestic system point:GSM remote control modules, temperature, smoke data acquisition module have the coded lock anti-theft feature module of sound prompt function, and prevention child falls down from the building module.Each hardware module is referred to as equipment in embedded development, each equipment want operation will in linux kernel programming apparatus driver.So-called device driver is exactly control and the software of managing hardware device data transmit-receive, and it is the bridge that application program is linked up with hardware device.Device driver is mainly responsible for reading and writing data, parameter configuration and the interrupt processing of hardware device in essence.Device driver is a part for operating system, is normally operated in inner nuclear layer.Application layer is called by system enters inner nuclear layer, inner nuclear layer interface function according to corresponding to system call number come call driver.
The equipment used in the system design mainly explains character device and its related content here all referring to char device driver.Character device refer to those every time can only byte read-write data equipment, the a certain data being unable in random read take device memory, the groundwork completed in its driver is initialization, addition and deletes cdev structures, application and release device number, and handling function in filling file_operations structures, and realize the important functions such as the read () in file_operations structures, write (), ioct1 ().
1.GSM The realization of remote control module :
mini2440 The configuration and realization of serial ports ;Mainly include two parts in practical programs design process, one is the hardware drive program of serial ports, the second is the application program in file system.S3C2440 has carried 3 serial ports UART0,1,2 in itself, wherein UART0 has done RS232 level conversions, and the flat point of UART1, UART2 output is Transistor-Transistor Logic level, but needs to use UART0 from NFS activation systems, UART2 is used when we develop, centre is connected by 232 circuits with gsm module.The kernel source code of development board has carried serial ports driver, and in exploitation, we need not write driving ourselves.
In Linux, all things can regard file as, when application layer wants to use serial ports firstly the need of opening serial ports:
int fd;
fd=open(“/dev/ttySAC1”,O_RDWR);
if(-1==fd)
{
/ * can not open the * of serial ports two/
Perror (" prompting mistakes!”);
}
Open after serial ports can't when serial ports normal work, it is necessary to correctly set serial ports to include setting the setting of baud rate, effect position and stop position, it is mainly each member value for setting struct termios structures to set serial ports.
Struct termios
{
unsigned short c_iflag;// input pattern mark
unsigned short c_oflag;// output mode mark
unsigned short c_cflag;// control model mark
unsigned short c_lflag;// local mode mark
unsigned char c_line;// control protocol
unsigned char c_cc[NCC];// control model character
};
Almost the operation to serial ports is realized by structure struct termios and several functions, most important of which is that tcgetattr () and tcsetattr (), firm start program obtains the current setting of equipment by tcgetattr () function, then these settings are changed, finally setting is come into force with tcsetattr ().
When using serial ports, Configuration of baud rate is into b9600, no parity check position, 8 data bit and a stop position.After setting serial ports, it is possible to by serial ports as file read-write.
Send data:
char buffer[1024];
int Length=1024;
int nbyte;
nbyte = write(fd,buffer,Length);
Receive data:
char buffer[1024];
int Len=1024;
int readbyte= read(fd,buff,Len)。
Short message is sent by serial ports Sending short message by GSM message module mainly has two kinds of forms:English short message and Chinese PDU short messages.Here is to send the transmitting-receiving process of English short message.
Hair:AT // shaken hands with AT35 Receive:OK Hair:AT+CMGF=1 // selection sends the form of short message Receive:OK Hair:AT+CMGS=15215029882 // the cell-phone number to be sent Receive:> Hair:data→ //test is transmission content, → accorded with to send(Ctrl+z, hexadecimal 0x1A) Receive:+CMGS: 54 OK
The serial ports of controller is connected with the max232 serial ports of connection gsm module, and AT command informations are returned to development board at once after gsm module receives information, thus system is detecting whether to receive short message always.
2. The realization of temperature collect module:
Processor by single bus DQ from logic high draw be logic low when, start one and write sequential, all sequential of writing must be completed in the μ s of 60 μ s ~ 12, and two continuous to write the recovery time that 1 μ s are at least needed between sequential, and during " 0 " whole sequential is write, bus always remains as logic low, and during one writing sequential, it is logic low that processor, which first draws single bus, discharges bus in 15 μ s after sequential starts, writes " 0 " and one writing sequential.
The primary function for driving layer to be write in data acquisition is as follows:
1:static int ds18b20_init(void);// data initialization
2:static unsigned char write_byte(void);// to DS18B20 read data
3:static unsigned char read_byte(void);// write data toward DS18B20
4:static ssize_t ds18b20_read(struct file *file,char __user *buf,size_t count,loff_t *f_pos);// temperature value is read, then return to client layer using copy_to_user functions.
For ease of debugging, the drive module does not have kernel-driven mode to configure, but configures in a modular way, so must be by running insmod dr18b20.ko order load-on modules when use every time.
Corresponding device file is /dev/ds18b20 to temperature sensor in embedded systems, system call function int fd_ds18b20=open ("/dev/ds18b20 " first, O_RDWR the sensor device in embedded device) is opened, open equipment and unsuccessfully return to -1, later system function can is operated using fd_ds18b20 to equipment.The function for closing digital temperature sensor is close (fd_ds18b20).
System is stored in result, finally shown by calling read (fd_ds18b20 ,s &result, sizeof (result)) to read temperature value.
3.The realization of Smoke Sensor module :
MQ-2 gas sensors can detect a variety of imflammable gas, and when imflammable gas be present in sensor local environment, the electrical conductivity of sensor increases with the increase of combustable gas concentration in air.The change of electrical conductivity can be converted to the output voltage signal corresponding with the gas concentration using simple circuit.The voltage swing exported according to sensor judges the size of imflammable gas concentration in environment.
The output of MQ-2 gas sensors is voltage signal, corresponding magnitude of voltage is converted into corresponding numerical value by processor, S3C2440 has carried the function of A/D conversions, A/D conversion chips corresponding device file "/dev/adc " in embedded systems, system call function int fd_adctest=open ("/dev/adc " first, O_RDWR the A/D conversion equipments in embedded device) are opened, open equipment and unsuccessfully return to -1, later system function can is operated using fd_adctest to equipment.The function for closing Smoke Sensor is close (fd_adctest).

Claims (7)

1. it is mainly characterized by by GSM remote control modules, temperature, smoke data acquisition module a kind of intelligent domestic system based on technology of Internet of things, there is the coded lock anti-theft feature module of sound prompt function, prevention child falls down from the building module.
2. each hardware module in embedded development be referred to as equipment, each equipment want operation will in linux kernel programming apparatus driver.
3. it is the telephone number that system preserves user first according to the GSM remote control module major functions in claim 1, when user receives message, it is first determined whether it is that intelligent domestic system have sent message to household electrical appliances, if the control command that the owner of system sends, system is then parsed to short message, and last controller is controlled to household electrical appliances.
4. it is stored in result, finally shows mainly by calling read (fd_ds18b20 ,s &result, sizeof (result)) to read temperature value according to the temperature in claim 1.
5. it is mainly that the voltage swing of sensor output judges the size of imflammable gas concentration in environment according to smoke data acquisition module in claim 1.
6. detect and send interrupt signal with photoelectric sensor according to the coded lock anti-theft feature module with sound prompt function in claim 1.
7. according to the prevention child in claim 1 fall down from the building module stepper motor open or close window, stepper motor is the opened loop control member stepper motor part that electric impulse signal is changed into angular displacement or displacement of the lines.
CN201610484176.8A 2016-06-28 2016-06-28 A kind of intelligent domestic system based on technology of Internet of things Pending CN107547316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610484176.8A CN107547316A (en) 2016-06-28 2016-06-28 A kind of intelligent domestic system based on technology of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610484176.8A CN107547316A (en) 2016-06-28 2016-06-28 A kind of intelligent domestic system based on technology of Internet of things

Publications (1)

Publication Number Publication Date
CN107547316A true CN107547316A (en) 2018-01-05

Family

ID=60962244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610484176.8A Pending CN107547316A (en) 2016-06-28 2016-06-28 A kind of intelligent domestic system based on technology of Internet of things

Country Status (1)

Country Link
CN (1) CN107547316A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109100942A (en) * 2018-07-17 2018-12-28 云南延奔网络科技有限公司 A kind of smart home control device and control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109100942A (en) * 2018-07-17 2018-12-28 云南延奔网络科技有限公司 A kind of smart home control device and control method

Similar Documents

Publication Publication Date Title
Anwar et al. IOT based smart home security system with alert and door access control using smart phone
CN104317255A (en) Internet-of-things-based intelligent household control system
CN103220356B (en) Remote monitoring device based on embedded web
CN105137952A (en) Intelligent baby carriage system based on Internet of things
CN101986638A (en) Gigabit one-way network isolation device
CN103095703A (en) Method and equipment and system for achieving data interaction between network and serial port
CN101763324B (en) Method for realizing equipment simulating and device thereof
CN107547316A (en) A kind of intelligent domestic system based on technology of Internet of things
CN105809233A (en) Intelligent module card and using method thereof
CN202282863U (en) Remote opening and closing control device of computer
CN101609412A (en) Vehicle-mounted information and entertainment system analog device
Moraes et al. Using the CAN protocol and reconfigurable computing technology for Web-based smart house automation
CN107104866A (en) A kind of intelligent data bus protocol and system
CN101068293B (en) Home long-distance management device
CN208316909U (en) A kind of network scanner device
CN201035497Y (en) Remote computer starting card
CN202615209U (en) Android-controlled intelligent management system
CN102331765A (en) Embedded digital household monitoring system
CN202425051U (en) Remote startup device for computer
He Design and Application of Building Intelligent Integrated Wiring System
CN211786658U (en) Intelligent control device and system for window opener
CN101819713A (en) Intelligent multi-media computer remote-control device
Perera SMS Based Home Appliances Controlling and Monitoring System Using Arduino PCB
CN207133974U (en) A kind of SCM Based portable infrared wifi remote controls
Charumathi et al. Controlling and monitoring of smart home appliances using IoT

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180105