[go: up one dir, main page]

CN102291443A - Method for processing application layer data in embedded network communication - Google Patents

Method for processing application layer data in embedded network communication Download PDF

Info

Publication number
CN102291443A
CN102291443A CN2011102211605A CN201110221160A CN102291443A CN 102291443 A CN102291443 A CN 102291443A CN 2011102211605 A CN2011102211605 A CN 2011102211605A CN 201110221160 A CN201110221160 A CN 201110221160A CN 102291443 A CN102291443 A CN 102291443A
Authority
CN
China
Prior art keywords
link
remote control
control center
multimedia terminal
instruction
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.)
Pending
Application number
CN2011102211605A
Other languages
Chinese (zh)
Inventor
周茂林
张传美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Silan Microelectronics Co Ltd
Original Assignee
Hangzhou Silan Microelectronics 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 Hangzhou Silan Microelectronics Co Ltd filed Critical Hangzhou Silan Microelectronics Co Ltd
Priority to CN2011102211605A priority Critical patent/CN102291443A/en
Publication of CN102291443A publication Critical patent/CN102291443A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides a method for processing application layer data in embedded network communication. The method comprises the following steps of: 1, building linkage between a multimedia terminal and a remote control center; 2, performing data communication, which comprises: sending a file interactive instruction through a first link when file interaction between the remote control center and the terminal is performed, initiating new connection to a second port of the remote control center by a second port of the multimedia terminal to build a second link during analysis of the instruction, requesting the remote control center for file transmission, and performing file transmission between the remote control center and the multimedia terminal through the second link; 3, closing the second link after completion of file transmission; and 4, closing the first link when network communication between the multimedia terminal and the remote control center is finished. In the invention, different port links are used for respectively realizing instruction interaction and file interaction, and different application layer protocols are adopted to ensure real time performance of instruction transmission and response and the stable reliability of file transmission.

Description

