CN110166487A - Lan device information transferring method, main equipment, storage medium and smart machine - Google Patents
Lan device information transferring method, main equipment, storage medium and smart machine Download PDFInfo
- Publication number
- CN110166487A CN110166487A CN201910533951.8A CN201910533951A CN110166487A CN 110166487 A CN110166487 A CN 110166487A CN 201910533951 A CN201910533951 A CN 201910533951A CN 110166487 A CN110166487 A CN 110166487A
- Authority
- CN
- China
- Prior art keywords
- equipment
- theme
- mqtt
- information
- module
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2801—Broadband local area networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Present invention discloses lan device information transferring method, main equipment, storage medium and smart machine, the equipment used in local area network includes MQTT Server module and MQTT Client module;MQTT Server module is for running MQTT agreement;MQTT Client module is used to connect the MQTT Server module of other equipment by subscribing relationship;Method, which includes: main equipment, reaches subscription by MQTT Server module and the MQTT Client intermodule from equipment;Information is transmitted to by subscribing to from equipment, or by subscribing to the information obtained by transmitting from equipment.Lan device information transferring method, main equipment, storage medium and smart machine of the present invention, information can be issued other multiple equipment by an equipment by subscribing to by lan device information transferring method, information transfer efficiency is higher, and it can quickly find qualified equipment in local area network, search speed is faster, master-slave relationship quickly can also be established and be released, facilitates and establishes and release communication in local area network between equipment component.
Description
Technical field
The present invention relates to local area network field, a kind of lan device information transferring method is especially related to, master sets
Standby, storage medium and smart machine.
Background technique
In a local network, an equipment is main equipment, and optionally multiple equipment is used as from mutual between equipment, master-slave equipment
Communication, main equipment need to know the IP address and device name of other equipment, when needing to keep communicating for a long time, need to build
Vertical TCP long connection, has the following problems:
1, equipment does not know the IP and device name of other all devices in local area network, needs when inquiring other equipment
It searches manually, it is more inconvenient.
2, equipment room cannot arbitrarily select master-slave equipment to form communication network in local area network, need specific multiple equipment
Between transmit information when, it is more inconvenient.
3, it is communicated between master-slave equipment in local area network and lacks point-to-point transmitting message mechanism, and the mode of existing broadcast
Or multicast mode sends information mode, inefficiency one by one.
Summary of the invention
The main object of the present invention is to provide a kind of lan device information transferring method, main equipment, storage medium and intelligence
Energy equipment, to solve the problems, such as that point-to-point information transfer efficiency is low in local area network.
The present invention proposes a kind of lan device information transferring method, and the equipment used in local area network includes MQTT
Server module and MQTT Client module;MQTT Server module is for running MQTT agreement;MQTT Client module
For connecting the MQTT Server module of other equipment by subscribing relationship;
Lan device information transferring method includes:
Main equipment reaches subscription by MQTT Server module and the MQTT Client intermodule from equipment;
Information is transmitted to by subscribing to from equipment, or by subscribing to the information obtained by transmitting from equipment.
Further, main equipment is reached with the MQTT Client intermodule from equipment by MQTT Server module and is ordered
Before the step of readding, comprising:
By user, randomly selected first equipment receives the main equipment of user's input and from equipment in local area network
Setting instruction, set in a local network main equipment and at least one from equipment.
Further, equipment includes DLNA Render module and DLNA Serach module in local area network; DLNA
Render module is for running DLNA Render agreement;DLNA Serach module runs DLNA for searching in local area network
The equipment of Render agreement;
By user, randomly selected first equipment receives the main equipment of user's input and from equipment in local area network
Setting instruction, set in a local network main equipment and at least one from equipment the step of, comprising:
By user, randomly selected first equipment receives the main equipment of user's input and from equipment in local area network
Setting instruction;
It is instructed according to setting, is currently running by the way that the DLNA Serach block search of the first equipment is all into local area network
Second equipment of DLNA Render agreement, the first equipment and the second equipment are all the equipment in local area network;
Instructed according to setting, chosen in the first equipment and the second equipment a main equipment and at least one from setting
It is standby.
Further, main equipment is reached with the MQTT Client intermodule from equipment by MQTT Server module and is ordered
The step of readding, comprising:
Theme is generated by MQTT Server module;
It is requested according to the subscription of acquisition, makes to subscribe to corresponding theme from equipment, subscribe to request by from equipment MQTT
Client module is sent.
Further, by information by subscribing to the step of being transmitted to from equipment, comprising:
Go out one or more selected themes according to from equipment and setting Rules Filtering, each at least orders from the device
Read a selected theme;
Corresponding to send the information with subject name to selected theme, subject name matches with selected theme;
Information is respectively sent to have subscribed the slave equipment of selected theme by selected theme.
Further, go out one or more selected themes according to from equipment and setting Rules Filtering, each from equipment
In the step of at least subscribing to a selected theme, comprising:
It is selected theme by the theme individually subscribed to from equipment if being one from equipment;
If being multiple from equipment, it is determined whether have only by multiple the first themes subscribed to from equipment;
If there is the first theme, the first theme is selected theme;
If without the first theme, it is determined whether have only by multiple second themes that part is subscribed to from equipment from the device;
If there is second theme, second theme and multiple slave equipment for not subscribing to second theme from the device are individually ordered
The theme read all is selected theme;
If the theme that multiple slave equipment from the device are individually subscribed to all is selected theme, often without second theme
It is a to correspond to a theme from equipment.
Further, information is respectively sent to have subscribed the step of the slave equipment of selected theme by selected theme
Suddenly, comprising:
Obtain the IP address pending for subscribing to the slave equipment of selected theme by subscription list, subscription list include theme and
Have subscribed the IP address and title of the slave equipment of corresponding theme;
By MQTT Server module, is sent information to respectively according to IP address pending and have subscribed selected theme
From the MQTT Client module of equipment.
The application also proposes a kind of main equipment, comprising:
MQTT Server module, for running MQTT agreement;
MQTT Client module, for connecting the MQTT Server module of other equipment by subscribing relationship;
Main equipment further include:
Subscribing module, for reaching subscription by MQTT Server module and the MQTT Client intermodule from equipment;
Information conveyance module is transmitted to from equipment for passing through to subscribe to information, or is obtained by subscribing to by passing from equipment
Defeated information.
The application also proposes a kind of storage medium, is computer-readable storage medium, is stored thereon with computer journey
Sequence, computer program are performed the lan device information transferring method for realizing any of the above-described.
The application also proposes a kind of smart machine, including memory, processor and storage on a memory and can located
The computer program run on reason device, processor realize the lan device information of any of the above-described when executing computer program
Transmission method.
Lan device information transferring method, main equipment, storage medium and smart machine of the present invention, lan device letter
Information can be issued other multiple equipment by an equipment by subscribing to by breath transmission method, and information transfer efficiency is higher, and
Qualified equipment in local area network can be quickly found, search speed is faster, additionally it is possible to quickly establish and release master
From relationship, facilitates and establish and release communication in local area network between equipment component.
Detailed description of the invention
Fig. 1 is the step schematic diagram of one embodiment of lan device information transferring method of the present invention;
Fig. 2 is the structural schematic block diagram of the storage medium of one embodiment of the invention;
Fig. 3 is the structural schematic block diagram of the computer equipment of one embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to limit this hair
It is bright.
In the present invention, applied to the equipment in local area network, including DLNA Render module, DLNA Serach module,
MQTT Server module and MQTT Client module;DLNA Render module, for running DLNA Render agreement;
DLNA Serach module, for searching in local area network the equipment for running DLNA Render agreement;MQTT Server module is used
In operation MQTT agreement;MQTT Client module connects the MQTT Server module of other equipment by subscribing relationship.
DLNA Render, DLNA Serach is run in each equipment simultaneously.
MQTT Server and MQTT Client are also to be run in each equipment simultaneously.
Wherein, DLNA Render module, DLNA Serach module, MQTT Server module, MQTT Client module
It is the part that corresponding program has been run in host.
DLNA Render module refers to the multicast for having monitoring and responding DLNA agreement, runs the module of DLNA agreement.
DLNA Serach module refers to the module for having and sending DLNA multicast packets and handling response.
MQTT Server module refers to the server module for realizing MQTT agreement, MQTT agreement (Message Queuing
Telemetry Transport), it is translated come be exactly the transmission of remote signalling message queue, be IBM Corporation proposed in 1999, existing
It is 3.1.1 in latest edition.MQTT is the distribution subscription agreement based on TCP.
MQTT Client module refers to that MQTT Client refers to the client modules for realizing MQTT agreement.
Referring to Fig.1, the application proposes a kind of lan device information transferring method, and the equipment used in local area network includes
MQTT Server module and MQTT Client module;
Lan device information transferring method includes:
S1, main equipment reach subscription by MQTT Server module and the MQTT Client intermodule from equipment;
S2, information is transmitted to by subscribing to from equipment, or by subscribing to the information obtained by transmitting from equipment.
In above-mentioned steps S1, it can make main equipment by subscribing to and constitute connection relationship from equipment, main equipment and from setting
It is standby to build group based on subscribing to, it can also be by unsubscribing dismission group, group of founding a capital and dismission group are more convenient, in use, can
To fast implement the transmitting of the information between multiple specific users, when not used, group can be dismissed, avoids the waste of resource.
In above-mentioned steps S2, information can be text information, be also possible to audio-frequency information, and information can pass through data
The form of packet is sent.
In some embodiments, therefore the subscription before subscription is undertaking is not as a result, need step S1, directly according to step
Rapid S2 realizes the conveying to information.
Step S1-S2 is that system instructs completion by the operation of user, is also possible to be instructed according to the purpose of user, from
It is dynamic to complete, such as the purpose instruction of user includes information and the equipment to be sent.
In some embodiments, main equipment passes through MQTT Server module and the MQTT Client intermodule from equipment
Before the step S1 for reaching subscription, comprising:
S3, by user in local area network randomly selected first equipment receive user's input main equipment and from
The setting of equipment instructs, set in a local network a main equipment and at least one from equipment.
In above-mentioned steps S3, the setting instruction of user can be what user inputted in real time, can also pre-set
, it is issued after meeting trigger condition, such as triggered after pressing shortcut key, main equipment and be all setting in local area network from equipment
It is standby, main equipment and from equipment be all by DLNA Serach block search to, do not need input IP address, or on the net
It is checked one by one in neighbours, the speed of search is faster, more efficient.
In some embodiments, equipment includes DLNA Render module and DLNA Serach module in local area network;It is logical
The user main equipment of randomly selected first equipment reception user's input and setting from equipment in local area network is crossed to refer to
It enables, sets step S3 of the main equipment at least one from equipment in a local network, comprising:
S31, by user in local area network randomly selected first equipment receive user's input main equipment and from
The setting of equipment instructs;
S32, according to setting instruct, by the DLNA Serach block search of the first equipment into local area network it is all
The second equipment of DLNA Render agreement is run, the first equipment and the second equipment are all the equipment in local area network;
S33, according to setting instruct, in the first equipment and the second equipment choose a main equipment and at least one from
Equipment.
In above-mentioned steps S31, the first equipment is usually the terminal devices such as computer or mobile phone.
In above-mentioned steps S32, the equipment of only operation DLNA Render agreement can be retrieved, the base of retrieval
Plinth relies on the connection with local area network, more efficient by DLNA Serach block search enhanced convenience;The control of user refers to
Order can be that user issues in real time, can also pre-set, issue after meeting trigger condition, such as press fast
It is triggered after prompt key, the control instruction that user constantly inputs can save, and for automatic excitation next time, improve working efficiency.
In above-mentioned steps S33, when main equipment, is arbitrary, generally the equipment that is operating of user, can also according to
The selection at family sets main equipment and from equipment, can be one or more from equipment.
In some embodiments, according to the control instruction of user, a main equipment and at least one are selected in a local network
After the step S33 of equipment, comprising:
S34, main equipment and IP address and title from equipment are obtained by main equipment;
S35, main equipment and IP address from equipment and title are stored in database.
In above-mentioned steps S34-S35, the IP address and title got is directly stored in database, and storage mode can
To use table, by table by the time of retrieval, the title of main equipment, IP address, and close from IP address of equipment and title
Connection gets up, and the IP address and title being stored in database can be used for the lookup when needing to know from facility information, does not need weight
It is newly obtained to from equipment, avoids just not leading to not the case where obtaining information online from equipment, working efficiency is higher.
In some embodiments, main equipment passes through MQTT Server module and the MQTT Client intermodule from equipment
Reach the step S1 of subscription, comprising:
S11, theme is generated by MQTT Server module;
S12, it is requested according to the subscription of acquisition, makes to subscribe to corresponding theme from equipment, subscribe to request by from equipment MQTT
Client module is sent.
In above-mentioned steps S11-S12, it can it is that main equipment generates after theme by subscribing to theme from equipment, it can also be with
Main equipment according to from the subscription of equipment request it is corresponding generate theme, and complete subscribing relationship with from equipment.
In some embodiments, requested according to the subscription of acquisition, make to subscribe to from equipment corresponding theme step S12 it
Afterwards, comprising:
S13, the subject name for representing subscribed theme is stored in subscription list, and the slave equipment that theme will be subscribed to
IP address and title deposit subscription list in, subject name and IP address and title phase mapping from equipment.
In above-mentioned steps S13, subject name represents theme, is stored in subscription list by the subject name that will be subscribed to,
Can in lists or get subscribe to the theme slave equipment IP address and title, subscription list quick obtaining can be passed through
To the information about the equipment for having subscribed the theme, and then quickly relates to and want to look for equipment relevant to the theme;It can
Facility information, such as all equipment for having subscribed the theme are obtained on a large scale, are also possible to small-scale acquisition equipment letter
Breath, such as some equipment for having subscribed the theme.
In some embodiments, information is transmitted to by subscribing to from equipment by main equipment in step S2, comprising:
S21, go out one or more selected themes according to from equipment and setting Rules Filtering, each from the device extremely
A selected theme is subscribed to less;
S22, corresponding information of the transmission with subject name to selected theme, subject name and selected theme phase
Matching;
S23, information is respectively sent to have subscribed the slave equipment of selected theme by selected theme.
In above-mentioned steps S21-23, it is therefore an objective to achieve the effect that send information to specific user, be selected by determining
Fixed theme can determination to transmit the theme of information, send the information with subject name to the theme selected because in the presence of
Subscribing relationship, the equipment for having subscribed corresponding theme can receive the information, and then reach and will send information to by main equipment
Accordingly from the effect of equipment, the same theme can be all subscribed to from equipment, at this point, if there is the message of this theme, then from setting
It is standby all to receive message.It is multiple that respectively different themes can also be subscribed to from equipment, at this point, will receive different messages.Individually from
Equipment can subscribe to identical or different theme simultaneously, and the theme quantity subscribed to is unrestricted.
In another embodiment, theme can be created, allows need to receive later after the received equipment of needs has been determined
The equipment of information subscribes to the theme, and by way of sending the information to selected theme with subject name, makes received
Equipment receives information.
In some embodiments, go out one or more selected themes according to from equipment and setting Rules Filtering, each
The step S21 of a selected theme is at least subscribed to from the device, comprising:
If S211, from equipment be one, be selected theme by the theme individually subscribed to from equipment;
If S212, from equipment be it is multiple, it is determined whether have only by it is multiple from equipment subscribe to the first themes;
If S213, having the first theme, the first theme is selected theme;
If S214, without the first theme, it is determined whether there is second only subscribed to by multiple parts from the device from equipment
Theme;
If S215, having second theme, second theme and multiple slave equipment for not subscribing to second theme from the device
The theme individually subscribed to all is selected theme;
If S216, without second theme, the theme that multiple slave equipment from the device are individually subscribed to all is selected master
Topic, each from the corresponding theme of equipment.
In above-mentioned steps S211-S216, corresponding theme can be filtered out by constantly judging, passes through the theme
Information can be allow quickly to be sent to accordingly from equipment, existing theme is can use through the above steps and realize letter
The conveying of breath.
In some embodiments, by selected theme by information be respectively sent to have subscribed selected theme from setting
Standby step S23, comprising:
S231, the IP address pending for subscribing to the slave equipment of selected theme is obtained by subscription list;
S232, by MQTT Server module, sent information to respectively according to IP address pending have subscribed it is selected
The MQTT Client module of the slave equipment of theme.
In above-mentioned steps S231-S232, after selected theme has been determined, it is sent information to by selected theme
Specific equipment, when needing to send information, the equipment that can clearly be sent by IP address.
In some embodiments, by subscribing to the step of obtaining the information by transmitting from equipment in S2, comprising:
S24, the information sent from equipment is obtained by selected theme.
In above-mentioned steps S24, selected theme is one, meet condition theme can be it is multiple, from multiple satisfactions
One is randomly choosed in the theme of condition, is also possible to the theme determined in the theme for having subscription according to user instructions, when
After choosing determining theme, by sending the information with subject name to selected from the MQTT Client module of equipment
Theme, by selected theme, main equipment receives the information of transmission.
The application also proposes a kind of main equipment, comprising:
MQTT Server module, for running MQTT agreement;
MQTT Client module, for connecting the MQTT Server module of other equipment by subscribing relationship;
Main equipment further include:
Subscribing module, for reaching subscription by MQTT Server module and the MQTT Client intermodule from equipment;
Information conveyance module is transmitted to from equipment for passing through to subscribe to information, or is obtained by subscribing to by passing from equipment
Defeated information.
In some embodiments, the application main equipment further include:
Selecting module, for randomly selected first equipment to receive user's input in local area network by user
Main equipment and instructed from the setting of equipment, set in a local network main equipment and at least one from equipment.
In some embodiments, selecting module includes:
Order acquisition submodule, for randomly selected first equipment to receive user in local area network by user
The main equipment of input and from the setting of equipment instruct;
Submodule is searched for, for instructing according to setting, passes through the DLNA Serach block search of the first equipment to local
All the second equipment for being currently running DLNA Render agreement in net, the first equipment and the second equipment are all setting in local area network
It is standby;
Submodule is selected, for being instructed according to setting, one main equipment of selection in the first equipment and the second equipment, with
And at least one is from equipment.
In some embodiments, selecting module further include:
Data acquisition submodule, for passing through main equipment acquisition main equipment and IP address and title from equipment;
Data sub-module stored, for main equipment and IP address from equipment and title to be stored in database.
In some embodiments, subscribing module includes:
Theme generates submodule, for generating theme by MQTT Server module;
Subscribe to submodule, for being requested according to the subscription of acquisition, make to subscribe to corresponding theme from equipment, subscribe to request by
It is sent from equipment MQTT Client module.
In some embodiments, subscribing module further include:
Second sub-module stored, the subject name for that will represent subscribed theme is stored in subscription list, and will be ordered
It reads in the IP address and title deposit subscription list of the slave equipment of theme, subject name and the IP address and title phase from equipment
Mapping.
In some embodiments, information conveyance module includes:
Submodule is screened, for going out one or more selected themes according to from equipment and setting Rules Filtering, each
A selected theme is at least subscribed to from the device;
Theme sending submodule, for sending the information with subject name accordingly to selected theme, subject name
Match with selected theme;
Sending submodule, for by selected theme by information be respectively sent to have subscribed selected theme from setting
It is standby.
In some embodiments, screening submodule includes:
First unit, if being selected theme by the theme individually subscribed to from equipment for being one from equipment;
Second unit, if for being multiple from equipment, it is determined whether have only by multiple the first themes subscribed to from equipment;
Third unit, if for there is the first theme, the first theme is selected theme;
Unit the 4th, if for without the first theme, it is determined whether have and only ordered by multiple parts from the device from equipment
The second theme read;
Unit the 5th, if second theme and multiple not subscribing to second theme from the device for there is a second theme
The theme individually subscribed to of slave equipment be all selected theme;
Unit the 6th, if for without second theme, the theme that multiple slave equipment from the device are individually subscribed to all to be
Selected theme, each from the corresponding theme of equipment.
In some embodiments, sending submodule includes:
Address acquisition unit, for obtaining the address IP pending for subscribing to the slave equipment of selected theme by subscription list;
Transmission unit respectively sends out information according to IP address pending for passing through the MQTT Server module of main equipment
It send to the MQTT Client module for the slave equipment for having subscribed selected theme.
In some embodiments, information conveyance module further include:
Acquisition submodule, for obtaining the information sent from equipment by selected theme.
Referring to Fig. 2, the application also proposes a kind of storage medium 100, is computer-readable storage medium, deposits thereon
Computer program 200 is contained, computer program 200 is performed the lan device information transmission side for realizing any of the above-described
Method.
Referring to Fig. 3, the application also proposes the embodiment of the present application, it is also proposed that a kind of smart machine 300, including memory
400, processor 500 and it is stored in the computer program 200 that can be run on memory 400 and on processor 500, handled
Device 500 realizes the lan device information transferring method in any of the above-described embodiment when executing computer program 200.
It will be understood by those skilled in the art that the smart machine 300 of the embodiment of the present application is above-mentioned involved for executing
One or more equipment in the application in method.These equipment can specially design and manufacture for required purpose, or
Person also may include the known device in general purpose computer.These equipment have the computer program 200 being stored in it or answer
With program, these computer programs 200 are selectively activated or are reconstructed.Such computer program 200, which can be stored in, to be set
In standby (for example, computer) readable medium or it is stored in and is suitable for storing e-command and is coupled to any class of bus respectively
In the medium of type, computer-readable medium includes but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD-
ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, at random
Memory), EPROM (Erasable Programmable Read-Only Memory, the read-only storage of erasable programmable
Device), EEPROM (Electrically Erasable Programmable Read-Only Memory, electric erazable programmable only
Read memory), flash memory, magnetic card or light card.It is, readable medium includes by equipment (for example, computer) with energy
Any medium for the form storage or transmission information enough read.
Lan device information transferring method, main equipment, storage medium and smart machine of the present invention, lan device letter
Information can be issued other multiple equipment by an equipment by subscribing to by breath transmission method, and information transfer efficiency is higher, and
Qualified equipment in local area network can be quickly found, search speed is faster, additionally it is possible to quickly establish and release master
From relationship, facilitates and establish and release communication in local area network between equipment component.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all uses
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other phases
The technical field of pass, is included within the scope of the present invention.
Claims (10)
1. a kind of lan device information transferring method, which is characterized in that the equipment used in the local area network includes: MQTT
Server module, for running MQTT agreement;MQTT Client module, for connecting the institute of other equipment by subscribing relationship
State MQTT Server module;
The lan device information transferring method includes:
Main equipment reaches subscription by MQTT Server module and the MQTT Client intermodule from equipment;
Information is transmitted to by the subscription described from equipment, or is obtained by described subscribe to by the institute transmitted from equipment
State information.
2. lan device information transferring method according to claim 1, which is characterized in that the main equipment passes through MQTT
Before the step of Server module reaches subscription with the MQTT Client intermodule from equipment, comprising:
By user in the local area network randomly selected first equipment receive user input main equipment and from
The setting of equipment instructs, set in the local area network main equipment and at least one described in from equipment.
3. lan device information transferring method according to claim 2, which is characterized in that equipment is equal in the local area network
Include:
DLNA Render module, for running DLNA Render agreement;DLNA Serach module, for searching for the local
The equipment of the DLNA Render agreement is run in net;
It is described that by user, randomly selected first equipment receives the main equipment of user's input in the local area network
It is instructed with from the setting of equipment, the main equipment is set in the local area network and described at least one from the step of equipment
Suddenly, comprising:
By user in the local area network randomly selected first equipment receive user input main equipment and from
The setting of equipment instructs;
It is instructed according to the setting, is owned by the DLNA Serach block search of first equipment into the local area network
It is currently running the second equipment of DLNA Render agreement, first equipment and the second equipment are all the equipment in local area network;
According to the setting instruct, in first equipment and the second equipment choose a main equipment and at least one from
Equipment.
4. lan device information transferring method according to claim 3, which is characterized in that the main equipment passes through MQTT
The step of Server module reaches subscription with the MQTT Client intermodule from equipment, comprising:
Theme is generated by MQTT Server module;
It is requested according to the subscription of acquisition, makes to subscribe to the corresponding theme from equipment, the subscription request is by described from equipment
MQTT Client module is sent.
5. lan device information transferring method according to claim 4, which is characterized in that it is described information is passed through it is described
Subscription be transmitted to it is described from equipment the step of, comprising:
Go out one or more selected themes from equipment and setting Rules Filtering according to described, it is each it is described from the device at least
Subscribe to a selected theme;
It is corresponding to send the information with subject name to the selected theme, the subject name and the selected theme
Match;
The information is respectively sent to by the selected theme to have subscribed the slave equipment of the selected theme.
6. lan device information transferring method according to claim 5, which is characterized in that it is described according to from equipment
And the setting Rules Filtering themes that one or more is selected out, it is each described that at least subscription one is described selected from the device
The step of theme, comprising:
If it is described from equipment be one, be the selected theme by the theme individually subscribed to from equipment;
If it is described from equipment be it is multiple, it is determined whether have only by it is the multiple from equipment subscribe to the first theme;
If there is first theme, the first theme is selected theme;
If without first theme, it is determined whether there is the second master only subscribed to by the multiple part from the device from equipment
Topic;
If there is the second theme, the second theme and the multiple the second theme is not subscribed to from the device
The theme individually subscribed to from equipment is all selected theme;
If the theme that the multiple slave equipment from the device is individually subscribed to all is selected master without the second theme
Topic, each from the corresponding theme of equipment.
7. lan device information transferring method according to claim 5, which is characterized in that described by described selected
The information is respectively sent to the step of having subscribed the slave equipment of the selected theme by theme, comprising:
The IP address pending for subscribing to the slave equipment of the selected theme is obtained by subscription list, the subscription list includes theme
With the IP address and title of the slave equipment for having subscribed corresponding theme;
By the MQTT Server module, the information is sent to respectively according to the IP address pending described in having subscribed
The MQTT Client module of the slave equipment of selected theme.
8. a kind of main equipment characterized by comprising
MQTT Server module, for running MQTT agreement;
MQTT Client module, for connecting the MQTT Server module of other equipment by subscribing relationship;
The main equipment further include:
Subscribing module, for reaching subscription by MQTT Server module and the MQTT Client intermodule from equipment;
Information conveyance module, it is described from equipment for information to be transmitted to by the subscription, or by subscriptions acquisition by
The information transmitted from equipment.
9. a kind of storage medium, which is characterized in that it is computer-readable storage medium, is stored thereon with computer program,
The computer program is performed the lan device information transferring method realized as described in any one of claims 1 to 7.
10. a kind of smart machine, which is characterized in that including memory, processor and be stored on the memory and can be
The computer program run on the processor, the processor realize such as claim 1 to 7 when executing the computer program
Any one of described in lan device information transferring method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910533951.8A CN110166487B (en) | 2019-06-19 | 2019-06-19 | Local area network equipment information transmission method, main equipment, storage medium and intelligent equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910533951.8A CN110166487B (en) | 2019-06-19 | 2019-06-19 | Local area network equipment information transmission method, main equipment, storage medium and intelligent equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110166487A true CN110166487A (en) | 2019-08-23 |
CN110166487B CN110166487B (en) | 2022-04-19 |
Family
ID=67625328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910533951.8A Active CN110166487B (en) | 2019-06-19 | 2019-06-19 | Local area network equipment information transmission method, main equipment, storage medium and intelligent equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110166487B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113295842A (en) * | 2021-04-08 | 2021-08-24 | 湖南科技大学 | Accurate evaluation system of mine side slope rock mass engineering stability |
WO2022246819A1 (en) * | 2021-05-28 | 2022-12-01 | 京东方科技集团股份有限公司 | Remote control system and method, and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377686A (en) * | 2010-08-10 | 2012-03-14 | 阿里巴巴集团控股有限公司 | Message subscription system, method and device |
CN105871968A (en) * | 2015-10-08 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Device search method, device and system |
CN106130882A (en) * | 2016-07-13 | 2016-11-16 | 北京百度网讯科技有限公司 | For the method and apparatus transmitting message |
CN106303928A (en) * | 2016-08-31 | 2017-01-04 | 深圳聚点互动科技有限公司 | A kind of many room audio group network-building method and system thereof |
CN107181792A (en) * | 2017-04-21 | 2017-09-19 | 珠海派诺科技股份有限公司 | Remote equipment management method and device based on MQTT and n2n VPN |
US20180115616A1 (en) * | 2016-10-21 | 2018-04-26 | infiswift Inc. | Method for bridging publish/subscribe brokers for guaranteed low-latency delivery |
US20180191663A1 (en) * | 2017-01-02 | 2018-07-05 | International Business Machines Corporation | Cluster assisted MQTT client coverage for fat-pipe cloud applications |
CN109040326A (en) * | 2018-11-02 | 2018-12-18 | 北京京东金融科技控股有限公司 | The method and apparatus of PUSH message |
CN109286525A (en) * | 2018-09-28 | 2019-01-29 | 昆明能讯科技有限责任公司 | It is a kind of based on MQTT communication and it is active and standby between heartbeat two unit standby method |
CN109474916A (en) * | 2018-11-19 | 2019-03-15 | 海信集团有限公司 | A kind of device authentication method, apparatus and machine readable media |
-
2019
- 2019-06-19 CN CN201910533951.8A patent/CN110166487B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377686A (en) * | 2010-08-10 | 2012-03-14 | 阿里巴巴集团控股有限公司 | Message subscription system, method and device |
CN105871968A (en) * | 2015-10-08 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Device search method, device and system |
CN106130882A (en) * | 2016-07-13 | 2016-11-16 | 北京百度网讯科技有限公司 | For the method and apparatus transmitting message |
CN106303928A (en) * | 2016-08-31 | 2017-01-04 | 深圳聚点互动科技有限公司 | A kind of many room audio group network-building method and system thereof |
US20180115616A1 (en) * | 2016-10-21 | 2018-04-26 | infiswift Inc. | Method for bridging publish/subscribe brokers for guaranteed low-latency delivery |
US20180191663A1 (en) * | 2017-01-02 | 2018-07-05 | International Business Machines Corporation | Cluster assisted MQTT client coverage for fat-pipe cloud applications |
CN107181792A (en) * | 2017-04-21 | 2017-09-19 | 珠海派诺科技股份有限公司 | Remote equipment management method and device based on MQTT and n2n VPN |
CN109286525A (en) * | 2018-09-28 | 2019-01-29 | 昆明能讯科技有限责任公司 | It is a kind of based on MQTT communication and it is active and standby between heartbeat two unit standby method |
CN109040326A (en) * | 2018-11-02 | 2018-12-18 | 北京京东金融科技控股有限公司 | The method and apparatus of PUSH message |
CN109474916A (en) * | 2018-11-19 | 2019-03-15 | 海信集团有限公司 | A kind of device authentication method, apparatus and machine readable media |
Non-Patent Citations (2)
Title |
---|
MOHAMED HANDOSA: ""Performance evaluation of MQTT-based internet of things systems"", 《2017 WINTER SIMULATION CONFERENCE (WSC)》 * |
党宏社、付晓军、张超、王黎: ""基于发布/订阅模型的WSN设计"", 《电子器件》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113295842A (en) * | 2021-04-08 | 2021-08-24 | 湖南科技大学 | Accurate evaluation system of mine side slope rock mass engineering stability |
WO2022246819A1 (en) * | 2021-05-28 | 2022-12-01 | 京东方科技集团股份有限公司 | Remote control system and method, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110166487B (en) | 2022-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104935583B (en) | A kind of cloud service platform, information processing method and data processing system | |
CN101395838B (en) | Data synchronization method, system and apparatus | |
CN110012083B (en) | Data transmission method, server and data transmission device | |
CN105353625A (en) | Method, device and system for binding intelligent equipment | |
CN105577818A (en) | Data transmission methods and apparatuses, and vehicle-mounted terminal | |
CN105472430A (en) | Method of making mobile terminal ring through intelligent television, equipment and system thereof | |
CN103139173A (en) | Terminal equipment, media exchange network system, media business downloading method and system | |
CN101772920A (en) | Method and apparatus for discovering universal plug and play device using resource information | |
CN110166487A (en) | Lan device information transferring method, main equipment, storage medium and smart machine | |
CN109802895A (en) | Data processing system, method and token management method | |
CN105959188B (en) | Method and device for controlling user terminal to be on-line | |
CN101442475A (en) | Distributed business acting method, network system and network appliance | |
JP3877738B2 (en) | Apparatus and method for connecting individually existing networks | |
CN103547339A (en) | File uploading method, client side and server side | |
CN101911664A (en) | Service control device, service control system, and method | |
CN100377522C (en) | OMA download realizing method in content distributing network | |
CN100476714C (en) | Apparatus, system, and method for processing printing operation on home network | |
CN113382065B (en) | File downloading method, device, system, equipment and storage medium | |
CN102685209A (en) | Method, device and facility for assisting user equipment to receive and dispatch instant message | |
CN103248654A (en) | Negotiation method, device and system for virtual desktop service parameters | |
CN107342929A (en) | A kind of sending method of new message notification, apparatus and system | |
CN108647077A (en) | File management method and device | |
CN111131753B (en) | Conference processing method and conference management platform server | |
CN103647703A (en) | Browser communication method and browser terminal | |
CN108540519B (en) | Balanced download control method and device |
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 |