CN101262677B - A method for transmitting data to terminal device - Google Patents

A method for transmitting data to terminal device Download PDF

Info

Publication number
CN101262677B
CN101262677B CN2008100938416A CN200810093841A CN101262677B CN 101262677 B CN101262677 B CN 101262677B CN 2008100938416 A CN2008100938416 A CN 2008100938416A CN 200810093841 A CN200810093841 A CN 200810093841A CN 101262677 B CN101262677 B CN 101262677B
Authority
CN
China
Prior art keywords
port
terminal equipment
port numbers
com
terminal device
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
CN2008100938416A
Other languages
Chinese (zh)
Other versions
CN101262677A (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.)
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 CN2008100938416A priority Critical patent/CN101262677B/en
Publication of CN101262677A publication Critical patent/CN101262677A/en
Application granted granted Critical
Publication of CN101262677B publication Critical patent/CN101262677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for transmitting data to a terminal device. The method comprises the steps of judging whether a port number of a communication port connected with the terminal device is changed when the data is transmitted to the terminal device, and transmitting the data to the terminal device through the changed port number and the communication port for communication when the port number is changed. By searching the changed port number of the communication port and communicating with the terminal device through the changed port number, the method of the invention can avoid download failures and damages to a terminal device system when the communication port of a computer is changed in the data downloading process of a large-scale terminal device, therefore, the computer can successfully complete data transmission to the terminal device, and the method of the invention can avoid downloading failures of multiple paths caused by the failure of one path when simultaneously conducting the multi-path downloading, and the operation thereof is convenient and fast.

Description

