CN210168064U - Family internet of things system based on raspberry group - Google Patents

Family internet of things system based on raspberry group Download PDF

Info

Publication number
CN210168064U
CN210168064U CN201921015375.XU CN201921015375U CN210168064U CN 210168064 U CN210168064 U CN 210168064U CN 201921015375 U CN201921015375 U CN 201921015375U CN 210168064 U CN210168064 U CN 210168064U
Authority
CN
China
Prior art keywords
server
raspberry
module
data
raspberry group
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.)
Active
Application number
CN201921015375.XU
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.)
Dragon Totem Technology Hefei Co ltd
Hangzhou Jiufeng Electronic Technology Co.,Ltd.
Original Assignee
Changzhou University
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 Changzhou University filed Critical Changzhou University
Priority to CN201921015375.XU priority Critical patent/CN210168064U/en
Application granted granted Critical
Publication of CN210168064U publication Critical patent/CN210168064U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The utility model discloses a family internet of things system based on raspberry group mainly is applied to under the low and unstable family network environment of bandwidth, through sensors such as raspberry group, camera, Wi-Fi module and temperature and humidity sensor, human infrared sensor, ultrasonic wave module and constitute family internet of things system. The Wi-Fi module sends the collected sensor data to a cloud server or a local server built with a raspberry group by using an MQTT protocol, data monitoring and control are carried out between a user and the server through a Websocket protocol, and face recognition is carried out through a camera connected with the raspberry group. All data of the system are transmitted and processed in the personal server, through actual tests, the raspberry pi-based family Internet of things system can stably work for a long time while protecting user privacy, and actual power consumption is only 6 watts.

Description

