CN101415017A - Method for transmitting embedded system document based on telnet protocol - Google Patents

Method for transmitting embedded system document based on telnet protocol Download PDF

Info

Publication number
CN101415017A
CN101415017A CNA2007101759531A CN200710175953A CN101415017A CN 101415017 A CN101415017 A CN 101415017A CN A2007101759531 A CNA2007101759531 A CN A2007101759531A CN 200710175953 A CN200710175953 A CN 200710175953A CN 101415017 A CN101415017 A CN 101415017A
Authority
CN
China
Prior art keywords
embedded system
file
telnet
local host
written
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
CNA2007101759531A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2007101759531A priority Critical patent/CN101415017A/en
Publication of CN101415017A publication Critical patent/CN101415017A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an embedded system file transmission method based on a telnet protocol, relating to the file transmission technique of embedded systems and aiming at solving the inconvenient maintenance of the existing embedded system. In order to solve the problem, the proposal comprises the steps as follows: A. a local host machine sends file reading/writing instructions to the embedded system by the Telnet protocol; B. after the file reading/writing instruction is received, the embedded system distributes the cache area for the file; C. the caches are cut for the file to be read or written according to the size of the distributed cache area; furthermore, the cached file data is printed to the local host machine or written into the embedded system. The method is simple and practical and the embedded system can still realize the file transmission when supporting the serial port only.

Description

