CN105306442A - Proxy server and command transmission methods - Google Patents

Proxy server and command transmission methods Download PDF

Info

Publication number
CN105306442A
CN105306442A CN201510599158.XA CN201510599158A CN105306442A CN 105306442 A CN105306442 A CN 105306442A CN 201510599158 A CN201510599158 A CN 201510599158A CN 105306442 A CN105306442 A CN 105306442A
Authority
CN
China
Prior art keywords
information
session management
management module
respective objects
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
Application number
CN201510599158.XA
Other languages
Chinese (zh)
Other versions
CN105306442B (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.)
THROUGHTEK CO Ltd
Wisdom Technology (shenzhen) Co Ltd
Original Assignee
THROUGHTEK CO Ltd
Wisdom Technology (shenzhen) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by THROUGHTEK CO Ltd, Wisdom Technology (shenzhen) Co Ltd filed Critical THROUGHTEK CO Ltd
Priority to CN201510599158.XA priority Critical patent/CN105306442B/en
Publication of CN105306442A publication Critical patent/CN105306442A/en
Application granted granted Critical
Publication of CN105306442B publication Critical patent/CN105306442B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1045Proxies, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • 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/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • H04L9/3228One-time or temporary data, i.e. information which is sent for every authentication or authorization, e.g. one-time-password, one-time-token or one-time-key
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • H04L2012/6445Admission control
    • H04L2012/6448Medium Access Control [MAC]
    • H04L2012/6451Deterministic, e.g. Token, DQDB

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a proxy server and command transmission methods. The command transmission method comprises steps that an interface module receives a command from a client side and determines whether the command from the client side is a real time command, wherein the real time command comprises information of target devices and command information; if the command from the client side is the real time command, a session management module establishes an online channel with a corresponding target device according to the information of the target devices, and binds a port number of the online channel with the corresponding target device; and the session management module converts the command information into a protocol format of the corresponding target device, and sends the protocol format to the corresponding target device. Through adoption of the method, the development cost of the client side and the target device can be reduced.

Description