A kind of built-in network communications applications layer data processing method
Technical field
The invention provides a kind of application layer data processing method of built-in network communication protocol, be specially adapted in the network service of embedded multimedia terminal and remote control center.
Background technology
Embedded system has been widely applied to the various aspects of our daily life, especially relevant with digital multimedia consumer field at present.Be cybertimes now, increasing demand needs embedded system to be applied in the variety of network environments, in order to improve the competitiveness of embedded product, on original embedded platform Limited resources, realize stable network service at a high speed, improve the added value of embedded product with this.Because the network application of embedded product is fairly simple, mainly be remote operation and the control that realizes embedded product, add embedded limited hardware resource, simplify necessary that the agreement of application layer then shows.
Summary of the invention
The present invention is intended to solve the deficiencies in the prior art, provide a kind of application layer protocol simple, the method that the application layer data of built-in network communication is handled under the no operating system environment requires low to embedded system hardware, reduce the complexity of software, improved the efficient of Network Transmission;
Application layer data processing method in a kind of built-in network communication comprises the steps:
(1) multimedia terminal is set up with remote control center and is linked:
(A) multimedia terminal is after getting access to remote control center IP or domain name, and first port of multimedia terminal is initiatively initiated TCP to first port of control centre and connected, and attempts setting up first link;
(B) after the first link successful connection, then to remote control center timed sending multimedia terminal state to keep first link;
(2) data communication:
(A) remote control center carries out control operation to the multimedia terminal if desired, then by the first link sending controling instruction; After the multimedia terminal receives this instruction in real time, execution command, and in time feed back executing state;
When (B) remote control center need carry out file interaction to terminal, then send the file interaction instruction by first link;
(C) instruction is being carried out in the resolving, when the multimedia terminal is judged remote control center and need be carried out file interaction with the multimedia terminal, second port of multimedia terminal is initiated new connection to second port of remote control center, set up second link, transmit to the remote control center demand file;
(D) remote control center carries out file transfer by second link and multimedia terminal;
(3) close second link after the end of file transfer;
When (4) multimedia terminal and remote control center network service finish, close first link.
Described first link adopts self-defining simple instruction interaction protocol, is made up of fixed instruction header, check information and command coding.
Described second link adopts based on the http agreement of request with response modes.
Beneficial effect of the present invention is:
(1) remote control center is divided into two classes with communicating by letter of multimedia terminal, one class is to need multimedia terminal real-time response and the command communication that can finish immediately: because command communication need guarantee to instruct the real-time of transmission and the rapidity of multimedia terminal response instruction, the process that responds this instruction does not need and the remote control center interaction data, and can finish instruction immediately carries out, therefore application layer protocol adopts self-defining simple instruction interaction protocol, this agreement guarantees to try one's best few redundant data, by the fixed instruction header, check information and command coding are formed, and the multimedia terminal can be very fast parses instruction and respond; One class is to carry out the data communication of file interaction each other: file interaction must relate to the transmission situation of big data quantity, therefore need to adopt the application layer protocol of relative complex, situation with the lasting transmission after assurance stability of data transmission and reliability and the network interruption situation, in the present invention, second link has adopted based on the http agreement of request with response modes.
The life cycle of (2) first links is whole network service processes, and the second link life cycle is the process of file interaction just then, and the foundation of second link need be instructed by the file interaction of first link and triggered initiation.Because it is relatively independent to communicate by letter between first link and second link, in carrying out the file interaction process, promptly in the second link data transmission course, the multimedia terminal needs the current file interaction mode that upgrades in time by the first chain road direction control centre, so that control centre is for referencial use when initiating new instruction manipulation, avoid causing the conflict of instruction.
(3) realize that the present invention does not have operating system environment, require low embedded system hardware.Embedded multimedia terminal separates with different port link realizations with the instruction interaction and the file interaction of remote control center, adopts different application layer protocols, has guaranteed the real-time of instruction transmission and response, and the reliability of file transfer.
Description of drawings
Fig. 1 is the application layer data processing method in the embodiment of the invention;
Fig. 2 is multimedia terminal and a remote control center network service flow process in the embodiment of the invention;
Fig. 3 is the flow process of multimedia terminal processing remote control centre network data in the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing application layer data processing method in a kind of built-in network communication is described, as Fig. 1, Fig. 2, shown in Figure 3 comprising the steps:
(1) multimedia terminal is set up with remote control center and is linked:
(A) multimedia terminal is after getting access to remote control center IP or domain name, and the first port c_portl of multimedia terminal initiatively initiates TCP to the first port s_portl of control centre and connects, and attempts setting up the first link CONN_1;
(B) after the first link CONN_1 successful connection, then to remote control center timed sending multimedia terminal state to keep the first link CONN_1;
(2) data communication:
(A) remote control center carries out control operation to the multimedia terminal if desired, then by the first link CONN_1 sending controling instruction; After the multimedia terminal receives this instruction in real time, execution command, and in time feed back executing state;
When (B) remote control center need carry out file interaction to terminal, then send the file interaction instruction by the first link CONN_1;
(C) instruction is being carried out in the resolving, when the multimedia terminal is judged remote control center and need be carried out file interaction with the multimedia terminal, the second port c_port2 of multimedia terminal initiates new connection to the second port s_port2 of remote control center, set up the second link CONN_2, transmit to the remote control center demand file;
(D) remote control center carries out file transfer by the second link CONN_2 and multimedia terminal;
(3) close the second link CONN_2 after the end of file transfer;
When (4) multimedia terminal and remote control center network service finish, close the first link CONN_1.
Described first link adopts self-defining simple instruction interaction protocol, is made up of fixed instruction header, check information and command coding.
Described second link adopts based on the http agreement of request with response modes.
What should be understood that is, the foregoing description is just to explanation of the present invention, rather than limitation of the present invention, and any innovation and creation that do not exceed in the connotation scope of the present invention all fall within the protection range of the present invention.

Claims (2)

1. application layer data processing method during a built-in network is communicated by letter is characterized in that comprising the steps:
(1) multimedia terminal is set up with remote control center and is linked:
(A) multimedia terminal is after getting access to remote control center IP or domain name, and first port of multimedia terminal is initiatively initiated TCP to first port of control centre and connected, and attempts setting up first link;
(B) after the first link successful connection, then to remote control center timed sending multimedia terminal state to keep first link;
(2) data communication:
(A) remote control center carries out control operation to the multimedia terminal if desired, then by the first link sending controling instruction; After the multimedia terminal receives this instruction in real time, execution command, and in time feed back executing state;
When (B) remote control center need carry out file interaction to terminal, then send the file interaction instruction by first link;
(C) instruction is being carried out in the resolving, when the multimedia terminal is judged remote control center and need be carried out file interaction with the multimedia terminal, second port of multimedia terminal is initiated new connection to second port of remote control center, set up second link, transmit to the remote control center demand file;
(D) remote control center carries out file transfer by second link and multimedia terminal;
(3) close second link after the end of file transfer;
When (4) multimedia terminal and remote control center network service finish, close first link.
2. application layer data processing method in a kind of according to claim 1 built-in network communication is characterized in that described first link adopts self-defining simple instruction interaction protocol, is made up of fixed instruction header, check information and command coding; Described second link adopts based on the http agreement of request with response modes.
CN2011102211605A 2011-08-02 2011-08-02 Method for processing application layer data in embedded network communication Pending CN102291443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102211605A CN102291443A (en) 2011-08-02 2011-08-02 Method for processing application layer data in embedded network communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102211605A CN102291443A (en) 2011-08-02 2011-08-02 Method for processing application layer data in embedded network communication