Embedded system document transmission method based on Telnet
Technical field
The present invention relates to the file transfer technology of embedded system, relate in particular to a kind of embedded system document transmission method based on Telnet (Telnet) agreement.
Background technology
Embedded system uses the serial ports that is simple and easy to usefulness to carry out software debugging and exploitation usually, and during in the embedded system breakdown maintenance or to its software upgrading, can only send equipment back to factory, use special-purpose Flash to read the file system of installing among the Flash in the equipment fetch equipment, analyzing failure cause, or by special-purpose Flash write device refresh routine is write.Like this, will be quite high to the independent maintenance cost of embedded system.And for the network system that embedded system is the master, the cost of safeguarding will become the important cost factor of operator separately.
At the problems referred to above, embedded system generally also is provided with network interface, and to carry out telefile transmission and Long-distance Control etc., this makes things convenient for remote maintenance.Though the setting of network interface has made things convenient for the maintenance of embedded system, and between the main frame during information interaction resource overhead bigger, and be unfavorable for maintenance to the limited embedded system of disposal ability.In case and network interface damage, network congestion or network failure will have to safeguard by the embedded system that network interface is not set.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of embedded system document transmission method based on Telnet, with the telefile transmission of real-time support embedded system, convenient maintenance to embedded system.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of embedded system document transmission method based on Telnet comprises:
A, local host send the read/write file instruction by Telnet Telnet agreement to embedded system;
B, receive the read/write file instruction after, the buffer area of embedded system allocate file;
C, will continue/written document by distribution buffer area size cut apart buffer memory, and the file data of institute's buffer memory is printed to local host or writes embedded system.
Wherein, reading file among the step C comprises:
C1, embedded system open file, and distribute buffer size setting to read the number of times of file data, reading of data amount at every turn according to file size and institute;
C2, successively file data is read buffer area, and file data in the buffer area is printed to local host by the Telnet agreement.
Wherein, written document comprises among the described step C:
C11, local host inquiry buffer size that embedded system is distributed, and according to the number of times of file size setting transmission file to be written, each transmitted data amount;
C12, successively file data to be written is transferred to buffer area that embedded system is distributed, and file data in the buffer area is written to respective memory regions by embedded system by the Telnet agreement.
Wherein, described embedded system is by the Telnet physical connection of serial ports or network interface support and local host.
The present invention realizes and being connected of embedded system by the Telnet agreement, and by the instruction transmission between foundation of Telnet agreement and the embedded system, thereby finish writing and reading of embedded system file, realize the embedded system file maintenance under the support of Telnet agreement.The present invention is simple and practical, and embedded system is only supported still can realize file transfer under the serial ports situation.
Description of drawings
Fig. 1 is the flow chart that the present invention is based on the embedded system document transmission method of Telnet.
Embodiment
Core concept of the present invention is: embedded system is used comparatively extensive in communication network, is an important ring in the network operation to its maintenance.Present embedded system is not all supported remote maintenance, and those of network interface particularly are not set, and does not support the embedded system of remote maintenance must send factory back to and safeguards that by Special Equipment this has increased the maintenance cost of embedded system undoubtedly.The present invention is directed to this situation, adopt the Telnet agreement to realize information interaction with embedded system, thereby finish reading and writing of file in the embedded system, thereby realize fault detect and file maintenance embedded system.The present invention need not to make embedded system special configuration network interface, can realize also that by serial ports the file of embedded system writes and reads.The present invention is simple and practical, and embedded system is only supported still can realize file transfer under the serial ports situation.Describe the present invention below in conjunction with accompanying drawing.
Fig. 1 is the flow chart that the present invention is based on the embedded system document transmission method of Telnet, and as shown in Figure 1, the embedded system document transmission method that the present invention is based on Telnet may further comprise the steps:
Step 101: the Telnet agreement support of setting up embedded system.Be embedded system Telnet agreement corresponding software is installed.The purpose of this step is to make embedded system support the Telnet agreement, to realize the Telnet control to embedded system.Telnet is a VTP in the ICP/IP protocol bunch, and it allows to be connected to distance host.By using telnet command, remote equipment can be used as a virtual terminal and carries out Telnet, can also check the availability of the application layer software of Source Site and purpose website.It is less that Telnet mode network connects shared resource, can finish message transmission quickly; Fully by keyboard operation, operate fastly, and the powerful of Telnet enriched again.Telnet uses more extensive.Because Telnet protocol application technology is a known technology, the present invention repeats no more.
Step 102: local host sends the read/write file instruction by Telnet Telnet agreement to embedded system.Finish by local host and to treat the Telnet login of safeguarding embedded system, and send the read/write file instruction to this embedded system.Because the support of Telnet agreement is arranged, local host is equivalent to direct operation to embedded system to the remote operation of embedded system.
Step 103: after receiving the read/write file instruction, the buffer area of embedded system allocate file.After embedded system receives the read/write file instruction, in its Flash, distribute a read/write file dedicated cache district, to realize the transmission of file.The buffer area of this distribution generally can be very not big, specifically decides according to the current available Flash capacity of embedded system, as 1K etc.
Step 104: will continue/written document by distribution buffer area size cut apart buffer memory, and the file data of institute's buffer memory is printed to local host or writes embedded system.At the characteristic of embedded system, when the bigger file of transmitted data amount, need handle respectively file data is separated.Below describe it in detail.
The mode of reading file from embedded system is: embedded system receives to be read to open this document behind the file command, and local host distributes buffer size setting to read the number of times of file data, reading of data amount at every turn according to file size and institute.For example desiring to read file is 1M, and the buffer memory that embedded system is distributed is 1K, and the number of times of then determining to read file is 1024 times, and each reading of data amount is 1K.Successively file data is read buffer area, and file data in the buffer area is printed to local host by the Telnet agreement.Reading the file data amount can realize by pointer technique.
To the mode of embedded system written document by: local host inquiry embedded system is distributed buffer size, and sets the number of times of transmission file to be written, transmitted data amount at every turn according to file size.Telnet by the Telnet agreement can inquire quickly distribute buffer size, perhaps store about constant volume of buffer memory that embedded system is distributed.Successively file data to be written is transferred to buffer area that embedded system is distributed, and file data in the buffer area is written to respective memory regions by embedded system.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (4)

1, a kind of embedded system document transmission method based on Telnet is characterized in that this method comprises:
A, local host send the read/write file instruction by Telnet Telnet agreement to embedded system;
B, receive the read/write file instruction after, the buffer area of embedded system allocate file;
C, will continue/written document by distribution buffer area size cut apart buffer memory, and the file data of institute's buffer memory is printed to local host or writes embedded system.
2, the embedded system document transmission method based on Telnet according to claim 1 is characterized in that, reads file among the step C and comprises:
C1, embedded system open file, and local host distributes buffer size setting to read the number of times of file data, reading of data amount at every turn according to file size and institute;
C2, successively file data is read buffer area, and file data in the buffer area is printed to local host by the Telnet agreement.
3, the embedded system document transmission method based on Telnet according to claim 1 is characterized in that written document comprises among the described step C:
C11, local host inquiry buffer size that embedded system is distributed, and according to the number of times of file size setting transmission file to be written, each transmitted data amount;
C12, successively file data to be written is transferred to buffer area that embedded system is distributed, and file data in the buffer area is written to respective memory regions by embedded system by the Telnet agreement.
According to each described embedded system document transmission method in the claim 1 to 3, it is characterized in that 4, described embedded system is by the Telnet physical connection of serial ports or network interface support and local host based on Telnet.
CNA2007101759531A 2007-10-16 2007-10-16 Method for transmitting embedded system document based on telnet protocol Pending CN101415017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101759531A CN101415017A (en) 2007-10-16 2007-10-16 Method for transmitting embedded system document based on telnet protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101759531A CN101415017A (en) 2007-10-16 2007-10-16 Method for transmitting embedded system document based on telnet protocol