Family internet of things system based on raspberry group
Technical Field
The utility model belongs to the technical field of the thing networking, concretely relates to family internet of things system based on raspberry group.
Background
With the rapid development of internet technology and the further reduction of chip cost in recent years, the internet of things industry has been rapidly developed. Various major companies develop respective internet of things systems and solutions, such as the rice of millet company, the HomeKit of apple company, and the like. Although the system is complete and comprehensive in function, the sensors corresponding to the system need to be purchased for normal use, so that the cost of the family Internet of things is greatly increased. And all data can be automatically synchronized to the cloud server, so that the risk of information leakage is increased, and the condition that the network camera is attacked by hackers is frequent.
The main consideration of the family internet of things is low power consumption and low cost of equipment, so that the life is intelligent and convenient, but the privacy of the family needs to be considered at the same time. Compared with the enterprise network environment, the home network environment has the characteristics of small network bandwidth, unstable network and the like, and most of internet of things schemes are mainly applied to industry and less for home internet of things.
SUMMERY OF THE UTILITY MODEL
The utility model aims to solve the technical problem that to current family thing networking systems cost and consumption higher, network transmission unstable and the privacy nature of family thing networking data can not obtain the problem of assurance, provide a family thing networking systems based on raspberry group to do not rely on with any internet company's thing networking scheme.
In order to achieve the technical purpose, the invention adopts the following technical scheme:
a family Internet of things system based on a raspberry group comprises a raspberry group server, a temperature and humidity sensor, a router, a cloud server and a Wi-Fi module, and further comprises a console webpage communicated with the raspberry group server and the cloud server;
the raspberry server is connected with the router, and the Wi-Fi module is connected with the raspberry server and the router at the same time; the router is connected with a cloud server;
the temperature and humidity sensor is connected with the Wi-Fi module,
the temperature and humidity sensor sends collected data to the Wi-Fi module through a serial port, the Wi-Fi module uploads the collected data to a fixed open port of the cloud server and/or the raspberry server, and the collected data are displayed through a control console webpage.
Further, the system also comprises a camera, and the camera is connected with the raspberry sending server.
Still further, the camera is connected with the raspberry server through a CSI interface.
Further, the system also comprises an intelligent mirror display, and the intelligent mirror display is connected with the raspberry dispatching server.
Further, the system also comprises an infrared sensor which is connected with the Wi-Fi module.
Further, the Wi-Fi module uploads the collected data to a cloud server and/or a raspberry server in an MQTT protocol mode.
And further, when the cloud server or the raspberry server receives a query request from a control console webpage, the collected MQTT protocol data is returned to the control console webpage from another port in a ciphertext mode in a Websocket protocol mode.
The utility model discloses the beneficial technological effect who gains:
the utility model is particularly suitable for the family environment with low requirements on network environment and low power consumption, and has low deployment cost and good compatibility;
the stable working bandwidth of the system is only 30Kb, the power consumption is about 6W, the last data and the connection time of the sensor can be recorded when the network environment fluctuates, and the connection is automatically carried out after the network is recovered. All data transmission is carried out in the personal server, and the working environment of the system can be switched between the external network and the local area network at will, so that the safety of data and the privacy of users are ensured;
the utility model discloses use the camera to carry out face identification, but detect the record of shooing automatically of people's face when the user is from the house, camera automatically regulated frame rate and light gain according to the condition. The user can enter the system console in a webpage mode through any intelligent device, and the system is not limited by the device.
Drawings
FIG. 1 is a system framework diagram of an embodiment of the present invention;
FIG. 2 is a system frame diagram of another embodiment of the present invention;
FIG. 3 is a flow chart of the operation of the system of the family Internet of things according to the embodiment of the present invention;
fig. 4 is the embodiment of the utility model provides a domestic thing networking platform server framework sketch map.
Detailed Description
The present invention will be described in detail with reference to the accompanying drawings.
As shown in fig. 1, the embodiment of the present invention: a family Internet of things system based on a raspberry group comprises a raspberry group server, a temperature and humidity sensor, a router, a cloud server and a Wi-Fi module, and further comprises a console webpage communicated with the raspberry group server and the cloud server;
the raspberry server is connected with the router, and the Wi-Fi module is connected with the raspberry server and the router at the same time; the router is connected with the cloud server;
the temperature and humidity sensor is connected with the Wi-Fi module, the temperature and humidity sensor sends collected data to the Wi-Fi module through a serial port, the Wi-Fi module uploads the collected data to a fixed open port of the cloud server and/or the raspberry dispatching server, and the collected data are displayed through a control console webpage.
Preferably, the Wi-Fi module uploads the collected data to the cloud server and/or the raspberry server in an MQTT protocol mode. And when the cloud server or the raspberry server receives a query request from the control console webpage, returning the collected MQTT protocol data to the control console webpage from another port in a ciphertext mode in a Websocket protocol mode.
On the basis of the above embodiment, fig. 2 shows another embodiment, which is a home internet of things system based on a raspberry group, and includes a connection between a router and a raspberry group server (i.e., a raspberry group) in a home local area network, a connection between a camera and the raspberry group, a connection between a sensor and a Wi-Fi module, a connection between the router and the Wi-Fi module, and collecting and uploading collected data, and the raspberry group server receiving the data and controlling the sensor. The embodiment comprises a DHT11 temperature and humidity sensor and an HC-SR501 human body infrared sensor. In other embodiments, the system can further comprise an HC-SR05 ultrasonic module and the like, and preferably the raspberry pi and the camera are connected through a CSI interface carried by the raspberry pi. The Wi-Fi module sends the collected sensor data to a cloud server or a local server built by a raspberry group by using an MQTT protocol, data monitoring and control are carried out between a user and the server through a Websocket protocol, and face recognition is carried out through a camera. Still include the intelligent mirror display ware that links to each other with raspberry group server in this embodiment, this intelligent mirror display ware adopts prior art to realize, and this product supports touch operation, can let the user look over all kinds of information such as news, weather through touch screen when washing one's hand and washing one's face.
The system also comprises face recognition, when a user leaves home, the face can be automatically photographed and recorded, and the camera automatically adjusts the frame rate and the light gain according to the situation. The user can enter the system console in a webpage mode through any intelligent device, and the system is not limited by the device.
The utility model discloses a configuration as follows:
(1) deploying a raspberry pi local environment: the method comprises the following steps: installing a ras pberrypi operating system; installing gcc, g + +, uuid-dev, libc-ares-dev and other dependent packages; configuring a Nginx running environment and a PHP running environment, and compiling and installing an OpenCV and a Mosquitto server; an open port A, B, C, wherein A is a web access port, B is an MQTT protocol data receiving port, and C is a Websocket protocol data transmitting port; configuring a camera using environment Picamera; the home Internet of things homepage information is compiled by using the PHP, the script code is compiled by using the javascript, and a user can receive Websocket protocol data sent from the C port; code is written using python that invokes OpenCV for face recognition.
(2) The Wi-Fi module writes NodeMCU firmware, and uses Lua script language to write collected sensor data codes;
(3) connecting the raspberry pi and the Wi-Fi module to a home router, wherein the router allocates a fixed IP (Internet protocol) for each device;
(4) accessing a camera to a CSI interface on a raspberry group development board;
(5) deploying a cloud server environment;
(6) the Wi-Fi module uploads the acquired data to a cloud server and a designated port of a raspberry pie in an MQTT protocol mode, and a user views the situation in the family Internet of things in a mode of accessing a webpage;
(7) and the network switching between the Wi-Fi module and the raspberry group is configured, so that a user can switch the home Internet of things connection mode between a cloud end and a local area according to a network environment.
The development of the Wi-Fi module comprises the following steps:
(1) modifying SDK of the NodeMCU, and adding MQTT, GPIO and other functions;
(2) compiling the SDK package in a Linux environment;
(3) programming the compiled NodeMCU firmware into a Wi-Fi module;
(4) connecting the sensor to the Wi-Fi module through the GPIO;
(5) compiling a Lua script for controlling a sensor in ESPlor software and uploading the Lua script to a server by using an MQTT protocol;
(6) and burning the tested Lua script into the Wi-Fi module.
The step of writing the Lua script configuration sensor comprises the following steps: the Wi-Fi chip is configured through a Lua script language, the format of data uploading content is defined as 'room/component (door, window and the like)/state', and the transmission protocol adopts MQTT. The 'state' of the data types of the human body infrared sensor and the ultrasonic module is defined to only have two attributes of 'triggering' and 'non-triggering', and the 'state' attribute of the temperature and humidity sensor is a digital value from 0 to 100. When a plurality of sensors are connected to the same Wi-Fi module, data of a single sensor are uploaded at one time, a data reading period is set, a user sets a working period according to actual needs, and the chip can automatically enter a low power consumption mode under the condition of no data uploading so as to increase the running time.
The configuration step of the cloud server comprises the following steps: the cloud service firstly needs to configure a firewall and open a port A, B, C, wherein A is a webpage access port, B is an MQTT protocol data receiving port, and C is a Websocket protocol data sending port, and then a MosQutto server is compiled and installed to receive uploaded MQTT messages. And finally, compiling a cloud server monitoring page by using HTML (hypertext markup language), and displaying the messages acquired by the server on an interface in a more intuitive mode.
The utility model discloses well high in the clouds server only regards as "possess the server of fixed public network IP", if the home network environment provides fixed accessible public network IP address then can get rid of. And the Wi-Fi module can upload sensor data to the cloud server and a raspberry server in the home LAN at the same time, and when an external network environment is attacked, a user can close the function of the cloud server and the home Internet of things in the LAN can still normally run. All data transmission of the family Internet of things system based on the raspberry pi is carried out under the personal server, and privacy of data can be guaranteed.
The utility model discloses well raspberry group system kernel is Linux, and thing networking interface uses PHP and javascript language to compile, can dispose in the development board or the host computer that have Linux kernel system fast. Today, electronic technology is rapidly developed, the internet of things system has excellent compatibility, and the requirement on hardware is less limited.
The working process of the utility model is as follows (as shown in figure 3):
(1) the sensor collects current indoor environment data and sends the data to the Wi-Fi module through a serial port;
(2) the Wi-Fi module uploads the collected data to a fixed open port of a cloud server or a raspberry server in an MQTT protocol mode;
(3) the server forwards the collected MQTT protocol data from the other port in a form of ciphertext in a mode of a Websocket protocol;
(4) a user accesses a home Internet of things system console webpage through intelligent equipment, and monitors Websocket data sent from a port to acquire indoor conditions;
the user can send an instruction to the sensor through a control console webpage, the instruction is transmitted by an MQTT protocol, and the user can switch the system cloud communication and the communication in the local area network according to the network condition;
(5) the raspberry group obtains a video stream of a camera to recognize the face, and a user automatically takes a picture and stores the picture if the face is detected after leaving the home through setting time;
(6) and the network switching between the Wi-Fi module and the raspberry group is configured, so that a user can switch the home Internet of things connection mode between a cloud end and a local area according to a network environment.
In a specific embodiment, the raspberry sending server starts a camera through a Picamera function and reads a camera video stream to perform face recognition; the raspberry pie is also used as an internet of things system server, so that the running condition of the current raspberry pie needs to be monitored, and if a CPU is overheated, the frame is automatically dropped to process a video so as to ensure the normal running of the service; the camera can automatically adjust light gain according to the current time to adapt to the environments of strong light and weak light so as to accurately recognize the human face; when the face is detected, the photographing record is recorded, and the user can check the record through the intelligent equipment
In order to ensure data transmission of the home Internet of things, when the environment of an external network fluctuates or is invaded, a user can quickly switch the Internet of things system into a local area network, so that the safety and stability of the home Internet of things system are ensured; a port for receiving MQTT protocol data by the server can be added with a security transport layer protocol (TLS) according to the needs of a user, so that the security of the server is ensured; data under MQTT and Websocket protocols are transmitted in a well-agreed ciphertext mode between a Wi-Fi module and a server, and real data content cannot be acquired even if a message is intercepted. The key information and the operation instruction of the Internet of things system can be limited to be carried out in the local area network, the system cannot be damaged even if the external network server is authorized, and the user can close the external network data flow and switch to the local area network mode.
Fig. 4 is the utility model discloses domestic thing networking platform server framework sketch map, fig. 4 shows the utility model discloses a front end UI receives user's instruction or data input, submits to do for the business logic layer and handles, and the business logic layer passes through data transmission layer and host computer (raspberry group server and/cloud ware) communication, and the business logic layer returns the processing result and shows for the user for front end UI. The utility model discloses a server framework guarantees data safety, does benefit to load balance, improves operating efficiency.
The utility model discloses an equipment and sensor with low costs and the performance satisfies family's thing networking demand. The family Internet of things system formed by combining the sensor, the raspberry and the router has the following remarkable advantages: (1) the privacy and the safety of the user are greatly guaranteed; (2) the cost is low, the compatibility of different hardware is good, and the later development is easy; (3) the method is suitable for unstable home network environments; (4) the power consumption is low, and the daily maintenance requirement is low; (5) the user can switch between cloud service communication and local area network communication as required.
The utility model provides a family's thing networking systems based on raspberry group, the user can add required sensor according to actual need, and the method and the way that specifically realize this technical scheme are many.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention. All the components not specified in the present embodiment can be realized by the prior art.