Proxy server and instruct transmission method thereof
Technical field
The present invention relates to communication network areas, particularly relate to a kind of proxy server and instruct transmission method thereof.
Background technology
Along with the progress of science and technology, the development of various intelligent terminal is maked rapid progress, and makes the convenient all the more diversity all the more of the use of each intelligent terminal, and such as making can easily mutually " call " between each intelligent terminal.But the agreement used due to different intelligent terminal is different, bottom operation difficulty, makes the development cost of intelligent terminal higher.
Summary of the invention
The technical problem to be solved in the present invention is, for the defect that the above-mentioned development cost of prior art is high, provides a kind of proxy server and instruct transmission method thereof, can reduce the development cost of terminal.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of instruct transmission method, comprising:
Interface module receives the instruction from client, and judges whether the instruction from client is real-time command, and described real-time command comprises information and the command information of destination apparatus;
When the instruction from client is real-time command, session management module sets up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device is bound;
Command information is converted to the protocol format of respective objects device by session management module, is then sent to respective objects device.
Further, also comprise:
After the session is completed, session management module discharges the memory headroom of corresponding real-time command and removes the binding of port numbers.
Further, set up the online passage between respective objects device at session management module according to the information of destination apparatus, and after the port numbers of described online passage and respective objects device are carried out the step of binding, also comprise:
Session management module produces the token corresponding to described online passage;
Session management module manages the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
The present invention also constructs a kind of instruct transmission method, comprising:
Interface module receives from the instruction of client, and judges whether the instruction from client is conditional order, and described conditional order comprises the information of destination apparatus, conditional information and command information;
When the instruction from client is conditional order, described conditional information is resolved to machine language by descriptive language by script parsing module;
After the conditional information of logic engine module after receiving parsing, the first notice is sent to session management module, and monitor condition instantly according to the conditional information after described parsing, and when condition meets trigger condition instantly, send the second notice to session management module;
Session management module, after receiving described first notice, is set up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device is bound; Command information, after receiving described second notice, is converted to the protocol format of respective objects device, is then sent to respective objects device by session management module.
Further, also comprise:
After the session is completed, the memory headroom of session management module release corresponding conditions instruction and the binding of releasing port numbers.
Further, after described conditional information to be resolved to the step of machine language by script parsing module by descriptive language, also comprise:
Script parsing module produces the token corresponding to described online passage;
Session management module manages the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
The present invention also constructs a kind of proxy server, for the instruction from client is sent to destination apparatus, comprising:
Interface module, for receiving the instruction from client, and judges whether the instruction from client is conditional order, and described conditional order comprises the information of destination apparatus, conditional information and command information;
Script parsing module, is connected to described interface module, and for when the instruction from client is conditional order, described conditional information is resolved to machine language by descriptive language;
Logic engine module, is connected to described script parsing module, and for after the conditional information after receiving parsing, sends the first notice to session management module; Also for monitoring condition instantly according to the conditional information after described parsing, and when condition meets trigger condition instantly, send the second notice to session management module;
Session management module, be connected to described logic engine module, and for, after receiving described first notice, set up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device are bound; And, after receiving described second notice, command information is converted to the protocol format of respective objects device, is then sent to respective objects device.
Further,
Described interface module, also for judging whether the instruction from client is real-time command, and described real-time command comprises information and the command information of destination apparatus;
Described session management module, also be connected to described interface module, and for when the instruction from client is real-time command, the online passage between respective objects device is set up according to the information of destination apparatus, and the port numbers of described online passage and respective objects device are bound, and, command information is converted to the protocol format of respective objects device, is then sent to respective objects device;
Further, also comprise:
Multiple Connection Service module, is connected between described session management module and respective objects device, and for maintaining described online passage and carrying out information forwarding according to described protocol format.
Further,
Described session management module, also for after the session is completed, discharges the memory headroom of corresponding real-time command or conditional order and removes the binding of port numbers.
Further,
Described script parsing module, also for when the instruction from client is conditional order, produces the token corresponding to described online passage;
Described session management module, also for when the instruction from client is real-time command, produces the token corresponding to described online passage;
Described session management module, also for managing the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
Implement technical scheme of the present invention, there is following beneficial effect:
1. because protocol conversion and condition judgment (when needed) all have proxy server to complete, so decrease the development cost of client and destination apparatus, make client and destination apparatus end all without the need to high gauge, and, reduce at distinct device integration cost.
2. can transfer to proxy server to maintain because maintaining connecting method, even if equipment is not online, also instruction can be retained in proxy server end, wait for that destination apparatus sends after reaching the standard grade, the power consumption of client can be reduced.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the logic diagram of proxy server embodiment one of the present invention;
Fig. 2 is the logic diagram of information transmission system embodiment one of the present invention;
Fig. 3 is the flow chart of instruct transmission method embodiment one of the present invention;
Fig. 4 is the flow chart of instruct transmission method embodiment two of the present invention;
Fig. 5 is the flow chart of instruct transmission method embodiment three of the present invention;
Fig. 6 is the flow chart of instruct transmission method embodiment four of the present invention;
Fig. 7 is the flow chart of instruct transmission method embodiment five of the present invention;
Fig. 8 is the flow chart of instruct transmission method embodiment six of the present invention;
Fig. 9 is the flow chart of instruct transmission method embodiment seven of the present invention.
Embodiment
Fig. 1 is the logic diagram of proxy server embodiment one of the present invention, proxy server is used for the command from client to destination apparatus, and the proxy server of this embodiment comprises interface module 11, (ScriptParser) module 12 resolved by script, logic engine (LogicalEngine) module 13, session management (sessionmanager) module 14 and multiple Connection Service (socketservice) module 15, 15 ', and, script parsing module 12 is connected with interface module 11 respectively with session management module 14, logic engine module 13 is connected with script parsing module 12 and session management module 14 respectively, multiple Connection Service module 15, 15 ' is also connected with session management module 14 respectively.The logical construction of each module is described below respectively:
Interface module 11 is for receiving the instruction from client, namely session is started, and judge that from the instruction of client be real-time command or conditional order, wherein, when described real-time command comprises information and the command information of destination apparatus, described conditional order comprises the information of destination apparatus, conditional information and command information.The agreement etc. that the information of destination apparatus such as comprises the ID of destination apparatus, the password corresponding to destination apparatus, destination apparatus use; Conditional information such as comprises when condition, where condition, event condition, compound condition etc.; Command information comprises order or action.This interface module 11 is such as SPI (ServiceProgrammingInterface, service programming interface) interface module, and its communication way is much first, user can be allowed to call out and related transmitting information with RESTAPI as method of reseptance.
Described conditional information, for when the conditional order from client, is resolved to machine language by descriptive language by script parsing module 12.
Logic engine module 13, for after the conditional information after receiving parsing, sends the first notice to session management module 14; Also for monitoring condition instantly according to the conditional information after parsing, and when condition meets trigger condition instantly, send the second notice to session management module 14.
Session management module 14, for when the instruction from client is real-time command, is set up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device is bound; And, command information is converted to the protocol format of respective objects device, is then sent to respective objects device; Also for when the instruction from client is conditional order, after receiving described first notice, set up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device are bound; And, after receiving described second notice, command information is converted to the protocol format of respective objects device, is then sent to respective objects device.
Multiple Connection Service module 15 ..., 15 ' for maintaining described online passage and carrying out information forwarding according to described protocol format, and session management module sets up online passage by corresponding Connection Service module and respective objects device.Certainly, in other embodiments, also can by Connection Service module 15 ..., 15 ' and session management module merge into single executive program.
In some preferred embodiments, session management module 11 is also for after the session is completed, namely, after real-time command or CMOV to destination apparatus, discharge the memory headroom of corresponding real-time command or conditional order and remove the binding of port numbers, this content space, for storing online channel information and port binding information, can reduce resource contention like this and consume excessively, thus being promoted to the highest by network efficiency utilance.Session management module 11 is also for managing the port numbers corresponding to different token (token), and the on line state maintained between described port numbers and respective objects equipment, like this, when user breaks, can recover online without the need to carrying out again online or logging device.
In other preferred embodiments, logic engine module 13 is also for managing, controlling and monitor all various condition such as event (such as whether certain event occurs), time (whether such as certain time arrives), space (such as whether reaching certain position) instantly.And, all control entries are placed in internal memory or database, until condition has been performed or has judged that performing loop stops, and can allow like this between all SPI main frames and carry out data syn-chronization.
Should understand, in certain embodiments, instruction from client only may comprise real-time command, or, only comprise conditional order, correspondingly, the logical construction of proxy server is also changed accordingly, such as, when the instruction from client only comprises real-time command, script parsing module and logic engine module can be saved.
Fig. 2 is the logic diagram of information transmission system embodiment one of the present invention, this information transmission system comprise multiple client 20 ..., 20 ', multiple destination apparatus 30 ..., 30 ' and proxy server 10, proxy server 10 be connected to client 20 ..., 20 ' and destination apparatus 30 ..., between 30 '.The logical construction of proxy server 10 can refer to the embodiment shown in Fig. 1, does not repeat at this.Client 20 ..., 20 ' be application layer representative, comprise various mobile device, mobile unit, browser, robot and various contact user application all in this type of.Destination apparatus 30 ..., 30 ' must to be present on network, or can receive and come from the various on-line environments of network instruction.In one example in which, client 20 produces an instruction, and (this instruction can be real-time command, also can be conditional order) and be sent to proxy server 10, proxy server 10 processes received instruction and changes, and is sent to destination apparatus 30 by network.
Instruction from client has two kinds: real-time command and conditional order, and wherein, real-time command comprises information and the command information of destination apparatus, and conditional order comprises the information of destination apparatus, conditional information and command information.For real-time command, proxy server main purpose is exactly instruction process be sent on destination apparatus in real time.For conditional order, proxy server needs resolve its logic and connect in different destination apparatus according to demand, and wait condition triggers and again instruction is sent to destination apparatus.
Fig. 3 is the flow chart of instruct transmission method embodiment one of the present invention, and this instruct transmission method comprises:
S11. interface module receives the instruction from client, and judges whether the instruction from client is real-time command, and described real-time command comprises information and the command information of destination apparatus, if so, then performs step S12;
S12. session management module is according to the online passage between the information foundation of destination apparatus with respective objects device, and the port numbers of described online passage and respective objects device is bound;
S13. command information is converted to the protocol format of respective objects device by session management module, is then sent to respective objects device.
Preferably, on the basis of above-described embodiment, this instruct transmission method also comprises:
After the session is completed, session management module discharges the memory headroom of corresponding real-time command and removes the binding of port numbers.
Preferably, after the step S12 of above-described embodiment, also comprise:
Session management module produces the token corresponding to described online passage;
Session management module manages the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
Fig. 4 is the flow chart of instruct transmission method embodiment two of the present invention, and this instruct transmission method comprises:
S21. interface module receives from the instruction of client, and judges whether the instruction from client is conditional order, and described conditional order comprises the information of destination apparatus, conditional information and command information, if so, then execution step S22;
S22. described conditional information is resolved to machine language by descriptive language by script parsing module;
S23. after the conditional information of logic engine module after receiving parsing, the first notice is sent to session management module, and monitor condition instantly according to the conditional information after described parsing, and when condition meets trigger condition instantly, send the second notice to session management module;
S24. session management module is after receiving described first notice, sets up the online passage between respective objects device, and the port numbers of described online passage and respective objects device are bound according to the information of destination apparatus; Command information, after receiving described second notice, is converted to the protocol format of respective objects device, is then sent to respective objects device by session management module.
Preferably, on the basis of above-described embodiment, also comprise:
After the session is completed, the memory headroom of session management module release corresponding conditions instruction and the binding of releasing port numbers.
Preferably, after step s 22, also comprise:
Script parsing module produces the token corresponding to described online passage;
Session management module manages the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
Fig. 5 is the flow chart of instruct transmission method embodiment three of the present invention, and in this embodiment, the instruction that client sends is a real-time command.Be below instruction transmission flow: client sends a real-time command by step a1 to interface module, the information that this instruction comprises destination apparatus (includes ID, password, use agreement) and command information, judge after interface module receives that received instruction is real-time command, start to record this daily record (log) information, and all information of packing, then session management module is sent it to by step a2, the command information received is converted to the protocol format that destination apparatus accepts by session management module immediately, and be sent to destination apparatus through step a3.After destination apparatus receives orders information, result is replied to session management module by step a4, session management module is sent to interface module through step a5 after collecting again, and interface module converts thereof into the data format specified by interface module again, and returns to client through step a6.
Fig. 6 is the flow chart of instruct transmission method embodiment four of the present invention, and in this embodiment, the instruction that client sends is continuous print real-time command.In general, when setting up online passage, the reaction time of each instruction can be reduced, therefore in the present embodiment, just first need carry out the foundation of online passage, be below instruction transmission flow: client sets up passage demand by step b1 to interface module transmission, this demand is directly transferred to session management module by step b2 by interface module after log, session management module sets up fixing online passage b3 according to the specified protocol of destination apparatus to respective objects device, after online Path Setup, immediately by returning token to interface module in step b4, representatively this online passage b3.Interface module converts thereof into specific protocol format after receiving token, and is sent to client through step b5.The token of this online passage is added command information and relevant parameter etc. and is sent to interface module through step b6 in the lump by client, interface module is sent to session management module through step b7 after being changed, session management module converts the protocol format that destination apparatus accepts to, and is sent to destination apparatus through step b8.After destination apparatus receives instruction, by step b9, result is back to session management module, session management module is changed it and is sent to interface module by step b10, and interface module carries out changing and being sent to client by step b11 again.Then be confirmed whether to continue, transfer instruction is continued if still need, then get back to step b6, otherwise send termination online-order by step b12 to interface module, this demand is informed session management module by step b13 by interface module after log, session management module closes online passage b3, and execution result is back to interface module by step b14, and interface module is back to client by step b15 after carrying out Data Format Transform to execution result again.
Fig. 7 is the flow chart of information transferring method embodiment four of the present invention, in this embodiment, the instruction that client sends is conditional order, and the instruction of this conditional order for causing according to event, and comprise the information of destination apparatus, conditional information and command information, be below instruction triggers flow process: client sends conditional order through steps d 1 to interface module, this conditional order comprises the information of various destination apparatus, conditional information and command information, after interface module log, script parsing module is sent it to by steps d 2, conditional information is wherein resolved to machine language by descriptive language by script parsing module, and produce corresponding token immediately, then interface module is sent to through steps d 3, interface module returns to client through steps d 4 after carrying out format conversion to it again, client can send requirement checking current state according to this token, even determine whether change conditional information.In addition, script parsing module is after generation machine language, logic engine module is sent it to through steps d 5, logic engine module sends the notice setting up online passage to session management module through steps d 6 according to the conditional information after parsing, session management module just sets up the online passage d8 with device 1 according to the information of the destination apparatus in conditional order, and obtain the port numbers of this online passage, and this port numbers and respective objects device are bound, then reply to logic engine module through steps d 7.After stand-by period T, event (Event) on device 1 occurs, such as, IP Camera (device 1) detects someone and invades, and sending this event information to session management module through steps d 9, session management module carries out after Data Format Transform through steps d 10 notification logic engine modules it.Event is pushed away by third party the service of broadcasting according to parameter requirements originally and transfers to client by logic engine module in steps d 11.Simultaneously, logic engine module is when judging to need triggering command according to conditional information, send the notice of carrying out protocol conversion to session management module through steps d 12, received command information is carried out the conversion of protocol format by session management module, and through steps d 13, the command information after conversion is sent to device 2.
Fig. 8 is the flow chart of instruct transmission method embodiment six of the present invention, in this embodiment, the instruction that client sends is conditional order, and this conditional order is the instruction judged according to event condition, and more emphasize rapid/real-time triggering command behavior, greatly reduce the reaction time (such as by being originally down to 0.02 second in 0.8 ~ 1.2 second).Be below instruction triggers flow process: client sends instruction through step c1 to interface module.Interface module receive and log after, script parsing module is sent it to through step c2, conditional information is wherein resolved to machine language by descriptive language by script parsing module, and produce corresponding token immediately, then interface module is sent to through step c3, interface module returns to client through step c4 after carrying out format conversion to it again, and client can send requirement checking current state according to this token, even whether to change conditional information.In addition, script parsing module is after generation machine language, logic engine module is sent it to through step c5, logic engine module sends the notice setting up online passage to session management module through step c6, session management module is set up with the online passage c8 of device 1 and is set up and the online passage c9 of device 2, and must the port numbers of these two online passages, and respectively itself and device 1, device 2 are bound, then reply to logic engine module through step c7.During time T after setting up passage c8, device 1 returns an event (Event) by step c10 to session management module, session management module transfers to logic engine module after this event being changed by step c11, logic engine module judges whether condition meets trigger condition instantly, after meeting all trigger conditions, send the notice of carrying out protocol format conversion immediately to session management module through step c13, after session management module carries out protocol format conversion to command information, directly command information is sent according to the port numbers previously obtained to device 2 (destination apparatus) in step c14.If occur without setting event of not replying, logic engine module then can push away via third party the service broadcast and occurs to client transmission event and triggered message in step c12.
Fig. 9 is the flow chart of information transferring method embodiment six of the present invention, in this embodiment, the instruction that client sends is conditional order, and the instruction of this conditional order for judging according to time conditions, when time conditions meets trigger condition, then go to send relevant command information.Be below instruction triggers flow process: client sends instruction through step e1 to interface module, this instruction comprises the information of destination apparatus, conditional information and command information, after interface module log, script parsing module is sent it to by step e2, conditional information is wherein resolved to machine language by descriptive language by script parsing module, and produce corresponding token immediately, then be sent to interface module through step e3, interface module returns to client through step e4 after carrying out format conversion to it again.In addition, script parsing module is after generation machine language, logic engine module is sent it to through step e5, logic engine module judges to need the device first opening online passage, and through step e6 announcement session administration module, session management module sets up the online passage e8 with destination apparatus according to notice, and returns the port used immediately through step e7.When meeting time triggered condition after logic engine module determination time T, protocol format conversion is carried out by step e9 announcement session administration module, after command information is carried out protocol conversion by session management module, through step e10, the command information after conversion is sent to destination apparatus, destination apparatus carries out corresponding actions according to the command information received, and return execution result through step e11 to session management module, after session management module carries out format conversion to received execution result information, logic engine module is sent to again through step e12, according to setting parameter, logic engine module determines whether that pushing away through the 3rd side the service broadcast by step e13 sends result to client.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.

