CN102929559B - Method and system for providing file - Google Patents

Method and system for providing file Download PDF

Info

Publication number
CN102929559B
CN102929559B CN201210351703.XA CN201210351703A CN102929559B CN 102929559 B CN102929559 B CN 102929559B CN 201210351703 A CN201210351703 A CN 201210351703A CN 102929559 B CN102929559 B CN 102929559B
Authority
CN
China
Prior art keywords
file
mobile terminal
coded system
terminal device
embedded
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.)
Active
Application number
CN201210351703.XA
Other languages
Chinese (zh)
Other versions
CN102929559A (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.)
SHENZHEN ARTEL TECHNOLOGY CO LTD
Original Assignee
SHENZHEN ARTEL TECHNOLOGY 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 SHENZHEN ARTEL TECHNOLOGY CO LTD filed Critical SHENZHEN ARTEL TECHNOLOGY CO LTD
Priority to CN201210351703.XA priority Critical patent/CN102929559B/en
Publication of CN102929559A publication Critical patent/CN102929559A/en
Application granted granted Critical
Publication of CN102929559B publication Critical patent/CN102929559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a system for providing a file. The method comprises the following steps that: mobile storage equipment is mounted on embedded equipment in which a Linux system runs according to a coding mode of mobile terminal equipment, which is carried in request information, after the embedded equipment detects the request information which is sent by a user and used for copying the file in the embedded equipment to the connected mobile storage equipment; and the embedded equipment judges whether a coding mode of a name and a content of the file in the embedded equipment is consistent with the coding mode of the mobile terminal equipment or not, recodes the name and the content of the file in the embedded equipment according to the coding mode of the mobile terminal equipment if the coding mode of the name and the content of the file in the embedded equipment is not consistent with the coding mode of the mobile terminal equipment, and stores the recoded file in the mobile storage equipment. By the method, the file name and the file content under the mobile terminal equipment cannot be messy, the user can smoothly operate the file, and the user experience is improved.

Description