Publications (1)

Publication Number Publication Date
CN101415017A true CN101415017A (en) 2009-04-22

Family

ID=40595328

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101759531A Pending CN101415017A (en) 2007-10-16 2007-10-16 Method for transmitting embedded system document based on telnet protocol

Country Status (1)

Country Link
CN (1) CN101415017A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012006898A1 (en) * 2010-07-13 2012-01-19 中兴通讯股份有限公司 Embedded system and method for implementing virtual screen thereof
CN102546769A (en) * 2011-12-23 2012-07-04 福建升腾资讯有限公司 Method for automatically transmitting files of USB (universal serial bus) flash disk of user based on Telnet protocol
CN102956027A (en) * 2011-08-30 2013-03-06 安凯(广州)微电子技术有限公司 Image enhancement processing system and method based on camera image processing chip
CN106293494A (en) * 2015-05-18 2017-01-04 高德软件有限公司 The method and device of reading information, the method and device of write information
CN110753039A (en) * 2019-09-29 2020-02-04 苏州浪潮智能科技有限公司 Method and device for remote login safety protection

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012006898A1 (en) * 2010-07-13 2012-01-19 中兴通讯股份有限公司 Embedded system and method for implementing virtual screen thereof
CN102956027A (en) * 2011-08-30 2013-03-06 安凯(广州)微电子技术有限公司 Image enhancement processing system and method based on camera image processing chip
CN102546769A (en) * 2011-12-23 2012-07-04 福建升腾资讯有限公司 Method for automatically transmitting files of USB (universal serial bus) flash disk of user based on Telnet protocol
CN106293494A (en) * 2015-05-18 2017-01-04 高德软件有限公司 The method and device of reading information, the method and device of write information
CN106293494B (en) * 2015-05-18 2020-04-10 高德软件有限公司 Method and device for reading information and method and device for writing information
CN110753039A (en) * 2019-09-29 2020-02-04 苏州浪潮智能科技有限公司 Method and device for remote login safety protection

Similar Documents

Publication Publication Date Title
CN101170511B (en) Device and method for realizing multi-core processor communication in built-in operating system
CN102045772B (en) Data transmission method and device
CN101442493B (en) Method for distributing IP message, cluster system and load equalizer
CN102609215B (en) Data processing method and device
US20160234315A1 (en) Method and apparatus for dynamic destination address control in a computer network
US20200319983A1 (en) Redundancy Method, Device, and System
CN101150439A (en) A method, system and device for realizing master/slave switching
CN101415017A (en) Method for transmitting embedded system document based on telnet protocol
CN102316043B (en) Port virtualization method, switch and communication system
US20130110960A1 (en) Method and system for accessing storage device
CN104468238A (en) Double-network-card redundancy switching method based on vxworks system
CN101673209A (en) Method for updating program of multiple single chip microcomputers
CN103873540A (en) Low-energy-consumption remote storage system and design method thereof
CN104461716A (en) Access method of multi-nucleus heterogeneous system and multi-nucleus heterogeneous system
CN105704256B (en) A kind of IP address management methods, devices and systems
CN111124140A (en) KVM (keyboard, video and mouse) seat linkage method, system and storage medium
CN108123826B (en) Cross-region data interaction system and method
CN101815036B (en) Method and device for realizing access control
CN105786732A (en) Data access method and apparatus
CN104090792B (en) The dynamic loading method of logical file in a kind of broadband access network
CN103701644A (en) Operation and maintenance method and system of IT (information technology) equipment
CN109639554B (en) Remote VLAN implementation method
CN105471598A (en) Dynamic allocating method and dynamic allocating system for single boards affiliated to virtual Ethernet ports
CN102497426A (en) Wireless cloud storage card
CN104580328A (en) Virtual machine migration method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090422