Claims (11)

1. an instruct transmission method, is characterized in that, comprising:
Interface module receives the instruction from client, and judges whether the instruction from client is real-time command, and described real-time command comprises information and the command information of destination apparatus;
When the instruction from client is real-time command, session management module sets up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device is bound;
Command information is converted to the protocol format of respective objects device by session management module, is then sent to respective objects device.
2. instruct transmission method according to claim 1, its feature in, also comprise:
After the session is completed, session management module discharges the memory headroom of corresponding real-time command and removes the binding of port numbers.
3. instruct transmission method according to claim 1, it is characterized in that, set up the online passage between respective objects device at session management module according to the information of destination apparatus, and after the port numbers of described online passage and respective objects device are carried out the step of binding, also comprise:
Session management module produces the token corresponding to described online passage;
Session management module manages the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
4. an instruct transmission method, is characterized in that, comprising:
Interface module receives from the instruction of client, and judges whether the instruction from client is conditional order, and described conditional order comprises the information of destination apparatus, conditional information and command information;
When the instruction from client is conditional order, described conditional information is resolved to machine language by descriptive language by script parsing module;
After the conditional information of logic engine module after receiving parsing, the first notice is sent to session management module, and monitor condition instantly according to the conditional information after described parsing, and when condition meets trigger condition instantly, send the second notice to session management module;
Session management module, after receiving described first notice, is set up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device is bound; Command information, after receiving described second notice, is converted to the protocol format of respective objects device, is then sent to respective objects device by session management module.
5. instruct transmission method according to claim 4, its feature in, also comprise:
After the session is completed, the memory headroom of session management module release corresponding conditions instruction and the binding of releasing port numbers.
6. instruct transmission method according to claim 4, is characterized in that, after described conditional information to be resolved to the step of machine language by script parsing module by descriptive language, also comprises:
Script parsing module produces the token corresponding to described online passage;
Session management module manages the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
7. a proxy server, for the instruction from client is sent to destination apparatus, is characterized in that, comprising:
Interface module, for receiving the instruction from client, and judges whether the instruction from client is conditional order, and described conditional order comprises the information of destination apparatus, conditional information and command information;
Script parsing module, is connected to described interface module, and for when the instruction from client is conditional order, described conditional information is resolved to machine language by descriptive language;
Logic engine module, is connected to described script parsing module, and for after the conditional information after receiving parsing, sends the first notice to session management module; Also for monitoring condition instantly according to the conditional information after described parsing, and when condition meets trigger condition instantly, send the second notice to session management module;
Session management module, be connected to described logic engine module, and for, after receiving described first notice, set up the online passage between respective objects device according to the information of destination apparatus, and the port numbers of described online passage and respective objects device are bound; And, after receiving described second notice, command information is converted to the protocol format of respective objects device, is then sent to respective objects device.
8. proxy server according to claim 7, is characterized in that,
Described interface module, also for judging whether the instruction from client is real-time command, and described real-time command comprises information and the command information of destination apparatus;
Described session management module, also be connected to described interface module, and for when the instruction from client is real-time command, the online passage between respective objects device is set up according to the information of destination apparatus, and the port numbers of described online passage and respective objects device are bound, and, command information is converted to the protocol format of respective objects device, is then sent to respective objects device;
9. proxy server according to claim 8, is characterized in that, also comprises:
Multiple Connection Service module, is connected between described session management module and respective objects device, and for maintaining described online passage and carrying out information forwarding according to described protocol format.
10. proxy server according to claim 8, is characterized in that,
Described session management module, also for after the session is completed, discharges the memory headroom of corresponding real-time command or conditional order and removes the binding of port numbers.
11. proxy servers according to claim 8, is characterized in that,
Described script parsing module, also for when the instruction from client is conditional order, produces the token corresponding to described online passage;
Described session management module, also for when the instruction from client is real-time command, produces the token corresponding to described online passage;
Described session management module, also for managing the port numbers corresponding to different token, and maintains the on line state between described port numbers and respective objects equipment.
CN201510599158.XA 2015-09-17 2015-09-17 Proxy server and its instruction transmission method Active CN105306442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510599158.XA CN105306442B (en) 2015-09-17 2015-09-17 Proxy server and its instruction transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510599158.XA CN105306442B (en) 2015-09-17 2015-09-17 Proxy server and its instruction transmission method