A kind of method of file and file of providing provides system
Technical field
The present invention relates to areas of information technology, more specifically, relate to a kind of method that file is provided.
Background technology
At present, in Embedded Linux System application, a lot of equipment all provides the function utilizing and movable storage device the staged files to other-end equipment carries out analyze, the character code mode used due to various different terminal device may be inconsistent, the phenomenon of filename and content mess code may be there is when result in Study document on other-end equipment, thus user cannot be analyzed.Therefore, user can only select Study document on the consistent terminal device of coded system, adds the limitation of application.
Such as, when using power quality analyzer (operation Linux system), operating personnel need the picture intercepted from power quality analyzer to be copied out by USB flash disk, and the picture copied out is browsed stored on PC, if what PC ran is window system, the title of picture just there will be the situation of mess code under normal circumstances, have impact on the normal use of operating personnel.
Summary of the invention
One object of the present invention is to solve the problem, and providing a kind of when being analyzed to other-end equipment by the file copy run in the embedded device of Linux system, filename and file content can be avoided to occur the method for mess code.
The technical solution used in the present invention is: a kind of method of file that provides is: the embedded device running Linux system detect that user sends for after by the file copy in embedded device to the solicited message in the movable storage device accessing described embedded device, according to the coded system carry movable storage device of the mobile terminal device carried in solicited message on embedded device; Afterwards, embedded device judges that whether the coded system that the filename of embedded device file and content use is consistent with the coded system of described mobile terminal device, as inconsistent in determined, the coded system according to described mobile terminal device carries out recompile to the filename of embedded device file and content, and is saved in described movable storage device by the file after recompile.
Wherein, the interface input action of described embedded device supervisory user, if the solicited message captured comprises the request of code conversion, then extracts the coded system of user's input, carries out carry with the coded system according to obtained mobile terminal device.
Another object of the present invention is to provide a kind of file realizing said method to provide system.
The technical solution used in the present invention is: a kind of file provides system, runs on Linux system, and described file provides system to comprise:
Inspection unit, for having judged whether that movable storage device accesses, with BootLoader unit after defining movable storage device access;
Carry unit, for receiving the request message carrying the coded system of mobile terminal device of user's input, and from request message, obtain the coded system of mobile terminal device, to carry out the coded system of carry and output mobile terminal device to movable storage device according to the coded system of mobile terminal device;
Judging unit, for receiving the coded system of the mobile terminal device that carry unit exports, and judging that whether the coded system that the coded system of mobile terminal device and filename and the content of embedded device file use is identical, described judging unit exports judged result after completing judgement;
Converting unit, for receiving described judged result, and when judged result be coded system inconsistent, coded system according to mobile terminal device carries out recompile to the filename of embedded device file and content, and described converting unit has exported coded message after completing recompile;
Copy cell, completes coded message described in receiving, and by the file copy after recompile in movable storage device.
Beneficial effect of the present invention is: file providing method of the present invention is when receiving the request message for obtaining file, according to the coded system that requesting party uses, recompile is carried out to the filename of file and content, and by the file copy after conversion to movable storage device.Like this, under mobile terminal device, filename and file content just there will not be mess code, and so, the user operating this file just can successfully operate, and then improves Consumer's Experience.
Accompanying drawing explanation
Fig. 1 shows the process flow diagram providing the method for file of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with the drawings and specific embodiments, the present invention will be further described in detail.
As shown in Figure 1, the method of file that provides of the present invention is: the embedded device running Linux system detect that user sends for after by the file copy in embedded device to the solicited message accessed in the movable storage device of embedded device (user can input this solicited message by the interface of embedded device), according to the coded system of the mobile terminal device carried in solicited message (namely user will select the coded system that will use on movable storage device when input request information) carry movable storage device on embedded device; Afterwards, embedded device judges that whether the coded system that the filename of embedded device file and content use is consistent with the coded system of described mobile terminal device, as inconsistent in determined, the coded system according to described mobile terminal device carries out recompile to the filename of embedded device file and content, and is saved in described movable storage device by the file after recompile.
Wherein, the interface input action of described embedded device supervisory user, if the solicited message captured comprises the request of code conversion, then extracts the coded system of user's input, carries out carry with the coded system according to obtained mobile terminal device.
The file realizing the method that above-mentioned file provides of the present invention provides system to comprise inspection unit, carry unit, judging unit, converting unit and copy cell, wherein inspection unit is used for having judged whether that movable storage device accesses, with BootLoader unit after defining movable storage device access; Carry unit is for receiving the request message carrying the coded system of mobile terminal device of user's input, and from request message, obtain the coded system of mobile terminal device, to carry out the coded system of carry and output mobile terminal device to movable storage device according to the coded system of mobile terminal device; Judging unit is for receiving the coded system of the mobile terminal device of carry unit output, and judging that whether the coded system that the coded system of mobile terminal device and filename and the content of embedded device file use is identical, described judging unit exports judged result after completing judgement; Converting unit is for receiving described judged result, and when judged result be coded system inconsistent, coded system according to mobile terminal device carries out recompile to the filename of embedded device file and content, and described converting unit has exported coded message after completing recompile; Copy cell completes coded message described in receiving, and by the file copy after recompile in movable storage device.Above-mentioned file provides system cloud gray model on Linux system.
Above embedded device, is specially the mount order that carry unit can adopt Linux system to provide and carries out carry, above embedded device, be specially the method process recompile that converting unit can adopt ICONV storehouse to provide.
The method adopting mount order to carry out the method for carry and ICONV storehouse carrying out recompile is prior art, improvement of the present invention not lying in improves concrete hanging method and coding method, but be to utilize above-mentioned technology achieve a kind of can solve file transfer after occur therefore no longer repeating the method for mess code to the method for carry and the method for recompile.
As by of the present invention provide the method for file and file provide system be applied in run Linux system power quality analyzer on, just can solve the situation of the picture copied out stored in the picture name mess code occurred when running the PC of window system, operating personnel input the coded system that PC uses after only need inserting the data port of power quality analyzer after by movable storage device on the operation interface of power quality analyzer.
Be only preferred embodiment of the present invention in sum, be not used for limiting practical range of the present invention.Namely all equivalences done according to the content of the present patent application the scope of the claims change and modify, and all should belong to technology category of the present invention.

Claims (1)

1. a method for file is provided, it is characterized in that:
The embedded device running Linux system detect that user sends for after by the file copy in embedded device to the solicited message in the movable storage device accessing described embedded device, according to the coded system carry movable storage device of the mobile terminal device carried in solicited message on embedded device; Afterwards, embedded device judges that whether the coded system that the filename of embedded device file and content use is consistent with the coded system of described mobile terminal device, as inconsistent in determined, the coded system according to described mobile terminal device carries out recompile to the filename of embedded device file and content, and is saved in described movable storage device by the file after recompile;
The interface input action of described embedded device supervisory user, if the solicited message captured comprises the request of code conversion, then extracts the coded system of user's input, carries out carry with the coded system according to obtained mobile terminal device;
The described system providing the method for file to adopt comprises:
Inspection unit, for having judged whether that movable storage device accesses, with BootLoader unit after defining movable storage device access;
Carry unit, for receiving the request message carrying the coded system of mobile terminal device of user's input, and from request message, obtain the coded system of mobile terminal device, to carry out the coded system of carry and output mobile terminal device to movable storage device according to the coded system of mobile terminal device;
Judging unit, for receiving the coded system of the mobile terminal device that carry unit exports, and judging that whether the coded system that the coded system of mobile terminal device and filename and the content of embedded device file use is identical, described judging unit exports judged result after completing judgement;
Converting unit, for receiving described judged result, and when judged result be coded system inconsistent, coded system according to mobile terminal device carries out recompile to the filename of embedded device file and content, and described converting unit has exported coded message after completing recompile; And,
Copy cell, completes coded message described in receiving, and by the file copy after recompile in movable storage device.
CN201210351703.XA 2012-09-20 2012-09-20 Method and system for providing file Active CN102929559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210351703.XA CN102929559B (en) 2012-09-20 2012-09-20 Method and system for providing file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210351703.XA CN102929559B (en) 2012-09-20 2012-09-20 Method and system for providing file