A kind of method that transmits data to terminal equipment
Technical field
The present invention relates to field of mobile communication, relate in particular to a kind of method that transmits data through computer to terminal equipment.
Background technology
Along with the high speed development of science and technology, the various terminal equipments that possess difference in functionality are popularized gradually.As, necessary tool during communication apparatus has become people's routine work and lived; In today of Internet technology prosperity; Online has become the part in people's daily life; Popularizing etc. of the use of wireless modem terminal equipments such as (modulator-demodulators), tool devices and handset having Internet; The space expansion of people's online is come, really accomplish to let people surf the Net whenever and wherever possible with following one's inclinations.
Moreover, the with rapid changepl. never-ending changes and improvements of technology makes that the update of various terminal equipments is also more and more faster.Therefore, for the frequent upgrading of the employed software version of terminal equipment, just become the problem that people have to face.Especially in the production process of terminal equipment; Might be in process of production; Terminal equipment institute installed software version still is up-to-date, but when the production completion needed delivery, the version of renewal produced; And have more powerful, more stable function, on a large scale to such terminal equipment carry out software release upgrade with regard to needs this moment.
The software release upgrade of terminal equipment; Need lot of data to download, when carrying out software release upgrade, the terminal equipment that only needs to carry out edition upgrading is connected to computer through data wire at present; Carry out certain port arrangement; Use certain download tool on computers, just can the upgrade software on the local computer be downloaded on the terminal equipment, realize software upgrading terminal equipment.
But above-mentioned escalation process is to be based upon in the downloading process, on the stable basis of port; That is to say; In downloading process, the variation of computer terminal slogan can not appear, if the situation that port numbers changes; Will cause the upgrading failure of terminal equipment, but also the system that can cause terminal equipment is by badly damaged.
Usually, in the large-scale production of equipment, in order to raise the efficiency; When terminal equipment is upgraded, generally adopt multichannel to download together, that is to say; Simultaneously some similar terminal equipments are carried out updating operation, change, cause the upgrading failure if in so large-scale escalation process, occur a certain port suddenly; So also will cause other multiplex terminal equipment generation same problem, cause the upgrading failed download.
Summary of the invention
The technical problem that the present invention will solve provides a kind of method that transmits data to terminal equipment; Passing through computer when terminal equipment transmits data; When computer port changes, failure can not take place to transmit, still can data be sent in the terminal equipment with accomplishing.
For solving the problems of the technologies described above; A kind of method that transmits data to terminal equipment of the present invention is when terminal equipment transmits data; Whether the port numbers of judging the PORT COM that is connected with terminal equipment changes; When said port numbers changes, carry out communication through port numbers and said PORT COM after changing, transmit data to terminal equipment.
Further, when port numbers changes, according to the port numbers after the driving path searching change of PORT COM.
Further, can carry out communication, judge whether the port numbers of this PORT COM changes according to the PORT COM that is connected with terminal equipment.
Further, when whether the port numbers of judging the PORT COM be connected with terminal equipment changed, the port numbers of searching PORT COM number compared the port numbers that finds and this terminal equipment corresponding port of being stored.
Further, according to the port numbers of the driving path searching PORT COM of PORT COM.
Further, before whether the port numbers of judging the PORT COM be connected with terminal equipment changes, the port numbers of the PORT COM that is connected with terminal equipment is stored, and write down the corresponding relation of the port numbers of terminal equipment and PORT COM.
Further, a switching flag bits is set,, judges the state of this switching flag bits, when said switching flag bits is in open mode, judge whether the port numbers of the PORT COM that is connected with terminal equipment changes before terminal equipment transmits data.
Further, when initial condition, said switching flag bits is labeled as open mode.
Further, said terminal equipment is one or more.
In sum, the port numbers of method of the present invention after through the change of searching PORT COM carried out communication through port numbers and terminal equipment after changing; In carrying out the data downloading process of large-scale terminal equipment; When the computer PORT COM changed, method of the present invention can avoid taking place failed download, and to the damage of terminal equipment system; Computer can successfully be accomplished to terminal equipment transmit data; When multichannel is downloaded simultaneously, can avoid because one road failed download causes the failed download of all the other multichannels, and also convenient to operation.
Description of drawings
Fig. 1 is the flow chart of the first embodiment of the present invention;
Fig. 2 is the flow chart of first applying examples of the present invention;
Fig. 3 is the flow chart of the second embodiment of the present invention.
Embodiment
Method of the present invention can be applicable to transmit data to various terminal equipments, as, mobile phone, MP3, wireless modem etc.Can use method of the present invention and transmit various data, like upgrade file, various audio frequency, video file etc. to terminal equipment.
When carrying out the multichannel data download at the same time; Carry out because the transfer of data on each road is parallel, for reaching the unified control to a plurality of download paths, the present invention is provided with switching flag bits; Each download path is before getting into downloading mode; To judge that all when switching flag bits is labeled as when opening, then order is carried out next step down operation to this switching flag bits; When switching flag bits is labeled as when closing then circular wait.After getting into downloading mode, the download path that port changes carries out the port search to this road, finds the port numbers after the change, carries out communication through port numbers and this port after changing, accomplishes to terminal equipment and transmits data.
Describe below in conjunction with the accompanying drawing specific embodiments of the invention:
Embodiment 1:
The method that is of the present invention to the terminal equipment data download shown in Figure 1 comprises the steps:
101: switching flag bits is set, when initial condition, switching flag bits is labeled as open mode;
Can adopt true (very) mark open mode, false (vacation) mark closed condition.
102: after terminal equipment is connected to computer, be that it creates download thread;
Can connect 1 the road or multiplex terminal equipment simultaneously, be that example describes to connect multiplex terminal equipment below.
103: the download thread of arbitrary terminal equipment gets into before the downloading mode therein, judges the state of switching flag bits, and when switching flag bits was in open mode, then execution in step 104; Otherwise circular wait, when judging that switching flag bits is in open mode, execution in step 104;
The multi-path download thread seems simultaneously to be carried out, but mutually and asynchronous, so synchronization has the state that one tunnel download thread is at first judged switching flag bits, and at this moment, all the other each road download thread all are in the circular wait state.
104: switching flag bits is set to closed condition, and the instruction that send to get into downloading mode to terminal equipment after receiving the affirmation information that terminal equipment returns, gets into downloading mode and execution in step 105; If do not receive the affirmation information that terminal equipment returns at the appointed time, then resend the instruction that gets into downloading mode, up to receiving confirmation, get into downloading mode and execution in step 105;
105: can carry out communication according to the PORT COM that is connected with terminal equipment, judge whether the port numbers of this PORT COM changes, if can not carry out communication with this COM1, explain that port numbers changes, then execution in step 106; Otherwise continue the down operation of the data of execution, finish.
106: according to the port numbers after the driving path searching change of PORT COM;
Above-mentioned driving path is recorded in the equipment manager usually, and the API (application programming interfaces) that can using system provides obtains.Catalogue at registration table:
SYSTEM PortName string value under the down corresponding Device Parameters option with above-mentioned driving path, be the port numbers after the change that finds.
107: use the port numbers initialization port after this change that inquires, carry out communication, carry out data download operation through port numbers and port after changing;
108: simultaneously, open switching flag bits, the download thread of all the other terminal equipments that connected is carried out down operation, and process is identical with above-mentioned steps, repeats no more at this.
Through an applying examples embodiment 1 is described again below, as shown in Figure 2, adopt method of the present invention that wireless modem is carried out software release upgrade, wherein simultaneously 8 wireless modem are upgraded.
201: switching flag bits is set, when initial condition, switching flag bits is labeled as open mode;
202: after 8 wireless modem are connected to computer, are respectively each wireless modem and set up download thread;
203: when one of them the judgement switching flag bits among 8 wireless modem is in open mode; The download thread off switch flag bit of this wireless modem; And send the instruction that gets into downloading mode to this wireless modem, after receiving the affirmation information that wireless modem returns, get into downloading mode and execution in step 204;
204: according to the selection of user on the interface, the information that judges whether to preserve wireless modem if the user selects to preserve the information of wireless modem, is then judged and is preserved, and preserve the operation of wireless modem information, order execution in step 205; Otherwise, direct execution in step 205;
205: when the PORT COM of finding to be connected with wireless modem can't successful communication, that is: the port numbers of the PORT COM that is connected with wireless modem changes, according to the port numbers after the driving path searching change of PORT COM;
206: carry out communication through port numbers after the change that inquires and port, upgrade file is downloaded to wireless modem;
207: upgrade file restarts wireless modem, if preserved the information of wireless modem after downloading and accomplishing; Whether the port numbers of then judging PORT COM changes; When changing, search the port numbers after the change, carry out communication through port numbers after the change that inquires and port; And the information of the wireless modem that will preserve sends to wireless modem, execution in step 308; When not changing, the information of the wireless modem that directly will preserve sends to wireless modem, execution in step 208; If do not preserve the information of wireless modem, then direct execution in step 208;
208: open switching flag bits, the download thread of the wireless modem of all the other that have connected is carried out down operation, and process is identical with above-mentioned steps, repeats no more at this.
Embodiment 2:
Shown in Figure 3 for second embodiment of the present invention to the method for terminal equipment data download, comprise the steps:
Wherein step 301 is identical respectively with step 101 and the step 102 of embodiment 1 with step 302;
303: the port numbers to the PORT COM that is connected with terminal equipment is stored, and the corresponding relation of the port numbers of record terminal equipment and PORT COM;
The terminal equipment that can adopt an array to preserve to be connected to computer and corresponding this terminal equipment and computer carry out the port numbers of the PORT COM of communication.
The step 103 of step 304, step 305 and embodiment 1 and step 104 are corresponding respectively, only need the step number in the step is adjusted accordingly;
306: the port numbers of carrying out the PORT COM of communication according to the driving path searching computer and the current terminal of PORT COM;
307: the port numbers that finds and this terminal equipment corresponding port of being stored number are compared, if both are different, explain that then port numbers changes, the port numbers initialization port that use finds carries out communication through port numbers and the port that finds; Otherwise, continue the execute file down operation, finish.
Step 308 is identical with the step 108 of embodiment 1.
Certainly; The present invention also can have other embodiment; Under the situation that does not deviate from spirit of the present invention and essence thereof; Being familiar with those of ordinary skill in the art ought can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (7)