Claims (5)

1. A family Internet of things system based on a raspberry group is characterized by comprising a raspberry group server, a temperature and humidity sensor, a router, a cloud server and a Wi-Fi module, and further comprising a console webpage communicated with the raspberry group server and the cloud server;
the raspberry server is connected with the router, and the Wi-Fi module is connected with the raspberry server and the router at the same time; the router is connected with a cloud server;
the temperature and humidity sensor is connected with the Wi-Fi module,
the temperature and humidity sensor sends collected data to the Wi-Fi module through a serial port, the Wi-Fi module uploads the collected data to a fixed open port of the cloud server and/or the raspberry server, and the collected data are displayed through a control console webpage;
the system further comprises an intelligent mirror display, and the intelligent mirror display is connected with the raspberry dispatching server.
2. The system of claim 1, further comprising a camera connected to the raspberry pi server.
3. The raspberry pi based family internet of things system of claim 2, wherein the camera is connected with the raspberry pi server through a CSI interface.
4. The system of claim 1, further comprising an infrared sensor coupled to the Wi-Fi module.
5. The system of claim 1, further comprising an intelligent terminal, wherein the intelligent terminal can access a console webpage to obtain data in the raspberry pi server and the cloud server.
CN201921015375.XU 2019-07-02 2019-07-02 Family internet of things system based on raspberry group Active CN210168064U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201921015375.XU CN210168064U (en) 2019-07-02 2019-07-02 Family internet of things system based on raspberry group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201921015375.XU CN210168064U (en) 2019-07-02 2019-07-02 Family internet of things system based on raspberry group