Publications (1)

Publication Number Publication Date
CN102291443A true CN102291443A (en) 2011-12-21

Family

ID=45337545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102211605A Pending CN102291443A (en) 2011-08-02 2011-08-02 Method for processing application layer data in embedded network communication

Country Status (1)

Country Link
CN (1) CN102291443A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503850A (en) * 2014-12-11 2015-04-08 天津中兴智联科技有限公司 Embedded system communication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000014934A1 (en) * 1998-09-03 2000-03-16 Genesys Telecommunications Laboratories, Inc. Embedded web phone module
CN1622553A (en) * 2004-12-20 2005-06-01 北京北大方正电子有限公司 Internet standard file transmission protocol based file breakpoint upload method
CN101079732A (en) * 2007-05-21 2007-11-28 武汉虹信通信技术有限责任公司 Remote upgrade method of built-in system software based on FTP protocol
CN101951410A (en) * 2010-10-13 2011-01-19 国电南瑞科技股份有限公司 Method for automatically and remotely upgrading embedded terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000014934A1 (en) * 1998-09-03 2000-03-16 Genesys Telecommunications Laboratories, Inc. Embedded web phone module
CN1622553A (en) * 2004-12-20 2005-06-01 北京北大方正电子有限公司 Internet standard file transmission protocol based file breakpoint upload method
CN101079732A (en) * 2007-05-21 2007-11-28 武汉虹信通信技术有限责任公司 Remote upgrade method of built-in system software based on FTP protocol
CN101951410A (en) * 2010-10-13 2011-01-19 国电南瑞科技股份有限公司 Method for automatically and remotely upgrading embedded terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503850A (en) * 2014-12-11 2015-04-08 天津中兴智联科技有限公司 Embedded system communication method
CN104503850B (en) * 2014-12-11 2017-10-31 天津中兴智联科技有限公司 Communication in embedded system method

Similar Documents

Publication Publication Date Title
CN110809899A (en) Method, terminal device and network device for transmitting data
CN103036653B (en) A kind of method of OpenFlow network being carried out to network code
CN105120009A (en) Terminal interconnection method and device
CN107409270B (en) Method and apparatus for establishing a connection between devices
CN104410982B (en) Terminal polymerization and reconstructing method in a kind of Wireless Heterogeneous Networks
CN107465613B (en) Link aggregation interface communication state switching method and device
CN103457985A (en) Method and system of dual-channel communication
CN104270344A (en) Quintillion gatekeeper
CN114500528A (en) Data transmission method and device based on cloud platform
CN102315918B (en) Method and device for intercommunicating TCP (Transmission Control Protocol) connection with SCTP (Stream Control Transmission Protocol) connection
CN104683130B (en) A kind of method and apparatus of configuring stacking port
CN114710568B (en) Audio and video data communication methods, equipment and storage media
CN103501282A (en) Network message sending control method, virtual switch and physical machine
CN111818010A (en) A data transmission method, device, electronic device and storage medium
WO2012010002A1 (en) Apparatus and method for service debugging for java applications in machine to machine terminal
CN102291443A (en) Method for processing application layer data in embedded network communication
CN104797004A (en) Method for implementation of automatic networking between master and slave devices
CN110958590B (en) Heterogeneous equipment integrated system based on multi-protocol edge computing gateway
CN104601351B (en) Network device capability configuration method, network device and system
WO2024067758A1 (en) Bus-based cross-terminal communication method and system, and apparatus and readable storage medium
CN102761780A (en) Method for obtaining media metadata by intelligent remote controller to
WO2016154831A1 (en) Method and device for realizing transmission control protocol (tcp) transmission
CN105471718A (en) Realization method of full duplex message queue
CN104702602A (en) System and method of realizing dynamically creating channel and expansion of gateway cluster based on SIP (System in Package)
CN111917511A (en) Data receiving method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111221