1. one kind is transmitted the method for data to terminal equipment, it is characterized in that, when said terminal equipment when being a plurality of; One switching flag bits is set,, judges the state of this switching flag bits before a terminal equipment transmits data; When said switching flag bits is in open mode, downloading mode is closed and got into to switching flag bits, judge whether the port numbers of the PORT COM that is connected with terminal equipment changes; When said port numbers changes; Port numbers and said PORT COM through after changing carry out communication, transmit data to terminal equipment, and open switching flag bits.
2. the method for claim 1 is characterized in that, when said port numbers changes, according to the port numbers after the driving path searching change of PORT COM.
3. can method as claimed in claim 2 is characterized in that, carry out communication according to the PORT COM that is connected with terminal equipment, judges whether the port numbers of this PORT COM changes.
4. the method for claim 1; It is characterized in that; When whether the port numbers of judging the PORT COM be connected with terminal equipment changed, the port numbers of searching PORT COM number compared the port numbers that finds and this terminal equipment corresponding port of being stored.
5. method as claimed in claim 4 is characterized in that, according to the port numbers of the driving path searching PORT COM of PORT COM.
6. method as claimed in claim 5; It is characterized in that; Before whether the port numbers of judging the PORT COM be connected with terminal equipment changes, the port numbers of the PORT COM that is connected with terminal equipment is stored, and write down the corresponding relation of the port numbers of terminal equipment and PORT COM.
7. the method for claim 1 is characterized in that, when initial condition, said switching flag bits is labeled as open mode.
CN2008100938416A 2008-04-30 2008-04-30 A method for transmitting data to terminal device Active CN101262677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100938416A CN101262677B (en) 2008-04-30 2008-04-30 A method for transmitting data to terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100938416A CN101262677B (en) 2008-04-30 2008-04-30 A method for transmitting data to terminal device

Publications (2)

Publication Number Publication Date
CN101262677A CN101262677A (en) 2008-09-10
CN101262677B true CN101262677B (en) 2012-07-18

Family

ID=39962825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100938416A Active CN101262677B (en) 2008-04-30 2008-04-30 A method for transmitting data to terminal device

Country Status (1)

Country Link
CN (1) CN101262677B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045634A (en) * 2015-08-11 2015-11-11 上海优思通信科技有限公司 Smartphone software download method
CN106028142B (en) * 2016-05-25 2019-05-28 Oppo广东移动通信有限公司 A kind of upgrade control method and device of playback equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090403A (en) * 2006-06-15 2007-12-19 中兴通讯股份有限公司 Device for access control list at aggregate port and its implementing method
CN101141279A (en) * 2006-09-04 2008-03-12 中兴通讯股份有限公司 Device for accessing control listing through virtual LAN and its implementing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090403A (en) * 2006-06-15 2007-12-19 中兴通讯股份有限公司 Device for access control list at aggregate port and its implementing method
CN101141279A (en) * 2006-09-04 2008-03-12 中兴通讯股份有限公司 Device for accessing control listing through virtual LAN and its implementing method

Also Published As

Publication number Publication date
CN101262677A (en) 2008-09-10

Similar Documents

Publication Publication Date Title
CN105763723B (en) Mobile terminal and method for upgrading system
US8775652B2 (en) Communication between a mobile computing device and an accessory using an accessory protocol and an application protocol
US7076269B2 (en) Radio communication system for notifying incommunicable state, and device and method used for the system
US20080117991A1 (en) Partitioning Compression-Based Firmware Over the Air
US8009619B1 (en) Server-side wireless communications link support for mobile handheld devices
CN102308561A (en) ME network parameters configuration by UICC
CN102819461A (en) Desktop synchronization method, device, equipment and system
CN101711026B (en) Inter-mobile terminal software version upgrading method and system
US8060594B1 (en) Client-side wireless communications link support for mobile handheld devices
EP1869924A1 (en) Method for providing contents for mobile communication terminal
KR20090090801A (en) Method and apparatus for updating firmware in portable terminal
CN102484663B (en) Caller-information displaying method, device and cellular phone
CN103249027B (en) The method and apparatus that a kind of terminal traffic processes
CN105320616B (en) External device control method and device
KR20120025331A (en) Method and system for managing communication of a dual stand-by portable terminal
CN105511928A (en) System upgrading device and method
CN106201484A (en) The collocation method of application program, device and terminal unit
CN104598286A (en) Software updating method and device for mobile terminal
CN106559571A (en) parameter configuration device, mobile terminal and method
US20030140129A1 (en) Installing communication protocol in a handheld device
CN101262677B (en) A method for transmitting data to terminal device
CN104158709A (en) Optical module identification method and port extender
US20070259648A1 (en) Mobile terminal combinable with various types of function module and method for controlling the function module
CN102750285A (en) system and method for providing offline browsing
CN106203015A (en) The collocation method of application program, device and terminal unit

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