Publications (1)

Publication Number Publication Date
CN210168064U true CN210168064U (en) 2020-03-20

Family

ID=69795087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201921015375.XU Active CN210168064U (en) 2019-07-02 2019-07-02 Family internet of things system based on raspberry group

Country Status (1)

Country Link
CN (1) CN210168064U (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866653A (en) * 2021-03-05 2021-05-28 深圳市远古科技有限公司 Baby safety monitoring system and device of double-frequency circuit based on intranet control gateway
CN113342095A (en) * 2021-05-19 2021-09-03 浙江工业大学 Intelligent mirror control system based on raspberry group
CN113362430A (en) * 2021-04-25 2021-09-07 杭州玖欣物联科技有限公司 Industrial production line model animation digital twin method
CN113542254A (en) * 2021-07-12 2021-10-22 国网江苏省电力有限公司电力科学研究院 System and method for fusing terminal security access
CN113791782A (en) * 2021-09-10 2021-12-14 宁波明物智能科技有限公司 Low-cost industrial computer and zero code programming method and system
CN114964363A (en) * 2022-05-16 2022-08-30 安徽理工大学 City environmental monitoring system based on raspberry group

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866653A (en) * 2021-03-05 2021-05-28 深圳市远古科技有限公司 Baby safety monitoring system and device of double-frequency circuit based on intranet control gateway
CN113362430A (en) * 2021-04-25 2021-09-07 杭州玖欣物联科技有限公司 Industrial production line model animation digital twin method
CN113342095A (en) * 2021-05-19 2021-09-03 浙江工业大学 Intelligent mirror control system based on raspberry group
CN113542254A (en) * 2021-07-12 2021-10-22 国网江苏省电力有限公司电力科学研究院 System and method for fusing terminal security access
CN113791782A (en) * 2021-09-10 2021-12-14 宁波明物智能科技有限公司 Low-cost industrial computer and zero code programming method and system
CN114964363A (en) * 2022-05-16 2022-08-30 安徽理工大学 City environmental monitoring system based on raspberry group

Similar Documents

Publication Publication Date Title
CN210168064U (en) Family internet of things system based on raspberry group
US11314540B2 (en) Combined network and physical security appliance
US20060190529A1 (en) Multipurpose semiconductor integrated circuit device
US20050076150A1 (en) Home network system and method for operating the same
CN103236960A (en) Method and system for data interaction between home server and plurality of terminals
CN104243210A (en) Method and system for remotely having access to administrative web pages of routers
WO2013130249A1 (en) Network appliance for monitoring network requests for multimedia content
CN105743931A (en) Control method and device applied to intelligent home platform
CN108494637B (en) Method for intelligent household equipment to be in butt joint with Control4 system
CN201839376U (en) Monitoring system and monitoring video server
CN103220356A (en) Remote monitoring device based on embedded web
Alkar et al. IP based home automation system
JP6665190B2 (en) Network sharing implementation method and apparatus
Yi et al. Design of smart home control system by Internet of Things based on ZigBee
CN104052968A (en) Long-distance video supervisory system based on home gateway
US8156250B2 (en) Arrangements for a 3270 compatible terminal with browser capability
CN108449246A (en) A kind of intelligent domestic system based on instant message applications Yu Internet of Things Network Communication
CN206020972U (en) Multifunction teaching control device
CN112162718B (en) Reverse interaction method, device, equipment and storage medium
CN113032070A (en) Host image intercepting method and device and related components
WO2023088198A1 (en) Network connection method and apparatus, and electronic device
Ni et al. Integration of wired and wireless lighting control systems for green energy managment
JP2006085623A (en) Web monitoring system, data processing method and monitored apparatus
CN107995072A (en) A kind of intelligent domestic system
CN101997710B (en) Long-distance management system and method

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231109

Address after: Room 606, Huannuo Building, No. 1568 South Ring Road, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province, China (Zhejiang) Free Trade Pilot Zone, 310051

Patentee after: Hangzhou Jiufeng Electronic Technology Co.,Ltd.

Address before: 230000 floor 1, building 2, phase I, e-commerce Park, Jinggang Road, Shushan Economic Development Zone, Hefei City, Anhui Province

Patentee before: Dragon totem Technology (Hefei) Co.,Ltd.

Effective date of registration: 20231109

Address after: 230000 floor 1, building 2, phase I, e-commerce Park, Jinggang Road, Shushan Economic Development Zone, Hefei City, Anhui Province

Patentee after: Dragon totem Technology (Hefei) Co.,Ltd.

Address before: Gehu Lake Road Wujin District 213164 Jiangsu city of Changzhou province No. 1

Patentee before: CHANGZHOU University

TR01 Transfer of patent right