CN107835243A - A kind of data transmission method, system, electronic equipment and storage medium - Google Patents

A kind of data transmission method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN107835243A
CN107835243A CN201711072930.8A CN201711072930A CN107835243A CN 107835243 A CN107835243 A CN 107835243A CN 201711072930 A CN201711072930 A CN 201711072930A CN 107835243 A CN107835243 A CN 107835243A
Authority
CN
China
Prior art keywords
protocol code
coding rule
data
data transmission
transmission method
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
CN201711072930.8A
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.)
Chongqing Yangyile Technology Co., Ltd.
Original Assignee
Excessive Foreign Photoelectricity (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 Excessive Foreign Photoelectricity (shenzhen) Co Ltd filed Critical Excessive Foreign Photoelectricity (shenzhen) Co Ltd
Priority to CN201711072930.8A priority Critical patent/CN107835243A/en
Publication of CN107835243A publication Critical patent/CN107835243A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of data transmission method, including:Protocol code is obtained, wherein, protocol code is by data message is classified and is encoded code information;Data message according to corresponding to coding rule parses protocol code;Output data information.The present invention also provides a kind of data transmission system, electronic equipment and storage medium, data transmission method, system, electronic equipment and storage medium provided by the invention remotely obtain protocol code, the seldom data volume taken due to protocol code, it thereby may be ensured that terminal receives data in a short time, data message of the terminal according to corresponding to coding rule parses protocol code, it is more many soon than remote switch or offline transmission data, so as to reduce the consumption of power consumption of terminal and network traffics, and save transmission time.

Description

A kind of data transmission method, system, electronic equipment and storage medium
Technical field
The present invention relates to field of data transmission, more particularly to a kind of data transmission method, system, electronic equipment and storage to be situated between Matter.
Background technology
At present, by the requirement of real-time more and more higher of network Long line transmission information, message, warp are transmitted by the network platform Often terminal operating is unstable caused by picture, word, audio, video information content are excessive, and the time is grown, while largely occupies The a large amount of internal memories of terminal, reduce the speed of service of terminal, and add the consumption of the power consumption and network traffics of terminal.In view of peace The full factor such as property and flow, electricity, it is now most of to download file offline using offline transmission, offline PUSH message, terminal Mode, further increase terminal power consumption and network traffics consumption.
The content of the invention
For overcome the deficiencies in the prior art, an object of the present invention is to provide a kind of data transmission method, with solution The problem of certainly available data transmission increases power consumption of terminal and network flow consumption.
The second object of the present invention is to provide a kind of electronic equipment, with solve available data transmission increase power consumption of terminal with The problem of network flow consumption.
The third object of the present invention is to provide a kind of data transmission method, to solve available data transmission increase terminal work( The problem of consumption and network flow consumption.
The fourth object of the present invention is to provide a kind of data transmission system, to solve available data transmission increase terminal work( The problem of consumption and network flow consumption.
An object of the present invention adopts the following technical scheme that realization:
A kind of data transmission method, including:
Protocol code is obtained, wherein, the protocol code is by data message is classified and is encoded code information;
Data message according to corresponding to coding rule parses the protocol code;
Export the data message.
Further, also include before the acquisition protocol code:
Obtain the coding rule and store.
Further, it is described to obtain the coding rule and also include after storing:
Obtain the fresh information of the coding rule.
Further, the fresh information for obtaining the coding rule includes:
Receive more new command and corresponding coding rule;
According to more new command increase, coding rule is deleted or modified.
Further, it is described to obtain the coding rule and also include after storing:
Detection instruction is sent to detect whether the coding rule has renewal;
If the coding rule has renewal, the automatic coding rule downloaded after renewal.
Further, the protocol code is the protocol code Jing Guo secondary encryption.
The second object of the present invention adopts the following technical scheme that realization:
A kind of electronic equipment, including:Processor;
Memory;And program, wherein described program is stored in the memory, and is configured to by processor Perform, described program includes being used to perform above-mentioned method.
The invention further relates to a kind of computer-readable recording medium, is stored thereon with computer program, the computer journey Sequence is executed by processor above-mentioned method.
The third object of the present invention adopts the following technical scheme that realization:
A kind of data transmission method, including:
Data message is classified and encodes to obtain protocol code by server, and sends the protocol code;
Terminal receives protocol code, the data message according to corresponding to coding rule parses the protocol code;
Terminal output data information.
The fourth object of the present invention adopts the following technical scheme that realization:
A kind of data transmission system, including:Server and terminal;
The server is used to data message be classified and encode to obtain protocol code, and sends the agreement generation Code;
The terminal is used to receive the protocol code, the data according to corresponding to coding rule parses the protocol code Information and output data information.
Compared with prior art, the beneficial effects of the present invention are:It is long-range to obtain protocol code, taken due to protocol code Seldom data volume, it thereby may be ensured that terminal receives data in a short time, terminal parses agreement generation according to coding rule Data message corresponding to code, it is more many soon than remote switch or offline transmission data, so as to reduce power consumption of terminal and network The consumption of flow, and save transmission time.
Brief description of the drawings
Fig. 1 is data transmission method flow chart provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of electronic equipment provided in an embodiment of the present invention;
Fig. 3 is the data transmission method flow chart that another embodiment of the present invention provides;
Fig. 4 is the schematic diagram of data transmission system provided in an embodiment of the present invention.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
As shown in figure 1, data transmission method provided in an embodiment of the present invention, including:
Step S101:Obtain protocol code;Wherein, the protocol code is by data message is classified and is encoded generation Code information.
Specifically, server by data messages such as word to be sent, picture, audio or video information according to default volume Code rule is converted into protocol code, the protocol code that terminal the reception server is sent.
Step S102:Data message according to corresponding to coding rule parses the protocol code.
Specifically, server and terminal storage have identical coding rule, server will be to be sent according to coding rule Data message is converted into protocol code, and the protocol code of reception is parsed corresponding data message by terminal according to coding rule.
Wherein, coding rule can be rule of the user after server end is classified and is defined, such as literal definition be A Class, picture are defined as B classes, and audio is defined as C classes, and video is defined as D classes;Define each label generation respectively under every kind of classification again The particular content of table, such as text information is divided into A1, A2...An etc. according to preset rules, by pictorial information according to default rule Then it is divided into B1, B2...Bn etc., audio-frequency information is divided into C1, C2...Cn etc. according to preset rules, by video information according to default Rule is divided into D1, D2...Dn etc..Before server sends protocol code, the coding rule defined is sent to terminal, terminal Coding rule is stored in local data base, when data message to be sent is converted to agreement by server according to coding rule Code and when being sent to terminal, terminal can parse corresponding data message according to coding rule.
Step S103:Export the data message.
Specifically, terminal parses the data message corresponding to protocol code, by showing that driving shows in bistable liquid crystal Show data message corresponding to display in equipment.
The data message that server is sent is transmitted by protocol code, and protocol code takes seldom data volume, so as to To ensure to complete to receive in a short time, terminal parses data message corresponding to protocol code by local system, than distal end Transmitting data information is many soon, thereby may be ensured that output data information quickly, and reduces power consumption of terminal and network traffics Consumption.
As preferred embodiment, the content not timing that user sends according to server updates coding rule, and will more Coding rule after new is sent to terminal, and terminal obtains the fresh information of coding rule.
Specifically include:Receive more new command and corresponding coding rule;According to more new command increase, it is deleted or modified Coding rule.For example, server sends increase instruction and coding rule to be increased, terminal adds coding rule to be increased In local data base;Server, which is sent, deletes instruction and coding rule to be deleted, and terminal is by coding rule to be deleted from originally Deleted in ground database;Server transmission modification instructs, original coding to be modified is regular and amended coding rule, eventually Original coding rule is correspondingly revised as amended coding rule by end, so as to ensure the accuracy of code analysis.
As preferred embodiment, terminal periodically sends detection instruction to server, to detect whether coding rule has Renewal;If coding rule has renewal, the automatic coding rule downloaded after renewal, so as to ensure the coding rule of terminal storage Accuracy, ensure the reliability of data transfer.
As preferred embodiment, protocol code is the protocol code Jing Guo secondary encryption, in transmitting procedure Protocol code is intercepted by third party, and third party can not obtain particular content, so as to ensure the secrecy of Content of Communication well Property, stability and security.
As shown in Fig. 2 electronic equipment provided in an embodiment of the present invention, including:Processor 11, memory 1 and program, its Program is stored in memory 12, and is configured to be performed by processor 11, and program includes being used to perform above-mentioned side Method.
The method in electronic equipment and previous embodiment in the present embodiment is based on two sides under same inventive concept Face, above method implementation process is being described in detail, so those skilled in the art can be according to described above clear Understand to Chu the implementation process of the electronic equipment in the present embodiment, it is succinct for specification, just repeat no more herein.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can Realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme essence On the part that is contributed in other words to prior art can be embodied in the form of software product.The invention further relates to one kind Computer-readable recording medium, such as ROM/RAM, magnetic disc, CD, are stored thereon with computer program, and computer program is located Manage device and perform above-mentioned method.
As shown in figure 3, the data transmission method that another embodiment of the present invention provides, including:
Data message is classified and encodes to obtain protocol code by server, and sends the protocol code;
Terminal receives protocol code, the data message according to corresponding to coding rule parses the protocol code;
Terminal output data information.
The method in method and previous embodiment in the present embodiment be based on two under same inventive concept aspects, Above system is described in detail, so this implementation can be well understood according to described above in those skilled in the art Method in example, it is succinct for specification, just repeat no more herein.
As shown in figure 4, data transmission system provided in an embodiment of the present invention, including:Server 21 and terminal 22;
Server 21 is used to data message be classified and encode to obtain protocol code, and sends the protocol code;
Terminal 22 is used to receive the protocol code, and data are believed according to corresponding to coding rule parses the protocol code Cease simultaneously output data information.
The method in system and previous embodiment in the present embodiment be based on two under same inventive concept aspects, Above system is described in detail, so this implementation can be well understood according to described above in those skilled in the art Method in example, it is succinct for specification, just repeat no more herein.
Data transmission method, system, electronic equipment and storage medium provided by the invention remotely obtain protocol code, due to Seldom data volume that protocol code takes, it thereby may be ensured that terminal receives data in a short time, terminal is advised according to coding The data message corresponding to protocol code is then parsed, it is more many soon than remote switch or offline transmission data, so as to reduce The consumption of power consumption of terminal and network traffics, and save transmission time.
Above-mentioned embodiment is only the preferred embodiment of the present invention, it is impossible to the scope of protection of the invention is limited with this, The change and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention Claimed scope.

Claims (10)

  1. A kind of 1. data transmission method, it is characterised in that including:
    Protocol code is obtained, wherein, the protocol code is by data message is classified and is encoded code information;
    Data message according to corresponding to coding rule parses the protocol code;
    Export the data message.
  2. 2. data transmission method according to claim 1, it is characterised in that also include before the acquisition protocol code:
    Obtain the coding rule and store.
  3. 3. data transmission method according to claim 2, it is characterised in that described to obtain the coding rule and store it Also include afterwards:
    Obtain the fresh information of the coding rule.
  4. 4. data transmission method according to claim 3, it is characterised in that the renewal letter for obtaining the coding rule Breath includes:
    Receive more new command and corresponding coding rule;
    According to more new command increase, coding rule is deleted or modified.
  5. 5. data transmission method according to claim 2, it is characterised in that described to obtain the coding rule and store it Also include afterwards:
    Detection instruction is sent to detect whether the coding rule has renewal;
    If the coding rule has renewal, the automatic coding rule downloaded after renewal.
  6. 6. data transmission method according to claim 1, it is characterised in that the protocol code is by secondary encryption Protocol code.
  7. 7. a kind of electronic equipment, it is characterised in that including:Processor;
    Memory;And program, wherein described program is stored in the memory, and is configured to be held by processor OK, described program includes being used for the method described in perform claim requirement 1-6 any one.
  8. 8. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program quilt Computing device method as claimed in any one of claims 1 to 6.
  9. A kind of 9. data transmission method, it is characterised in that including:
    Data message is classified and encodes to obtain protocol code by server, and sends the protocol code;
    Terminal receives protocol code, the data message according to corresponding to coding rule parses the protocol code;
    Terminal output data information.
  10. A kind of 10. data transmission system, it is characterised in that including:Server and terminal;
    The server is used to data message be classified and encode to obtain protocol code, and sends the protocol code;
    The terminal is used to receive the protocol code, the data message according to corresponding to coding rule parses the protocol code And output data information.
CN201711072930.8A 2017-11-03 2017-11-03 A kind of data transmission method, system, electronic equipment and storage medium Pending CN107835243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711072930.8A CN107835243A (en) 2017-11-03 2017-11-03 A kind of data transmission method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711072930.8A CN107835243A (en) 2017-11-03 2017-11-03 A kind of data transmission method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107835243A true CN107835243A (en) 2018-03-23

Family

ID=61653676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711072930.8A Pending CN107835243A (en) 2017-11-03 2017-11-03 A kind of data transmission method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107835243A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683636A (en) * 2018-04-16 2018-10-19 武汉中原弘仁新能源科技有限公司 A kind of charging pile means of communication and system
CN111224930A (en) * 2019-10-11 2020-06-02 上海海典软件股份有限公司 Data security transmission method, system, computer equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110143671A1 (en) * 2009-03-06 2011-06-16 Zippy Technology Corp. Input device with multi-object switch transmission
CN102420864A (en) * 2011-12-01 2012-04-18 河海大学 Massive data-oriented data exchange method
CN103532921A (en) * 2012-07-06 2014-01-22 中国移动通信集团公司 File sending method, file receiving method, server and terminal
CN105739480A (en) * 2016-01-26 2016-07-06 深圳市元征科技股份有限公司 Data compression transmission method and data compression transmission device
CN105991625A (en) * 2015-03-06 2016-10-05 电信科学技术研究院 Method and equipment for carrying out data transmission
CN106375942A (en) * 2016-09-20 2017-02-01 杭州联络互动信息科技股份有限公司 Method and device for transmission of data information
CN106941501A (en) * 2017-04-26 2017-07-11 田潇河 A kind of data communications method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110143671A1 (en) * 2009-03-06 2011-06-16 Zippy Technology Corp. Input device with multi-object switch transmission
CN102420864A (en) * 2011-12-01 2012-04-18 河海大学 Massive data-oriented data exchange method
CN103532921A (en) * 2012-07-06 2014-01-22 中国移动通信集团公司 File sending method, file receiving method, server and terminal
CN105991625A (en) * 2015-03-06 2016-10-05 电信科学技术研究院 Method and equipment for carrying out data transmission
CN105739480A (en) * 2016-01-26 2016-07-06 深圳市元征科技股份有限公司 Data compression transmission method and data compression transmission device
CN106375942A (en) * 2016-09-20 2017-02-01 杭州联络互动信息科技股份有限公司 Method and device for transmission of data information
CN106941501A (en) * 2017-04-26 2017-07-11 田潇河 A kind of data communications method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李霞等: "《大学计算机基础》", 31 December 2016 *
王亚平等: "《计算机应用基础教程》", 30 September 2015 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683636A (en) * 2018-04-16 2018-10-19 武汉中原弘仁新能源科技有限公司 A kind of charging pile means of communication and system
CN108683636B (en) * 2018-04-16 2021-06-01 武汉中原弘仁新能源科技有限公司 Charging pile communication method and system
CN111224930A (en) * 2019-10-11 2020-06-02 上海海典软件股份有限公司 Data security transmission method, system, computer equipment and readable storage medium
CN111224930B (en) * 2019-10-11 2023-10-10 上海海典软件股份有限公司 Data security transmission method, system, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN102571966B (en) Network transmission method for large extensible markup language (XML) document
CN103348325B (en) The loss of data monitoring of partial data stream
CN102882974B (en) Method for saving website access resource by website identification version number
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN105407180A (en) Server message pushing method and device
CN109451006A (en) A kind of data transmission method, device, server and computer storage medium
CN110417713B (en) Equipment data transmission method and device based on Internet of things
CN103440142A (en) GPRS (General Packet Radio Service)-based remote upgrade and dynamic loading method
CN112822276A (en) Substation control layer communication method and system for transformer substation, electronic equipment and storage medium
CN102420822A (en) Network file transmission method and system
CN107835243A (en) A kind of data transmission method, system, electronic equipment and storage medium
US11290519B2 (en) Method for enabling a communication device to receive a partial modification of a resource
CN111726414A (en) Vehicle reported data processing method and vehicle data reporting system
CN106254392B (en) Communication method based on dynamically customizable exT L V message transmission protocol
CN104767589B (en) A kind of method for sending information and device
CN109217986A (en) A kind of data transmission method and system based on Internet of Things
US11516561B2 (en) Method for reading fluid meters
CN103731332B (en) Master-slave communication method and OLT system
CN107040377A (en) A kind of method for storing cipher key based on quantum secret communication
EP2568671B1 (en) Method for composing information, corresponding terminal and instant messaging system
CN105024923B (en) The method and device that message category based on XMPP extension message is realized
CN102868559A (en) Method and system for generating weblog data
CN102497306A (en) Method for realizing data transmission of distribution network substation and system thereof
CN110166322A (en) A kind of detection method and relevant apparatus of metering automation terminal
CN106878054B (en) Service processing 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
TA01 Transfer of patent application right

Effective date of registration: 20190327

Address after: 402260 No.7 Jiujiang Avenue, Shuangfu Street, Jiangjin District, Chongqing

Applicant after: Chongqing Yangyile Technology Co., Ltd.

Address before: 518132 Gongming Office, Guangming New District, Shenzhen City, Guangdong Province, Tianliao Community, Guangming High-tech Park West Area, Senyang Electronic Science and Technology Park Factory, an 8-storey B, 9-storey A, B building

Applicant before: Excessive foreign photoelectricity (Shenzhen) company limited

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20180323

RJ01 Rejection of invention patent application after publication