CN110247941A - The method and system of switching terminal use state - Google Patents

The method and system of switching terminal use state Download PDF

Info

Publication number
CN110247941A
CN110247941A CN201810194631.XA CN201810194631A CN110247941A CN 110247941 A CN110247941 A CN 110247941A CN 201810194631 A CN201810194631 A CN 201810194631A CN 110247941 A CN110247941 A CN 110247941A
Authority
CN
China
Prior art keywords
user terminal
mqtt
server
network
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810194631.XA
Other languages
Chinese (zh)
Other versions
CN110247941B (en
Inventor
魏治平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitevision Polytron Technologies Inc
Original Assignee
Hitevision Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitevision Polytron Technologies Inc filed Critical Hitevision Polytron Technologies Inc
Priority to CN201810194631.XA priority Critical patent/CN110247941B/en
Publication of CN110247941A publication Critical patent/CN110247941A/en
Application granted granted Critical
Publication of CN110247941B publication Critical patent/CN110247941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The invention discloses a kind of method and system of switching terminal use state, the first user terminal is connected to network MQTT server, and subscribes to MQTT service theme message;The selection of second user terminal currently needs state to be used, and the corresponding MQTT service theme message of the state is sent to network MQTT server;The MQTT service theme message that the second user terminal received issues is sent to the first user terminal by network MQTT server, and first user terminal switches use state according to the MQTT service theme message received.The present invention distinguishes class state and after class state by different theme messages, guarantee that student of upper class hour can only do and attend class related thing, and Auto-Sensing goes to school and leaves school and state and automatically switches class state and after class state, it is easy to use, efficiently, user experience is greatly improved.

Description

The method and system of switching terminal use state
Technical field
The present invention relates to fields of communication technology, particularly relate to a kind of method and system of switching terminal use state.
Background technique
Nowadays touch control terminal (such as smart television, infrared large-size screen monitors) has been widely applied to teaching, office, meeting neck Domain, touch control terminal are much paid close attention to and are favored because of its good user experience and extremely simplified operation.
In recent years in field research, user has gradually increased the need for carrying out a variety of interactive teaching and learnings with student on classroom It asks, wherein the interactive teaching of mobile terminal and large-size screen monitors (or personal computer) increases classroom freedom degree and between student Interactive teaching, it is deep to be welcome by teacher.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery: making at present in school Class hour or PAD are wrapped with e-book do not distinguish attend class and state after class, only one unified preset Launcher, Cause class hour student can arbitrarily download installation and using on PAD with the unrelated APP that attends class;Even if PAD goes to school and leaves school State is distinguished, but is needed student to manually boot, logs in, is switched program of attending class, can not full-automatic intelligent, lead to user experience very Difference.
Summary of the invention
In view of this, it is an object of the invention to propose a kind of method and system of switching terminal use state, to solve Can not automatically switch to go to school and leave school state the technical issues of.
Based on above-mentioned purpose, in the first aspect of the present invention, the present invention provides a kind of sides of switching terminal use state Method, which comprises
First user terminal is connected to network MQTT server, and subscribes to MQTT service theme message;
The selection of second user terminal currently needs state to be used, and the corresponding MQTT service theme message of the state is sent out It send to network MQTT server;
The MQTT service theme message that the second user terminal received issues is sent to by network MQTT server First user terminal, first user terminal switch use state according to the MQTT service theme message received.
In some embodiments of the invention, the network MQTT server includes Cloud Server or thin cloud server.
In some embodiments of the invention, the first user terminal is connected to network MQTT server, comprising:
When the starting of the first user terminal, udp broadcast is sent to current local area network, if receiving thin cloud within a preset time The UDP response of server, the then IP address sent by thin cloud server, the MQTT service being connected on thin cloud server.
In some embodiments of the invention, the first user terminal is connected to network MQTT server, further includes:
If the first user terminal does not receive the UDP response of thin cloud server, and the first user within a preset time Terminal judgement currently has internet, then is serviced by the MQTT that the cloud MQTT domain name serviced and port numbers are connected to cloud.
In some embodiments of the invention, second user terminal is chosen before currently needing state to be used, further includes: Second user terminal is connected to network MQTT server.
In some embodiments of the invention, second user terminal is connected to network MQTT server, comprising:
When the starting of second user terminal, udp broadcast is sent to current local area network, if receiving thin cloud within a preset time The UDP response of server, the then IP address sent by thin cloud server, the MQTT service being connected on thin cloud server.
In some embodiments of the invention, second user terminal is connected to network MQTT server, further includes:
If second user terminal does not receive the UDP response of thin cloud server, and second user within a preset time Terminal judgement currently has internet, then is serviced by the MQTT that the cloud MQTT domain name serviced and port numbers are connected to cloud.
In some embodiments of the invention, the method also includes:
Preset application white list theme message is sent to network MQTT server by second user terminal, and the application is white It is carried in list theme message using white list theme and using white list;
Network MQTT server will be pushed to the had subscribed using white list theme message using white list theme message One user terminal;
After first user terminal receives the application white list theme message of network MQTT server push, parse in message It is unlocked using packet name, and to corresponding application program.
In the second aspect of the present invention, the present invention provides a kind of systems of switching terminal use state, including the first use Family terminal, second user terminal and network MQTT server,
First user terminal is connected to network MQTT server, and subscribes to MQTT service theme message, according to what is received MQTT service theme message switches use state;
The selection of second user terminal currently needs state to be used, and the corresponding MQTT service theme message of the state is sent out It send to network MQTT server;
The MQTT service theme message that the second user terminal received issues is sent to by network MQTT server First user terminal.
In some embodiments of the invention, the network MQTT server includes Cloud Server or thin cloud server.
In some embodiments of the invention, when the first user terminal starts, udp broadcast is sent to current local area network, If receiving the UDP response of thin cloud server within a preset time, the IP address sent by thin cloud server is connected to micro- MQTT service on Cloud Server.
In some embodiments of the invention, if the first user terminal does not receive thin cloud server within a preset time UDP response, and the first user terminal judgement currently have internet, then pass through the cloud MQTT domain name serviced and port numbers company It is connected to the MQTT service in cloud.
In some embodiments of the invention, before selection currently needs state to be used, the connection of second user terminal To network MQTT server.
In some embodiments of the invention, when second user terminal starts, udp broadcast is sent to current local area network, If receiving the UDP response of thin cloud server within a preset time, the IP address sent by thin cloud server is connected to micro- MQTT service on Cloud Server.
In some embodiments of the invention, if second user terminal does not receive thin cloud server within a preset time UDP response, and second user terminal judgement currently have internet, then pass through the cloud MQTT domain name serviced and port numbers company It is connected to the MQTT service in cloud.
In some embodiments of the invention, preset application white list theme message is sent to net by second user terminal Network MQTT server carries in the application white list theme message using white list theme and using white list;
Network MQTT server will be pushed to the had subscribed using white list theme message using white list theme message One user terminal;
After first user terminal receives the application white list theme message of network MQTT server push, parse in message It is unlocked using packet name, and to corresponding application program.
The method of switching terminal use state provided in an embodiment of the present invention distinguishes shape of attending class by different theme messages State and after class state guarantee that upper class hour student can only do and attend class related thing, and Auto-Sensing go to school and leave school state and oneself Dynamic switching class state and after class state, it is easy to use, efficiently, greatly improve user experience.User only needs to move end End is connected to required WIFI hot spot of attending class, and the state of going to school and leaving school that just can be set automatically according to current teacher is cut accordingly It changes.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the switching terminal use state provided in one embodiment of the invention;
Fig. 2 is the structural schematic diagram of the system of the switching terminal use state provided in one embodiment of the invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference Attached drawing, the present invention is described in more detail.
Referring to Fig. 1, for the flow chart of the method for the switching terminal use state provided in one embodiment of the invention.With In lower step explanation, secondary user terminal refers to student terminal, and primary user end refers to teacher's terminal.Under normal circumstances, primary user end can PC teacher side and PAD teacher side each one are set, and the quantity at Duplicate user end is not particularly limited.
As an embodiment of the present invention, the method for the switching terminal use state includes:
Step 101, the first user terminal is connected to network MQTT server, and subscribes to MQTT service theme message.
Wherein, MQTT (Message Queuing Telemetry Transport, the message queue telemetering transmission) clothes Theme message of being engaged in includes the first theme message and second theme message, corresponds respectively to class state and after class state.Therefore, on The theme message of class and theme message after class are different, respectively the first theme message and second theme message, the present invention Embodiment uses different theme messages to distinguish class state and after class state.
It should be pointed out that the title of the first theme message and second theme message can be preset, such as first main The title of topic message can be set as/class/begin, and the title of second theme message can be set as/class/end, with Different theme messages is chosen convenient for user, to distinguish class state and after class state.
Optionally, the first user terminal is connected to network MQTT server, and subscribes to MQTT service theme message automatically, Described in network MQTT server include Cloud Server or thin cloud server.Optionally, the first user terminal in step 101 It can be secondary user terminal, such as student terminal, secondary user terminal can have multiple.
As yet another embodiment of the present invention, the step of the first user terminal is connected to network MQTT server, includes: When the starting of the first user terminal, UDP (User Datagram Protocol, User Datagram Protocol are sent to current local area network View) broadcast, if receiving the UDP response of thin cloud server within a preset time, the IP address sent by thin cloud server, The MQTT service being connected on thin cloud server.
Therefore, when the first user terminal starts, udp broadcast is sent to current local area network, if current local area network exists There is thin cloud server, then when thin cloud server receives the udp broadcast of the first user terminal transmission, response udp broadcast is indicated micro- The presence of Cloud Server.So the first user terminal obtains the IP address of thin cloud server, is then provided by MQTT program Contiguous function is connected to the service of the MQTT on thin cloud server.
Further, the method also includes: if the first user terminal is within a preset time (such as 3 seconds or 5 seconds) The UDP response of thin cloud server is not received, and the judgement of the first user terminal currently has internet, then takes by cloud MQTT The domain name and port numbers of business are connected to the MQTT service in cloud.In this embodiment, the MQTT service can be deployed to such as Ali's cloud or Tencent's cloud.
It should be pointed out that will start a thread when starting of the first user terminal, constantly to current local Net sends udp broadcast, it is therefore an objective to the presence of oneself is broadcasted, if current local area network environment is with the presence of thin cloud server, thin cloud Server can reply a udp broadcast when receiving the udp broadcast of the first user terminal, indicate the presence of thin cloud server.So First user terminal can obtain the IP address of thin cloud server, to be connected to by the contiguous function that MQTT program provides micro- MQTT service above Cloud Server.
Therefore, when the first user terminal is in internet environment, the theme message that the first user terminal issues will be sent out The MQTT to Cloud Server is sent to service.When the first user terminal is in LAN environment, what the first user terminal issued Theme message services the MQTT being sent on thin cloud server.
It should be pointed out that thin cloud server is with Cloud Server, there are following differences:
The placement location of the two is different, and Cloud Server can be generally arranged in the computer room of operating side;And thin cloud server meeting It is arranged in field of employment, such as classroom;
Thin cloud server and Cloud Server all can provide network data resource service, Cloud Server be to provide total data and Resource, and thin cloud server is the subset of Cloud Server resource;
Cloud Server is the server in internet, and thin cloud server is the server in local area network;
Cloud Server be it is shared, all line personnels can be used, and thin cloud server be comparatively it is dedicated, limit It just can be used in the crowd of particular range, for example be placed in the indoor thin cloud server of religion, be then only limited to indoor in the religion Personnel (Faculty and Students) use, and the personnel outside classroom are not available then.
Optionally, thin cloud server is mounted in a classroom, other classrooms are not available the thin cloud server.Every religion Room is installed by one thin cloud server.
Step 102, the selection of second user terminal currently needs state to be used, and the corresponding MQTT service of the state is led Topic message is sent to network MQTT server.
It should be pointed out that the MQTT service theme that the corresponding MQTT service theme message of the state and step 101 are subscribed to Message is the same, such as corresponding first theme message of class state or the corresponding second theme message of state after class.? In the step, according to actual needs, selection currently needs state to be used to second user terminal, and by the corresponding MQTT of the state Service theme message is sent to the MQTT server on network server.Optionally, the second user terminal in step 102 can be with It is primary user's terminal, such as teacher's terminal.
As another embodiment of the invention, before step 102, the method also includes: second user terminal connects It is connected to network MQTT server.I.e. when second user terminal starts, udp broadcast is sent to current local area network, if default The UDP response of thin cloud server is received in time, then the IP address sent by thin cloud server is connected on thin cloud server MQTT service.
Specifically, when second user terminal starts, udp broadcast is sent to current local area network, if current local area network is deposited There is thin cloud server, then when thin cloud server receives the udp broadcast of second user terminal transmission, response udp broadcast is indicated The presence of thin cloud server.So second user terminal obtains the IP address of thin cloud server, is then provided by MQTT program Contiguous function be connected to the MQTT on thin cloud server service.
Further, the method also includes: if second user terminal is within a preset time (such as 3 seconds or 5 seconds) The UDP response of thin cloud server is not received, and the judgement of second user terminal currently has internet, then takes by cloud MQTT The domain name and port numbers of business are connected to the MQTT service in cloud.In this embodiment, the MQTT service can be deployed to such as Ali's cloud or Tencent's cloud.
It should be pointed out that will start a thread when starting of second user terminal, constantly to current local Net sends udp broadcast, it is therefore an objective to the presence of oneself is broadcasted, if current local area network environment is with the presence of thin cloud server, thin cloud Server can reply a udp broadcast when receiving the udp broadcast of second user terminal, indicate the presence of thin cloud server.So Second user terminal can obtain the IP address of thin cloud server, to be connected to by the contiguous function that MQTT program provides micro- MQTT service above Cloud Server.
Therefore, when second user terminal is in internet environment, the theme message that second user terminal issues will be sent out The MQTT to Cloud Server is sent to service.When second user terminal is in LAN environment, what second user terminal issued Theme message services the MQTT being sent on thin cloud server.
As yet another embodiment of the present invention, thin cloud server can be added in classroom to provide local area network clothes Business.In LAN environment, the first user terminal, second user terminal all operation and response pass through thin cloud server It is completed in local area network, when major and minor user terminal needs to be attached to internet, transfer can also be carried out by thin cloud server. After adding thin cloud server, the first user terminal, second user terminal need the MQTT by receiving the transmission of thin cloud server Client service response udp broadcast obtains the IP address of thin cloud server, the MQTT service being connected on thin cloud server.
Step 103, network MQTT server disappear the MQTT service theme that the second user terminal received issues Breath is sent to the first user terminal, and first user terminal uses shape according to the MQTT service theme message switching received State.
When use state be upper class hour, can set limited for the function of the application program of the first user terminal, such as Do not allow to download, the application program that installation and opening are unrelated with classroom.It is possible to further be arranged to not allowing open application The icon of program locks, and when use state is switched to lower class hour, cancels these limitations automatically.
It, can also be by the way that MQTT message white list be arranged, so that the first user is whole as yet another embodiment of the present invention It can be with dynamic opening, closing application program when holding state at school.Such as first user terminal be mounted with that a default is attended class shape Open application program is not allowed when state, when the state of the first user terminal is class state, default icon is locked, and first uses Family terminal is not available the application program.But the first user terminal can be set as opening from the background, and apply journey this is opened The instruction of sequence is sent to network MQTT server, and such first user terminal allows to open the message of the application program receiving Afterwards, icon, which reforms into, does not lock, and the application program then can be used in the first user terminal.
Specifically, it pre-defines one and applies white list theme, for example be "/hitecloud/iclass/applist ", First user terminal can subscribe to this theme message.It can be arranged in second user terminal using white list, second user This then can be pushed to network MQTT server using white list theme and using white list by terminal.And network MQTT is serviced This message can be pushed to the first user terminal having subscribed using white list theme message by device automatically.First user terminal receives After PUSH message, parses the application packet name in message and corresponding application program is unlocked.
In order to control the use state of the first user terminal, the first user terminal can be set, and to be unable to manual switching upper and lower Class mode, only second user terminal can carry out state switching.
It can be seen that the method for switching terminal use state provided in an embodiment of the present invention passes through different theme message areas Point class state and after class state, guarantee student of upper class hour can only do and attend class related thing, and Auto-Sensing is gone to school and left school State simultaneously automatically switches class state and after class state, easy to use, efficiently, greatly improves user experience.User only needs Mobile terminal is connected to required WIFI hot spot of attending class, the state of going to school and leaving school that just can be set automatically according to current teacher carries out Corresponding switching.
The present invention also provides a kind of system of switching terminal use state, Fig. 2 is to provide in one embodiment of the invention Switching terminal use state system structural schematic diagram.As described in Figure 2, the system 200 of the switching terminal use state Including the first user terminal 201, second user terminal 202 and network MQTT server 203, the first user terminal 201 is connected to Network MQTT server 203, and MQTT service theme message is subscribed to, it is used according to the MQTT service theme message switching received State;Second user terminal 202, which is chosen, currently needs state to be used, and the corresponding MQTT service theme message of the state is sent out It send to network MQTT server;The MQTT that network MQTT server 203 issues the second user terminal 202 received takes Business theme message is sent to the first user terminal 201.
The MQTT service theme message includes the first theme message and second theme message, corresponds respectively to class state State after class.Therefore, the theme message attended class and theme message after class are different, respectively the first theme message and the Two theme messages, the embodiment of the present invention use different theme messages to distinguish class state and after class state.
It should be pointed out that the title of the first theme message and second theme message can be preset, such as first main The title of topic message can be set as/class/begin, and the title of second theme message can be set as/class/end, with Different theme messages is chosen convenient for user, to distinguish class state and after class state.
In some embodiments of the invention, the network MQTT server 203 includes Cloud Server or thin cloud service Device.Optionally, the first user terminal can be secondary user terminal, such as student terminal, and secondary user terminal can have multiple.
In some embodiments of the invention, when the first user terminal 201 starts, it is wide that UDP is sent to current local area network It broadcasts, if receiving the UDP response of thin cloud server within a preset time, the IP address sent by thin cloud server, connection MQTT service on to thin cloud server.Therefore, when the first user terminal starts, udp broadcast is sent to current local area network, such as There are thin cloud servers for fruit current local area network, then when thin cloud server receives the udp broadcast of the first user terminal transmission, answer Udp broadcast is answered, indicates the presence of thin cloud server.So the first user terminal obtains the IP address of thin cloud server, then leads to Cross the MQTT service that the contiguous function that MQTT program provides is connected on thin cloud server.
In some embodiments of the invention, if the first user terminal 201 does not receive thin cloud clothes within a preset time Be engaged in the UDP response of device, and the first user terminal 201 judges currently there is internet, then the domain name serviced by cloud MQTT with Port numbers are connected to the MQTT service in cloud.
It should be pointed out that will start a thread when starting of the first user terminal, constantly to current local Net sends udp broadcast, it is therefore an objective to the presence of oneself is broadcasted, if current local area network environment is with the presence of thin cloud server, thin cloud Server can reply a udp broadcast when receiving the udp broadcast of the first user terminal, indicate the presence of thin cloud server.So First user terminal can obtain the IP address of thin cloud server, to be connected to by the contiguous function that MQTT program provides micro- MQTT service above Cloud Server.
Therefore, when the first user terminal is in internet environment, the theme message that the first user terminal issues will be sent out The MQTT to Cloud Server is sent to service.When the first user terminal is in LAN environment, what the first user terminal issued Theme message services the MQTT being sent on thin cloud server.
In some embodiments of the invention, before selection currently needs state to be used, second user terminal 202 connects It is connected to network MQTT server 203.
In some embodiments of the invention, when second user terminal 202 starts, it is wide that UDP is sent to current local area network It broadcasts, if receiving the UDP response of thin cloud server within a preset time, the IP address sent by thin cloud server, connection MQTT service on to thin cloud server.Specifically, when second user terminal starts, udp broadcast is sent to current local area network, If there are thin cloud servers for current local area network, when thin cloud server receives the udp broadcast of second user terminal transmission, Response udp broadcast indicates the presence of thin cloud server.So second user terminal obtains the IP address of thin cloud server, then The service of the MQTT on thin cloud server is connected to by the contiguous function that MQTT program provides.
In some embodiments of the invention, if second user terminal 202 does not receive thin cloud clothes within a preset time Be engaged in the UDP response of device, and second user terminal 202 judges currently there is internet, then the domain name serviced by cloud MQTT with Port numbers are connected to the MQTT service in cloud.
It should be pointed out that will start a thread when starting of second user terminal, constantly to current local Net sends udp broadcast, it is therefore an objective to the presence of oneself is broadcasted, if current local area network environment is with the presence of thin cloud server, thin cloud Server can reply a udp broadcast when receiving the udp broadcast of second user terminal, indicate the presence of thin cloud server.So Second user terminal can obtain the IP address of thin cloud server, to be connected to by the contiguous function that MQTT program provides micro- MQTT service above Cloud Server.
Therefore, when second user terminal is in internet environment, the theme message that second user terminal issues will be sent out The MQTT to Cloud Server is sent to service.When second user terminal is in LAN environment, what second user terminal issued Theme message services the MQTT being sent on thin cloud server.
When use state be upper class hour, can set limited for the function of the application program of the first user terminal, such as Do not allow to download, the application program that installation and opening are unrelated with classroom.It is possible to further be arranged to not allowing open application The icon of program locks, and when use state is switched to lower class hour, cancels these limitations automatically.
It, can also be by the way that MQTT message white list be arranged, so that the first user is whole as yet another embodiment of the present invention It can be with dynamic opening, closing application program when holding state at school.Such as first user terminal be mounted with that a default is attended class shape Open application program is not allowed when state, when the state of the first user terminal is class state, default icon is locked, and first uses Family terminal is not available the application program.But the first user terminal can be set as opening from the background, and apply journey this is opened The instruction of sequence is sent to network MQTT server, and such first user terminal allows to open the message of the application program receiving Afterwards, icon, which reforms into, does not lock, and the application program then can be used in the first user terminal.
In some embodiments of the invention, second user terminal 202 sends preset application white list theme message To network MQTT server 203, carried in the application white list theme message using white list theme and using white list List;Network MQTT server 203 will be pushed to the had subscribed using white list theme message using white list theme message One user terminal 201;After first user terminal 201 receives the application white list theme message of the push of network MQTT server 203, It parses in message and applies packet name, and corresponding application program is unlocked.
It can be seen that the system of switching terminal use state provided in an embodiment of the present invention passes through different theme message areas Point class state and after class state, guarantee student of upper class hour can only do and attend class related thing, and Auto-Sensing is gone to school and left school State simultaneously automatically switches class state and after class state, easy to use, efficiently, greatly improves user experience.User only needs Mobile terminal is connected to required WIFI hot spot of attending class, the state of going to school and leaving school that just can be set automatically according to current teacher carries out Corresponding switching.
It should be understood by those ordinary skilled in the art that: the discussion of any of the above embodiment is exemplary only, not It is intended to imply that the scope of the present disclosure (including claim) is limited to these examples;Under thinking of the invention, above embodiments Or it can also be combined between the technical characteristic in different embodiments, and there are different aspects present invention as described above Many other variations, in order to it is concise they do not provided in details.Therefore, all within the spirits and principles of the present invention, Any omission, modification, equivalent replacement, improvement for being made etc., should all be included in the protection scope of the present invention.

Claims (16)

1. a kind of method of switching terminal use state, which is characterized in that the described method includes:
First user terminal is connected to network MQTT server, and subscribes to MQTT service theme message;
The selection of second user terminal currently needs state to be used, and the corresponding MQTT service theme message of the state is sent to Network MQTT server;
The MQTT service theme message that the second user terminal received issues is sent to first by network MQTT server User terminal, first user terminal switch use state according to the MQTT service theme message received.
2. the method for switching terminal use state according to claim 1, which is characterized in that the network MQTT server Including Cloud Server or thin cloud server.
3. the method for switching terminal use state according to claim 2, which is characterized in that the first user terminal is connected to Network MQTT server, comprising:
When the starting of the first user terminal, udp broadcast is sent to current local area network, if receiving thin cloud service within a preset time The UDP response of device, the then IP address sent by thin cloud server, the MQTT service being connected on thin cloud server.
4. the method for switching terminal use state according to claim 3, which is characterized in that the first user terminal is connected to Network MQTT server, further includes:
If the first user terminal does not receive the UDP response of thin cloud server, and the first user terminal within a preset time Judgement currently has internet, then is serviced by the MQTT that the cloud MQTT domain name serviced and port numbers are connected to cloud.
5. the method for switching terminal use state according to claim 2, which is characterized in that the selection of second user terminal is worked as Preceding need state to be used, before, further includes: second user terminal is connected to network MQTT server.
6. the method for switching terminal use state according to claim 5, which is characterized in that second user terminal is connected to Network MQTT server, comprising:
When the starting of second user terminal, udp broadcast is sent to current local area network, if receiving thin cloud service within a preset time The UDP response of device, the then IP address sent by thin cloud server, the MQTT service being connected on thin cloud server.
7. the method for switching terminal use state according to claim 6, which is characterized in that second user terminal is connected to Network MQTT server, further includes:
If second user terminal does not receive the UDP response of thin cloud server, and second user terminal within a preset time Judgement currently has internet, then is serviced by the MQTT that the cloud MQTT domain name serviced and port numbers are connected to cloud.
8. the method for switching terminal use state according to claim 1, which is characterized in that further include:
Preset application white list theme message is sent to network MQTT server by second user terminal, described to apply white list It is carried in theme message using white list theme and using white list;
Network MQTT server will be pushed to have subscribed using white list theme message and use using the first of white list theme message Family terminal;
After first user terminal receives the application white list theme message of network MQTT server push, the application in message is parsed Packet name, and corresponding application program is unlocked.
9. a kind of system of switching terminal use state, which is characterized in that including the first user terminal, second user terminal and net Network MQTT server,
First user terminal is connected to network MQTT server, and subscribes to MQTT service theme message, according to the MQTT received Service theme message switches use state;
The selection of second user terminal currently needs state to be used, and the corresponding MQTT service theme message of the state is sent to Network MQTT server;
The MQTT service theme message that the second user terminal received issues is sent to first by network MQTT server User terminal.
10. the system of switching terminal use state according to claim 9, which is characterized in that the network MQTT service Device includes Cloud Server or thin cloud server.
11. the system of switching terminal use state according to claim 10, which is characterized in that when the first user terminal opens When dynamic, udp broadcast is sent to current local area network, if receiving the UDP response of thin cloud server within a preset time, by micro- The IP address that Cloud Server is sent, the MQTT service being connected on thin cloud server.
12. the system of switching terminal use state according to claim 11, which is characterized in that if the first user terminal The UDP response of thin cloud server is not received within a preset time, and the judgement of the first user terminal currently has internet, then leads to The domain name and port numbers for crossing cloud MQTT service are connected to the MQTT service in cloud.
13. the system of switching terminal use state according to claim 10, which is characterized in that make choosing current needs Before state, second user terminal is connected to network MQTT server.
14. the system of switching terminal use state according to claim 13, which is characterized in that when second user terminal opens When dynamic, udp broadcast is sent to current local area network, if receiving the UDP response of thin cloud server within a preset time, by micro- The IP address that Cloud Server is sent, the MQTT service being connected on thin cloud server.
15. the system of switching terminal use state according to claim 14, which is characterized in that if second user terminal The UDP response of thin cloud server is not received within a preset time, and the judgement of second user terminal currently has internet, then leads to The domain name and port numbers for crossing cloud MQTT service are connected to the MQTT service in cloud.
16. the system of switching terminal use state according to claim 14, which is characterized in that second user terminal will be pre- If be sent to network MQTT server using white list theme message, carry application in the application white list theme message White list theme and apply white list;
Network MQTT server will be pushed to have subscribed using white list theme message and use using the first of white list theme message Family terminal;
After first user terminal receives the application white list theme message of network MQTT server push, the application in message is parsed Packet name, and corresponding application program is unlocked.
CN201810194631.XA 2018-03-09 2018-03-09 Method and system for switching use state of terminal Active CN110247941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810194631.XA CN110247941B (en) 2018-03-09 2018-03-09 Method and system for switching use state of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810194631.XA CN110247941B (en) 2018-03-09 2018-03-09 Method and system for switching use state of terminal

Publications (2)

Publication Number Publication Date
CN110247941A true CN110247941A (en) 2019-09-17
CN110247941B CN110247941B (en) 2022-12-13

Family

ID=67882210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810194631.XA Active CN110247941B (en) 2018-03-09 2018-03-09 Method and system for switching use state of terminal

Country Status (1)

Country Link
CN (1) CN110247941B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN114785603A (en) * 2022-04-26 2022-07-22 英赛克科技(北京)有限公司 MQTT protocol-based security protection method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404402A (en) * 2011-11-22 2012-04-04 康佳集团股份有限公司 Controllable intelligent mobile tablet terminal implementation method and system
WO2017066715A1 (en) * 2015-10-14 2017-04-20 Cambridge Blockchain, LLC Systems and methods for managing digital identities
CN106844667A (en) * 2017-01-20 2017-06-13 华南理工大学 A kind of mobile terminal examination question method of the distribution with answering based on MQTT agreements
WO2017173899A1 (en) * 2016-04-05 2017-10-12 中兴通讯股份有限公司 Terminal, device server, network message processing method, system, and storage medium
CN107358828A (en) * 2017-09-06 2017-11-17 华中师范大学 A kind of classroom interaction tutoring system and method
CN107547951A (en) * 2017-09-05 2018-01-05 艾牛(北京)科技有限公司 A kind of mobile terminal management-control method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404402A (en) * 2011-11-22 2012-04-04 康佳集团股份有限公司 Controllable intelligent mobile tablet terminal implementation method and system
WO2017066715A1 (en) * 2015-10-14 2017-04-20 Cambridge Blockchain, LLC Systems and methods for managing digital identities
WO2017173899A1 (en) * 2016-04-05 2017-10-12 中兴通讯股份有限公司 Terminal, device server, network message processing method, system, and storage medium
CN106844667A (en) * 2017-01-20 2017-06-13 华南理工大学 A kind of mobile terminal examination question method of the distribution with answering based on MQTT agreements
CN107547951A (en) * 2017-09-05 2018-01-05 艾牛(北京)科技有限公司 A kind of mobile terminal management-control method and system
CN107358828A (en) * 2017-09-06 2017-11-17 华中师范大学 A kind of classroom interaction tutoring system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN112422544B (en) * 2020-11-09 2023-06-30 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol
CN114785603A (en) * 2022-04-26 2022-07-22 英赛克科技(北京)有限公司 MQTT protocol-based security protection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110247941B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN110352451A (en) One kind is the same as screen teaching method, device and system, smart machine and storage medium
CN101365120B (en) Data centralized management method for network video monitoring system
CN104320480A (en) Control method for intelligent home equipment and cloud server
CN105610777B (en) Remote living broadcast method and system
CN106506535A (en) A kind of many people are with the interactive interactive system of screen
CN101365119A (en) Video recording balance equalizing method used for network video monitoring system
CN101365118A (en) Video monitoring system based on computer network
AT15530U1 (en) MULTICANAL VIDEO INTERCOM SYSTEM WITH ACCESS TO ADVANCED DIGITAL SERVICES
CN105187296A (en) Studio authority acquisition method and system
CN102546646A (en) System and method for realizing voice talkback function
CN104247386B (en) Conference system
CN101662508B (en) Method for data transmission based on point-to-point protocol, device and system thereof
CN103595759A (en) Desktop presenting method based on cloud
CN110247941A (en) The method and system of switching terminal use state
CN105025467B (en) A kind of terminal control method and system based on MDM
CN101300562A (en) Method and apparatus regarding use of a service convergence fabric
CN106162313A (en) A kind of multi-screen interaction method and system
CN105376075B (en) Chatroom voice broadcast system and voice broadcast method based on web
CN110062288A (en) Application management method, device, user terminal, multimedia terminal and storage medium
CN107302478A (en) The long-range control method and system of a kind of smart home
CN101621667B (en) Video providing method and system, and network device
KR20070060997A (en) System and method for providing media-contents of home network using web services
US10505811B2 (en) Multi-terminal interaction relation maintenance system and method
CN101287094A (en) Method and system for implementing media operation of multimedia meetings
CN106488269A (en) System and method to television equipment control is realized based on third-party application platform

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
GR01 Patent grant
GR01 Patent grant