Publications (2)

Publication Number Publication Date
CN105306442A true CN105306442A (en) 2016-02-03
CN105306442B CN105306442B (en) 2018-12-25

Family

ID=55203197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510599158.XA Active CN105306442B (en) 2015-09-17 2015-09-17 Proxy server and its instruction transmission method

Country Status (1)

Country Link
CN (1) CN105306442B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878467A (en) * 2017-04-07 2017-06-20 同方威视技术股份有限公司 The method and tele-control system of remote control equipment
CN107276994A (en) * 2017-05-31 2017-10-20 沃太能源南通有限公司 The communication management system and method for a kind of energy-storage system
WO2020233206A1 (en) * 2019-05-20 2020-11-26 深圳前海微众银行股份有限公司 Method and device for processing code execution request

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722663A (en) * 2004-07-13 2006-01-18 联想(北京)有限公司 A proxy server system and method for realizing proxy communication thereof
CN101404703A (en) * 2008-11-18 2009-04-08 中国电信股份有限公司 Voice gateway and method for implementing voice gateway telemanagement
CN102340528A (en) * 2010-07-23 2012-02-01 捷达世软件(深圳)有限公司 Data transmission system and method
WO2014093699A1 (en) * 2012-12-13 2014-06-19 Qualcomm Incorporated Loading a re-directed web page on a web browser of a client device in a communications system
CN104219299A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Data transmission method and data transmission device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722663A (en) * 2004-07-13 2006-01-18 联想(北京)有限公司 A proxy server system and method for realizing proxy communication thereof
CN101404703A (en) * 2008-11-18 2009-04-08 中国电信股份有限公司 Voice gateway and method for implementing voice gateway telemanagement
CN102340528A (en) * 2010-07-23 2012-02-01 捷达世软件(深圳)有限公司 Data transmission system and method
WO2014093699A1 (en) * 2012-12-13 2014-06-19 Qualcomm Incorporated Loading a re-directed web page on a web browser of a client device in a communications system
CN104219299A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Data transmission method and data transmission device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878467A (en) * 2017-04-07 2017-06-20 同方威视技术股份有限公司 The method and tele-control system of remote control equipment
CN106878467B (en) * 2017-04-07 2023-06-16 同方威视技术股份有限公司 Method for remotely controlling equipment and remote control system
CN107276994A (en) * 2017-05-31 2017-10-20 沃太能源南通有限公司 The communication management system and method for a kind of energy-storage system
WO2020233206A1 (en) * 2019-05-20 2020-11-26 深圳前海微众银行股份有限公司 Method and device for processing code execution request