Publications (2)

Publication Number Publication Date
CN102929559A CN102929559A (en) 2013-02-13
CN102929559B true CN102929559B (en) 2015-07-22

Family

ID=47644374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210351703.XA Active CN102929559B (en) 2012-09-20 2012-09-20 Method and system for providing file

Country Status (1)

Country Link
CN (1) CN102929559B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516372B (en) * 2016-02-25 2019-05-14 深圳天珑无线科技有限公司 Processing method, device and the server of filename
CN113242321B (en) * 2021-07-12 2021-11-02 广东睿江云计算股份有限公司 Data transmission method for mobile storage device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146059A (en) * 2007-11-06 2008-03-19 中国电信股份有限公司 A mail system, method and terminal for supporting attachment format conversion
CN101600262A (en) * 2008-06-04 2009-12-09 鸿富锦精密工业(深圳)有限公司 Document handling system and method and media playing apparatus
CN101692244A (en) * 2009-10-12 2010-04-07 中兴通讯股份有限公司 Method and device for code optimization for embedded browser
CN102143385A (en) * 2011-03-16 2011-08-03 华为技术有限公司 Media play processing method, digital media server and system
CN102263941A (en) * 2010-05-31 2011-11-30 苏州闻道网络科技有限公司 Transcoding method and device for video file
CN102630059A (en) * 2012-03-23 2012-08-08 深圳创维数字技术股份有限公司 Method and device for realizing FLV video play

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146059A (en) * 2007-11-06 2008-03-19 中国电信股份有限公司 A mail system, method and terminal for supporting attachment format conversion
CN101600262A (en) * 2008-06-04 2009-12-09 鸿富锦精密工业(深圳)有限公司 Document handling system and method and media playing apparatus
CN101692244A (en) * 2009-10-12 2010-04-07 中兴通讯股份有限公司 Method and device for code optimization for embedded browser
CN102263941A (en) * 2010-05-31 2011-11-30 苏州闻道网络科技有限公司 Transcoding method and device for video file
CN102143385A (en) * 2011-03-16 2011-08-03 华为技术有限公司 Media play processing method, digital media server and system
CN102630059A (en) * 2012-03-23 2012-08-08 深圳创维数字技术股份有限公司 Method and device for realizing FLV video play

Also Published As

Publication number Publication date
CN102929559A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
CN103092581B (en) The building method of a kind of web front end this locality development environment and device
CN103685269A (en) Method and system for both-way communication between web browser and server
CN102497424A (en) Method for achieving cloud storage through mobile storage device
CN104899325A (en) APP (application) acquired data collection method, terminal, server and system
CN109561117B (en) Data acquisition method and device
CN105677573A (en) Halt detection method and device and computing device
CN103064738A (en) Method and system for embedding local application program window into browser in Linux
CN104144081A (en) General application log management method, device and system
CN103927230A (en) Memory usage feedback method and device
WO2014166283A1 (en) Interaction method and device between browsers and browser
CN102929559B (en) Method and system for providing file
CN103607600A (en) Method and device for cloud backup
CN106487856A (en) A kind of method and system of network file storage
CN102779045A (en) Interface generating method, interface editor and electronic equipment
CN111464617B (en) Production standardization mobile monitoring system
CN103685566A (en) Mobile-terminal-oriented cloud storage achievement method
CN103886086A (en) Cross-browser file-displaying system and method
WO2008081121A3 (en) Communication method and device
CN102831144B (en) Based on the bookmark interaction processing method of mobile terminal, device and system
CN105530313A (en) Context sensing service migrating method based on OSGi pervasive cloud environment
CN104809753A (en) File treatment method
CN103440134A (en) Webkit kernel-based storage resource service local extension method
CN109240660A (en) A kind of cut-in method of ad data, storage medium, electronic equipment and system
CN115150385A (en) Data processing method, device, system, terminal and server
CN108011745B (en) Data transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant