Disclosure of Invention
In order to overcome the defect that the existing old people accompanying mode cannot meet the psychological needs of the old people, the invention provides the old people accompanying method and system based on the affection network, which can effectively meet the psychological needs of the old people and have better practicability.
The technical scheme adopted by the invention for solving the technical problems is as follows:
an old man accompanying method based on a relative network comprises the following steps:
the method comprises the following steps: a user inputs an account password to a WEB server by using a client on a mobile terminal in a registration module, the account password is input in a login module after the registration is successful, user information is stored in a database, and the user only logs in an SIP server by using userid after the user registers for the first time;
step two: a user scans a two-dimensional code printed on an equipment terminal by using client software on a mobile terminal and binds the two-dimensional code with the equipment, information and a corresponding relation between the two parts are stored in a database, a server is allocated to a device of the mobile terminal after binding, the mobile terminal automatically logs in on an SIP server by using the device after obtaining the device, namely the mobile terminal finally logs in on the SIP server by using the userid and the device respectively, and a heartbeat keep-alive mechanism is required after logging in;
step three: the device end does not need to manually register and log in, the device can be allocated with a userid and a device when leaving a factory, and the device end can automatically log in the SIP server by the userid and the device after the device is started for the first time;
step four: the old people click a corresponding food delivery or home administration button on client software of the equipment side after the old people have a demand, and the demand is sent to the mobile side through the network and the server;
step five: all users of the binding equipment end enter the client software of the mobile end, enter the processing demand module and can see the demand of the old, and the users can click the demand to jump to the corresponding service module, select the service on the service module and pay;
step six: after the user selects and pays, the third-party service company sends a waiter to a specified place to provide corresponding service;
step seven: after the meal delivery or housekeeping service personnel arrive at the appointed place, the service is completed, a service completion confirming button is clicked at the equipment end point, the service is transmitted to the mobile terminal through the network and the server, the mobile terminal receives the service and then changes the requirement of the processing request module into the completion, and the service flow is finished.
Further, the method comprises the following steps:
step eight: the old people click the head portrait to start calling the video call to the corresponding mobile terminal at the video call module of the equipment terminal, and the mobile terminal starts the cameras and the microphones of the two parties to start the video call after confirmation.
The utility model provides an old man attends to system based on kindness net, includes the removal end, server and the equipment end of networking, the removal end of networking links to each other with the server through the network, and the server passes through the network and links to each other with the equipment end, and the removal end of networking and equipment end are equipped with corresponding client software in, the server includes WEB (world Wide WEB) server, SIP (Session Initiation Protocol) server and streaming media server, and the WEB server passes through HTTP Protocol and removes end, equipment end and interact, and SIP signaling server passes through SIP Protocol and removes end, equipment end and interacts, and streaming media server passes through UDP Protocol and equipment end, removes end and interacts.
Further, the client software of the mobile terminal comprises a registration login module, a binding module, a demand processing module, a meal delivery module, a housekeeping module, a friend circle module and a video call module; the registration login module is used for providing registration and login functions for the mobile terminal user, namely, the unregistered mobile terminal user sends own mobile phone number and password to the WEB server, the registered mobile terminal user sends the mobile phone number and the password to send SIP signaling to the SIP server, login is completed through interaction of the SIP signaling, and personal data of the user is obtained through interaction with the WEB server; the binding module is used for providing a two-dimensional code on a scanning equipment end for a user to bind the equipment end, so that a function of a family type affinity network is established, namely, a mobile end calls a camera to scan the two-dimensional code on the equipment, the two-dimensional code represents the device of the equipment end, the unique identifier of the corresponding equipment sends a code scanning result and self userid to a WEB server through an HTTP request, and the WEB server binds the userid of the mobile end under the device of the equipment and distributes the userid to the user as a special device; the system comprises a parent-friend circle module, a WEB server and a mobile terminal, wherein the parent-friend circle module is used for providing a platform for children to publish the state of the old people on the platform, and comprises characters, pictures and videos, all mobile terminals bound with one device are visible, the mobile terminals send the characters, the pictures and the videos to the WEB server and store the characters, the pictures and the videos on the WEB server, and a mobile terminal user bound with the device can obtain information sent by other users from the WEB server by updating the parent-friend circle module and display the information on the parent-friend circle module to pay attention to the life state of the old people together; the device end of the video call module can click the head portrait of the bound user to carry out video call, namely, the device end interactively sends a video request to the SIP server through the SIP signaling carrying parameters, and the forwarding of the video stream is realized under the scheduling of the SIP server and the streaming media server; the processing demand module is connected with the food delivery module and the household module, is used for displaying the demands sent by the equipment terminals for all mobile terminals bound with the same equipment and can click and jump to the food delivery module and the household module to process the demands; the meal delivery module is used for self-defining meal selection and meal delivery reservation and providing services by a third-party company; and the household module is used for self-defining selection and reservation of household services, and the services are provided by third-party companies.
Still further, the equipment end comprises a meal delivery requirement module, a housekeeping requirement module, a video call module and a confirmation service completion module; the meal delivery demand module provides a one-key meal delivery demand function for the old, and the demand is delivered to the mobile terminal through a network and a server, so that a mobile terminal user can process the demand in real time; the household demand module provides a one-key household demand function for the old, and the requirement is transmitted to the mobile terminal through a network and a server, so that a user at the mobile terminal can process the requirement in real time; the video call module provides a video call function for the old, and the old can select to initiate a video call request to a specified user in a bound mobile terminal list; and the service completion module can inform the mobile terminal of completing the service through the network and the server after the service personnel complete the corresponding service.
Preferably, the mobile terminals of the network are all mobile phones.
The equipment end is the panel computer of customization, through wifi and 4G networking, and the typeface is big partially, and the interface is simple, and 3 buttons on the screen correspond respectively and send meal demand, housekeeping demand and service and accomplish the module, make things convenient for old man's operation.
The equipment-side video call module is a list, each mobile-side user corresponds to one avatar, and a video call request can be initiated to a certain mobile-side user by clicking the avatar.
The reminding state that the client software of the mobile terminal receives the demand information is obvious, so that the demand can be rapidly processed.
Two-dimensional codes representing equipment devices are pasted on the equipment terminals, so that the mobile terminal can scan conveniently, and one equipment has one dedicated device and one dedicated user, and is imported into a database in advance.
After the equipment is started for the first time, the userid and the devid automatically log in the SIP server without manual login.
The SIP server login adopts a heartbeat package mechanism, and when the old people's equipment fails and does not send heartbeat packages, the SIP server can inform the mobile terminal at the first time to prevent accidents.
Each dating circle state can be praised and commented on.
Compared with the prior art, the method and the system for accompanying the old people based on the affection network have the advantages that a affection network system is established, children can release and share the living state of the old people, the living demand of the old people is met, the emotional accompanying of the old people is provided, and the old people can feel the joy of the children.
Detailed Description
The present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 to 9, an elderly accompanying method based on a kindness network includes the following steps:
the method comprises the following steps: a user inputs an account password to a WEB server by using a client on a mobile terminal in a registration module, the account password is input in a login module after the registration is successful, user information is stored in a database, and the user only logs in an SIP server by using userid after the user registers for the first time;
step two: a user scans a two-dimensional code printed on an equipment terminal by using client software on a mobile terminal and binds the two-dimensional code with the equipment, information and a corresponding relation between the two parts are stored in a database, a server is allocated to a device of the mobile terminal after binding, the mobile terminal automatically logs in on an SIP server by using the device after obtaining the device, namely the mobile terminal finally logs in on the SIP server by using the userid and the device respectively, and a heartbeat keep-alive mechanism is required after logging in;
step three: the device end does not need to manually register and log in, the device can be allocated with a userid and a device when leaving a factory, and the device end can automatically log in the SIP server by the userid and the device after the device is started for the first time;
step four: the old people click a corresponding food delivery or home administration button on client software of the equipment side after the old people have a demand, and the demand is sent to the mobile side through the network and the server;
step five: all users of the binding equipment end enter the client software of the mobile end, enter the processing demand module and can see the demand of the old, and the users can click the demand to jump to the corresponding service module, select the service on the service module and pay;
step six: after the user selects and pays, the third-party service company sends a waiter to a specified place to provide corresponding service;
step seven: after the meal delivery or housekeeping service personnel arrive at the appointed place, the service is completed, a service completion confirming button is clicked at the equipment end point, the service is transmitted to the mobile terminal through the network and the server, the mobile terminal receives the service and then changes the requirement of the processing request module into the completion, and the service flow is finished.
Further, the method comprises the following steps:
step eight: the old people click the head portrait to start calling the video call to the corresponding mobile terminal at the video call module of the equipment terminal, and the mobile terminal starts the cameras and the microphones of the two parties to start the video call after confirmation.
The utility model provides an old man attends to system based on kindness net, includes the removal end, server and the equipment end of networking, the removal end of networking links to each other with the server through the network, and the server passes through the network and links to each other with the equipment end, and the removal end of networking and equipment end are equipped with corresponding client software in, the server includes WEB (world Wide WEB) server, SIP (Session Initiation Protocol) server and streaming media server, and the WEB server passes through HTTP Protocol and removes end, equipment end and interact, and SIP signaling server passes through SIP Protocol and removes end, equipment end and interacts, and streaming media server passes through UDP Protocol and equipment end, removes end and interacts.
Further, the client software of the mobile terminal comprises a registration login module, a binding module, a demand processing module, a meal delivery module, a housekeeping module, a friend circle module and a video call module; the registration login module is used for providing registration and login functions for the mobile terminal user, namely, the unregistered mobile terminal user sends own mobile phone number and password to the WEB server, the registered mobile terminal user sends the mobile phone number and the password to send SIP signaling to the SIP server, login is completed through interaction of the SIP signaling, and personal data of the user is obtained through interaction with the WEB server; the binding module is used for providing a two-dimensional code on a scanning equipment end for a user to bind the equipment end, so that a function of a family type affinity network is established, namely, a mobile end calls a camera to scan the two-dimensional code on the equipment, the two-dimensional code represents the device of the equipment end, the unique identifier of the corresponding equipment sends a code scanning result and self userid to a WEB server through an HTTP request, and the WEB server binds the userid of the mobile end under the device of the equipment and distributes the userid to the user as a special device; the system comprises a parent-friend circle module, a WEB server and a mobile terminal, wherein the parent-friend circle module is used for providing a platform for children to publish the state of the old people on the platform, and comprises characters, pictures and videos, all mobile terminals bound with one device are visible, the mobile terminals send the characters, the pictures and the videos to the WEB server and store the characters, the pictures and the videos on the WEB server, and a mobile terminal user bound with the device can obtain information sent by other users from the WEB server by updating the parent-friend circle module and display the information on the parent-friend circle module to pay attention to the life state of the old people together; the device end of the video call module can click the head portrait of the bound user to carry out video call, namely, the device end interactively sends a video request to the SIP server through the SIP signaling carrying parameters, and the forwarding of the video stream is realized under the scheduling of the SIP server and the streaming media server; the processing demand module is connected with the food delivery module and the household module, is used for displaying the demands sent by the equipment terminals for all mobile terminals bound with the same equipment and can click and jump to the food delivery module and the household module to process the demands; the meal delivery module is used for self-defining meal selection and meal delivery reservation and providing services by a third-party company; and the household module is used for self-defining selection and reservation of household services, and the services are provided by third-party companies.
Still further, the equipment end comprises a meal delivery requirement module, a housekeeping requirement module, a video call module and a confirmation service completion module; the meal delivery demand module provides a one-key meal delivery demand function for the old, and the demand is delivered to the mobile terminal through a network and a server, so that a mobile terminal user can process the demand in real time; the household demand module provides a one-key household demand function for the old, and the requirement is transmitted to the mobile terminal through a network and a server, so that a user at the mobile terminal can process the requirement in real time; the video call module provides a video call function for the old, and the old can select to initiate a video call request to a specified user in a bound mobile terminal list; and the service completion module can inform the mobile terminal of completing the service through the network and the server after the service personnel complete the corresponding service.
Preferably, the mobile terminals of the network are all mobile phones.
The equipment end is the panel computer of customization, through wifi and 4G networking, and the typeface is big partially, and the interface is simple, and 3 buttons on the screen correspond respectively and send meal demand, housekeeping demand and service and accomplish the module, make things convenient for old man's operation.
The equipment-side video call module is a list, each mobile-side user corresponds to one avatar, and a video call request can be initiated to a certain mobile-side user by clicking the avatar.
The reminding state that the client software of the mobile terminal receives the demand information is obvious, so that the demand can be rapidly processed.
Two-dimensional codes representing equipment devices are pasted on the equipment terminals, so that the mobile terminal can scan conveniently, and one equipment has one dedicated device and one dedicated user, and is imported into a database in advance.
After the equipment is started for the first time, the userid and the devid automatically log in the SIP server without manual login.
The SIP server login adopts a heartbeat package mechanism, and when the old people's equipment fails and does not send heartbeat packages, the SIP server can inform the mobile terminal at the first time to prevent accidents.
Each dating circle state can be praised and commented on.
Referring to fig. 1, the elderly accompanying and attending system based on the kindsten network comprises a mobile terminal, a server and an equipment terminal which are networked, wherein the mobile terminal is connected with the server through a network, the server is connected with the equipment terminal through the network, client software is installed in the mobile terminal and the equipment terminal which are networked, the mobile terminal which is networked is a mobile phone, and the equipment terminal is a customized tablet computer.
The streaming media server is used for forwarding the video stream and the audio stream;
the WEB server is used for uploading and storing user information and establishing an affinity gateway platform;
the SIP server is used for SIP signaling interaction between the mobile terminal and the equipment terminal;
the third party company is a food delivery and home service provider.
The mobile client software comprises a registration login module, a binding module, a demand processing module, a meal delivery module, a housekeeping module, a friend circle module and a video call module;
fig. 2 shows a registration login module, in which a mobile terminal first sends a request carrying HTTP with parameters of an account and a password to a WEB server, and the WEB server returns a JSON-formatted character string success representative of successful registration after successfully storing in a database, so that the mobile terminal successfully registers the account. The mobile terminal login process is that a user initiates a login request to a signaling server, and in order to distinguish from the equipment login request, the user firstly sends a virtual user registration with the id of 330100000010000190 number; the signaling server searches a database according to a user name sent by a user side, if the user name exists, 200OK is returned, and a random number SEED, userid of the user and a SALT value of a password stored on the server by the user are added; the user side encrypts the user password according to the returned SEED and SALT and sends the encrypted ciphertext to the signaling server through the REGISTER request again; the specific encryption algorithm is as follows: first encryption, SHA1 (encrypted password) — (plaintext password + SALT); second encryption, SHA1 ═ SHA1 (clear text cipher + SALT) + SEED); and the server side carries out the same algorithm to verify whether the user password is correct or not. If the current time is correct, 200OK + is returned, if the current time is wrong, 401 is returned, and after registration and login, the mobile terminal can upload or acquire personal information (including head portrait, nickname and the like) by using parameters carried by an HTTP request;
fig. 3 is a heartbeat keep-alive mechanism, after login, the mobile terminal sends a REGISTER request to the SIP server, and the message body of the REGISTER request should add an XML node heartbeat _ request to indicate that the request is a heartbeat packet. And the signaling server replies a 200ok plus time data body after receiving the heartbeat packet message. The mobile terminal needs to send a heartbeat packet every 20 seconds, otherwise the SIP server considers that the user is not online;
fig. 4 is a binding module, and the mobile terminal scans the two-dimensional code pasted on the device terminal to bind the device terminal: the mobile terminal scans the two-dimensional code pasted on the equipment terminal to obtain the device of the equipment, then transmits the device of the equipment and the user id of the equipment to the WEB server through an http request, and the WEB server distributes the device to the mobile terminal according to a certain rule after the binding relationship is established;
fig. 5 shows that the mobile terminal will log in its own device in the SIP server after binding the device, and the flow is as follows: the mobile terminal sends a REGISTER message to the SIP server by using the device. The SIP server, upon receiving the registration message, replies 200ok indicating receipt of the request and piggybacks the MD5 encryption seed in the reply message. After receiving the 200ok reply, the mobile terminal reads the encrypted seed and obtains a registration password through the following algorithm: md5(devid + seed + md5(pwd)), sends the registration request again. After receiving the request, the server verifies and approves the registration information and returns a message of successful or failed registration to the mobile terminal. For convenience, the devid password is the same as the userid password, so that the password is prevented from being input again;
FIG. 6 is a publish and acquire dating circle module: when the friend circle is released, the mobile terminal user sends an HTTP request, uploads characters, pictures or videos and carries userid and device to a WEB server, the server returns success character strings in a JOSN format after successful storage, and the user uploads the success character strings after receiving the success character strings; when acquiring the friend circle, a user sends an HTTP request carrying parameters of device devid, userid and currentpage representing the current page number to a WEB server, the WEB server inquires the friend circle information related to the device devid and then returns the character, picture address or video address of the current page represented by the currentpage to the user, the user downloads the required picture or video from the WEB server according to the address and displays the character, picture and video on the mobile terminal according to certain arrangement, and all mobile terminal users can manually update the friend circle information;
fig. 7 is a SIP signaling interaction flow between a device and a mobile terminal in a video call module: firstly, a mobile terminal sends an OPTIONS request to an SIP server, and XML nodes such as query and the like are added to a message body of the OPTIONS request to represent nodes for inquiring video parameters; the SIP server forwards an OPTIONS request to the equipment terminal; after receiving the OPTIONS request, the equipment replies 200OK to the SIP server, and XML nodes of the equipment comprise video parameter nodes; the mobile terminal sends an INVITE request to the SIP server, an XML node such as media should be added to a message body of the INVITE request to indicate that the message body requests real-time video, and a node representing video parameters is also added to the message body, for example: resolution, audio and video compression format, code rate and the like; and then the SIP server forwards the INVITE request to the equipment terminal, and the SIP server replies 100trying after receiving the request to indicate that the request is received. After receiving the INVITE request, the device responds to 100trying to indicate that the request is received; after receiving the media request message, the device replies 200ok to the SIP server. The SIP server replies 200OK to the mobile terminal to indicate that the mobile terminal is ready to send video, and the message body replied by 200OK contains parameter information of the video sent to the mobile terminal, such as resolution, audio and video compression format, code rate and the like, as well as IP (Internet protocol) and port of the streaming media server and information of an activation code message body which needs to be sent to the streaming media server by the mobile terminal; and the mobile terminal replies ACK to the SIP server after receiving the 200OK request. The SIP server responds to the ACK to the equipment, and the equipment end starts to send the video after receiving the ACK;
fig. 8 is a flowchart of the video call between the mobile terminal and the device terminal: the mobile terminal (or equipment terminal) starts a camera and a microphone to collect video and audio for starting coding, the coded data is packaged and encapsulated by an RTP (real-time transport protocol), then the coded data is sent by a UDP (user Datagram protocol) according to the IP (Internet protocol) and the port of the obtained streaming media server, the streaming media server forwards the UDP (user Datagram protocol) data stream to the mobile terminal (or equipment), the mobile terminal (or equipment) starts to remove the encapsulation after taking the data stream, the data stream is sequentially restored into RTP packets, then the data in the RTP packets is decoded, and finally the decoded audio and video data is played by the mobile terminal (or equipment);
fig. 9 is a complete flow chart of the mobile terminal processing demand module and the device terminal related module for processing demand, that is, a complete flow from the old sending demand to the old obtaining service: the old man clicks a food delivery service (or housekeeping service) module on the equipment, the equipment end sends an SIP message to an SIP server, the message body has a required type, the SIP server receives the message and inquires a database, the message is forwarded to each mobile end binding the equipment, the mobile end receives the SIP message and analyzes the service required by the old man and displays the service in a processing requirement module, a mobile end user clicks the requirement after seeing the required information and jumps to a corresponding food delivery (or housekeeping) service module, the link of the food delivery or housekeeping module is provided by a third party service company, the mobile end user can independently select the required service on the mobile end user, the third party service company sends service personnel to start to a destination for providing service after selecting and paying, after the service is reached to a designated place and the service is completed, the third party service personnel clicks a completion service module on the equipment, and the equipment is forwarded to the mobile end through the SIP server, and after receiving, the mobile terminal displays that the processing is finished on the processing demand module, and all the mobile terminals binding the equipment are visible, so that the whole demand processing is finished.
The client software of the equipment end comprises a food delivery requirement module, a housekeeping requirement module, a parent list module and a confirmation service completion module;
the meal delivery demand module is used for providing a one-key meal delivery demand function for the old, and delivering the demand to the mobile terminal through the network and the SIP server, so that a mobile terminal user can immediately process the demand;
the household requirement module is used for providing a one-key household requirement function for the old, and transmitting the requirement to the mobile terminal through the network and the SIP server, so that a user at the mobile terminal can process the requirement in real time;
the video call module is used for providing a list of bound mobile terminals for the old, each bound user is displayed in the list in an avatar mode, and the old can initiate a video call by clicking the avatar;
and the service confirmation completion module can inform the mobile terminal of completion of service through the network and the SIP server after the service personnel complete corresponding service.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.