Also Published As

Publication number Publication date
CN105306442B (en) 2018-12-25

Similar Documents

Publication Publication Date Title
EP2437456B1 (en) Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (m2m) platform
CN102333128B (en) Active transmission method for real-time Web data
CN108683653B (en) Active message pushing system based on WebSocket
CN107528891B (en) Websocket-based automatic clustering method and system
CN114567620B (en) Digital model and physical equipment matching system and method based on MQTT protocol
CN101567861B (en) Data synchronization method and application system between heterogeneous application systems
CN104410982B (en) Terminal polymerization and reconstructing method in a kind of Wireless Heterogeneous Networks
CN103997539A (en) Radar operation state collecting and distributing system and method based on web service
CN103533039B (en) P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system
CN104679528A (en) Method and device for remotely updating application program
CN113098985B (en) Session management method and scheduling server
US9319226B2 (en) Method and system for downloading in ubiquitous network by means of multicast
CN104243482A (en) Control method and device of intelligent device
CN105306442A (en) Proxy server and command transmission methods
CN110809262B (en) COAP protocol-based operation and maintenance management method for Internet of things equipment
CN103369296A (en) SIP protocol-based map video monitoring system and video transmission method
CN109067861A (en) Communication means, device, equipment and medium based on Internet of Things
CN106230915B (en) A method of realizing function machine intelligence communication
CN101548514B (en) Method for exchanging messages in a mobile radio network
US7764607B2 (en) Method and system for connection control
CN106302432A (en) A kind of communicator based on car networking and control method
CN111294358A (en) Message processing method and device
CN102523122A (en) Remote management method of terminal equipment in wide area network and management apparatus thereof
CN113848834A (en) Workshop equipment access system and method based on edge cloud cooperation
CN112448952B (en) Method and device for remotely receiving and storing intelligent equipment parameters

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant