[go: up one dir, main page]

CN1780282B - A Realization Method of Terminal Sharing Host - Google Patents

A Realization Method of Terminal Sharing Host Download PDF

Info

Publication number
CN1780282B
CN1780282B CN 200410097729 CN200410097729A CN1780282B CN 1780282 B CN1780282 B CN 1780282B CN 200410097729 CN200410097729 CN 200410097729 CN 200410097729 A CN200410097729 A CN 200410097729A CN 1780282 B CN1780282 B CN 1780282B
Authority
CN
China
Prior art keywords
terminal
function
main frame
host
call number
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.)
Expired - Lifetime
Application number
CN 200410097729
Other languages
Chinese (zh)
Other versions
CN1780282A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200410097729 priority Critical patent/CN1780282B/en
Publication of CN1780282A publication Critical patent/CN1780282A/en
Application granted granted Critical
Publication of CN1780282B publication Critical patent/CN1780282B/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明有关一种终端共享主机的实现方法,包括:在主机内存储功能索引表,设置与该主机通信的终端所具有的功能的索引号;在所述终端中存储终端功能索引表,包括与其具有的功能对应的索引号及各功能的相关命令信息;当主机对终端执行一项功能操作时,执行步骤:A、主机通过与终端之间的接口向终端下发一功能查询消息,并携带该功能的索引号;B、所述终端根据索引号查找其功能索引表,若匹配到相同的索引号,则将其对应功能的命令信息返回给主机;C、主机根据返回的命令信息,对所述终端执行所述功能操作。采用本发明方法能实现不同类型终端产品共享一个主机来进行通信。

Figure 200410097729

The present invention relates to a method for implementing a terminal sharing host, comprising: storing a function index table in the host, setting the index number of the function of the terminal communicating with the host; storing the terminal function index table in the terminal, including The index number corresponding to the function and the relevant command information of each function; when the host performs a function operation on the terminal, the execution steps: A. The host sends a function query message to the terminal through the interface with the terminal, and carries The index number of the function; B, the terminal searches its function index table according to the index number, and if the same index number is matched, the command information corresponding to the function is returned to the host; C, the host returns the command information to the host according to the returned command information The terminal performs the functional operation. Adopting the method of the invention can realize that different types of terminal products share a host computer for communication.

Figure 200410097729

Description

A kind of implementation method of terminal shared host
Technical field
The present invention relates to main frame and communication between terminals, refer to the implementation method of the shared main frame of a kind of different types of terminals especially.
Background technology
The upgrading of end product is very fast, wherein each upgrading all may increase or delete a certain function newly, if the software of end product is upgraded, guarantee that the order that main frame sends can both correctly be received by terminal, prior art also must be upgraded background host computer simultaneously, promptly must make end product and main frame keep strict man-to-man dependence, can not realize many-to-one situation, be to share a main frame between the different terminals product to communicate, cause end product and main frame to develop simultaneously like this, the waste development and maintenance cost delays product and releases the time.
Summary of the invention
The invention provides a kind of implementation method of terminal shared host, solve the problem that the different types of terminals product can not be shared a main frame.
The inventive method comprises:
In host memory storage feature index table, the call number of the function that terminal had of setting and this main-machine communication;
Storage terminal feature index table in described terminal comprises the call number of the function correspondence that it has and the related command information of each function;
When main frame is carried out a feature operation to terminal, carry out following steps:
A: main frame by and terminal between interface issue a functional inquiry message to terminal, this query messages carries the call number of this function;
B: described terminal is searched its feature index table according to call number, if match identical call number, then the command information with its corresponding function returns to main frame;
C: main frame is carried out described feature operation according to the command information of returning to described terminal.
According to said method of the present invention,, then return error message to main frame if terminal does not match identical call number.
Described interface is the handshake passing interface between main frame and the terminal.
Described functional inquiry message is carried the inquiry sign of main frame and terminal agreement.
According to said method of the present invention, after terminal receives a piece of news, inquire about marking matchedly, if match the inquiry sign of agreement, then confirm as functional inquiry message, continue execution in step B and step C; Otherwise confirm that current message is normal handshake information, carry out the corresponding flow process of handshake information.
The inquiry of described agreement is designated character string or random number.
Described command information comprises: total command word, subsystem identification code and/or subsystem internal command word.
Described call number is Arabic numerals or any character.
Adopt method of the present invention can realize that the shared main frame of different types of terminals product communicates.
Description of drawings
Fig. 1 is the inventive method flow chart.
Embodiment
Below in conjunction with accompanying drawing, the inventive method step is provided detailed description.
Step 11: store up a repertoire concordance list at host memory, the call number of the various difference in functionalitys that all types of terminal had of setting and this main-machine communication.Specify as follows:
As shown in Table 1, suppose that main frame need communicate with two types terminal, is respectively terminal one and terminal two.Terminal one has function 1 and function 2, and terminal two has function 1 and function 3, then needs to be provided with the pairing call number of repertoire (function 1, function 2 and function 3) in Table 1; As in the table one, " 1 " is the call number of function 1, and " 2 " are the call number of function 2, and " 3 " are the call number of function 3.
Table one:
Call number Realize function
1 Function 1
2 Function 2
3 Function 3
Step 12: in described all types of terminals, store a termination function concordance list respectively, comprise the call number of the function correspondence that this terminal itself is had and the related command information of each function.Specify as follows:
As shown in Table 2, termination function concordance list for terminal one storage, comprise the function 1 that terminal one is had and the call number " 1 " and the call number " 2 " of function 2 correspondences in this table, and the command information of memory function 1 such as the command information such as the command word CMD_CODE2 of command word CMD_CODE1 and function 2 simultaneously.
Table two:
Call number Command word
1 CMD_CODE 1
2 CMD_CODE 2
Same, terminal two also needs to store a termination function concordance list, as shown in Table 3, comprise the function 1 that terminal two is had and the call number " 1 " and the call number " 3 " of function 3 correspondences in this table, and the command information of memory function 1 such as the command information such as the command word CMD_CODE3 of command word CMD_CODE1 and function 3 simultaneously.
Table three:
Call number Command word
1 CMD_CODE 1
3 CMD_CODE 3
Step 13: main frame by with the handshake information passing interface of terminal, issue the functional inquiry message and the handshake information of carrying call number.Specify as follows:
Before main frame is carried out a function to terminal, need inquire about earlier whether terminal has this function, main frame can by and terminal between interface issue a functional inquiry message to terminal and realize inquiry.
In order to make full use of existing equipments resources, making simultaneously all can be normally mutual between dissimilar terminals and the same main frame, should seek a public information interactive interface.Considering between terminal and the main frame needs to shake hands constantly, therefore can issue functional inquiry message by the handshake passing interface between terminal and the main frame and realize functional inquiry.Adopting the handshake passing interface only to be one at this gives an example, in the practical application, can adopt other interface type or a new special purpose interface is set.
Normal handshake information is not disturbed by functional inquiry between terminal and the main frame in order to make, and can allow functional inquiry message carry specific sign (sign of agreement between main frame and terminal in advance), can arrange a character string or certain random number.
Step 14: judge whether current message is functional inquiry message, and concrete grammar is:
Terminal is after the message that receives from the handshake passing interface, and the coupling of advanced line character string or random number if coupling is unsuccessful, shows that then this message is normal handshake information, execution in step 15; Otherwise confirm as this message is functional inquiry message, execution in step 16.
Step 15: the normal running flow process of carrying out handshake information.
Step 16: read the call number of the correlation function that carries in this message, continue step 17;
Step 17: terminal is searched the termination function concordance list of oneself according to this call number, if do not match identical call number, then execution in step 18, otherwise, execution in step 19;
Step 18: return an error message to main frame, the expression terminal is not supported this function, and main frame can not provide this function to the user.
Step 19: the command information of call number corresponding function is returned to main frame, continue step 20.
Step 20: main frame receives orders after the information, confirms that terminal supports this function; The command word that main frame can return according to terminal is initiated the information of uploading of order or receiving terminal to terminal.
The command information that terminal is returned comprises: the information of All hosts needs such as total command word, subsystem identification code and/or subsystem internal command word.If polytype terminal all has a certain function, as long as the function manipulative indexing is number identical, even the command information difference that each terminal is returned, main frame also can issue corresponding order according to the command word that each terminal is returned fully, so just reached the purpose of the shared main frame of different terminals.
Be one of the functional inquiry message that issues of main frame and the command information of terminal to report embodiment below:
typedef struct
{
uint16index;
}cmd_req_type;
The information format that reports after the inquiry:
typedef struct
{
uint16 index;
uint8 cmd;
uint8 sub_sys_id;
uint16 sub_sys_cmd;
uint16 event_id;
uint16 sub_event_id;
uint16 log_id;
uint16 sub_log_id;
}cmd_rsp_type;
Parameter wherein: the call number of index presentation function correspondence; Cmd represents total command word of this type of function; Sub_sys_id represents subsystem ID (identification code); Sub_sys_cmd represents the command word at certain subsystem inside; Event_id represents the presumable event id of this function; Log_id represents that the presumable Log of this function (daily record) reports ID; Sub_log_id represents sub-Log Id that this function can have or the like.
Be example still with above-mentioned terminal one and terminal two, if index is the voice master calling function of arranging between 1 expression main frame and the terminal, cmd is 75, sub_sys_id is 14, sub_sys_cmd is 0xff00, and this function does not have incident or Log information to report, and a pair of index of terminal is this function of 1 so, and the form description that can preserve is as follows:
const test_qcmd_cmd_type cmd_list[]=
{
1,75,14,0xff00,0,0,0,0
}
Terminal two also should be preserved and terminal one similar form, just must be identical except the call number of identical function, other all fields all can be different.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (8)

1. the implementation method of a terminal shared host is characterized in that comprising:
In host memory storage feature index table, the call number of the function that terminal had of setting and this main-machine communication;
Storage terminal feature index table in described terminal comprises the call number of the function correspondence that it has and the related command information of each function;
When main frame is carried out a feature operation to terminal, carry out following steps:
A: main frame by and terminal between interface issue a functional inquiry message to terminal, this query messages carries the call number of this function;
B: described terminal is searched its feature index table according to call number, if match identical call number, then the command information with its corresponding function returns to main frame;
C: main frame is carried out described feature operation according to the command information of returning to described terminal.
2. the implementation method of terminal shared host as claimed in claim 1 is characterized in that: if terminal does not match identical call number, then return error message to main frame.
3. the implementation method of terminal shared host as claimed in claim 1, it is characterized in that: described interface is the handshake passing interface between main frame and the terminal.
4. the implementation method of terminal shared host as claimed in claim 3 is characterized in that: described functional inquiry message is carried the inquiry sign of main frame and terminal agreement.
5. the implementation method of terminal shared host as claimed in claim 4, it is characterized in that: after terminal receives a piece of news, inquire about marking matched, if match the inquiry sign of agreement, then confirm as functional inquiry message, continue execution in step B and step C; Otherwise confirm that current message is normal handshake information, carry out the corresponding flow process of handshake information.
6. as the implementation method of claim 4 or 5 described terminal shared hosts, it is characterized in that: the inquiry of described agreement is designated character string or random number.
7. the implementation method of terminal shared host as claimed in claim 1, it is characterized in that: described command information comprises: total command word, subsystem identification code and/or subsystem internal command word.
8. the implementation method of terminal shared host as claimed in claim 1, it is characterized in that: described call number is Arabic numerals or any character.
CN 200410097729 2004-11-26 2004-11-26 A Realization Method of Terminal Sharing Host Expired - Lifetime CN1780282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410097729 CN1780282B (en) 2004-11-26 2004-11-26 A Realization Method of Terminal Sharing Host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410097729 CN1780282B (en) 2004-11-26 2004-11-26 A Realization Method of Terminal Sharing Host

Publications (2)

Publication Number Publication Date
CN1780282A CN1780282A (en) 2006-05-31
CN1780282B true CN1780282B (en) 2010-04-28

Family

ID=36770393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410097729 Expired - Lifetime CN1780282B (en) 2004-11-26 2004-11-26 A Realization Method of Terminal Sharing Host

Country Status (1)

Country Link
CN (1) CN1780282B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866332A (en) 2014-02-26 2015-08-26 华为终端有限公司 Capacity determining method, capacity configuring method, host, terminal equipment and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1270452A (en) * 1999-04-09 2000-10-18 电话通有限公司 Method and system based on station arrangement for convenient bidirectional mobile communication equipment
CN1274127A (en) * 1999-04-28 2000-11-22 卡西欧计算机株式会社 Security administive system, data distributing equipment and portable terminal device
US20020112047A1 (en) * 2000-12-05 2002-08-15 Rakesh Kushwaha System and method for wireless data terminal management using general packet radio service network
JP2002278935A (en) * 2001-03-19 2002-09-27 Sony Corp Network system, terminal equipment, communicating method, program and record medium
CN1414796A (en) * 2001-10-24 2003-04-30 李力 Radio information inquiry and management system and method
JP2004318486A (en) * 2003-04-16 2004-11-11 Victor Co Of Japan Ltd Home network constituting equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1270452A (en) * 1999-04-09 2000-10-18 电话通有限公司 Method and system based on station arrangement for convenient bidirectional mobile communication equipment
CN1274127A (en) * 1999-04-28 2000-11-22 卡西欧计算机株式会社 Security administive system, data distributing equipment and portable terminal device
US20020112047A1 (en) * 2000-12-05 2002-08-15 Rakesh Kushwaha System and method for wireless data terminal management using general packet radio service network
JP2002278935A (en) * 2001-03-19 2002-09-27 Sony Corp Network system, terminal equipment, communicating method, program and record medium
CN1414796A (en) * 2001-10-24 2003-04-30 李力 Radio information inquiry and management system and method
JP2004318486A (en) * 2003-04-16 2004-11-11 Victor Co Of Japan Ltd Home network constituting equipment

Also Published As

Publication number Publication date
CN1780282A (en) 2006-05-31

Similar Documents

Publication Publication Date Title
KR101110778B1 (en) Method and system of bluetooth communication
WO2018219178A1 (en) Data synchronization method and apparatus, server, and storage medium
US9549025B2 (en) Protocol optimization for client and server synchronization
CN104202440B (en) A kind of method of marking terminal, server and system
US8909662B2 (en) Message based mobile object with native PIM integration
US8787985B2 (en) Screen capture method of mobile communication terminal
WO2017083212A1 (en) System and method for tracking items within a defined area
CN111694495A (en) Method, system and storage medium for rapidly docking third-party APP platform
EE05044B1 (en) Payment data exchange scheme, payment terminal device and authentication method
CN103346897B (en) A kind of group's Adding Way and relevant device, system
CN102833817A (en) Network access method and system based on home gateway and home gateway
CN101287221A (en) Information transferring method between intelligent bi-mode mobile phone and wireless modem
CN104811912A (en) Information interaction system and processing method based on wireless access device identity (ID) identification
US20200120161A1 (en) Method and System for Triggering an Online Interaction in Connection with a Physical Product
CN102651024A (en) Method and device for data conversion
US20080274717A1 (en) Apparatus of Transmitting Private Information in Mobile Terminal and Its Method
CN102541923A (en) Database read-write separating method and device
WO2018223936A1 (en) Method and system for interaction between ap and modem, and storage medium
CN1780282B (en) A Realization Method of Terminal Sharing Host
CN102111487A (en) Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card
WO2015161558A1 (en) Information transmission method, device and system for near field communication recognition chip
CN107197074A (en) Book management method, device, storage medium and electronic equipment
CN103049403A (en) Method for communication between embedded terminal device and cell phone
CN102937862A (en) System and method for managing mobile terminal by browser
US20200104787A1 (en) Method and system for triggering an online interaction in connection with a physical product

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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20100428