Description of drawings
For ease of doing further understanding and understanding to purpose of the present invention, shape, constructing apparatus feature and effect thereof, cooperate diagram for embodiment now, be described in detail as follows:
Fig. 1 is server of the present invention and client transmissions configuration diagram.
Fig. 2 creates the process flow diagram of a wireless networked games for the control circuit of this server of the present invention utilizes its blue-tooth technology and network connectivity software.
Fig. 3 after judgement does not have initiate client, judges whether to have reached the process flow diagram that default first-class is treated the time among Fig. 2 of the present invention again.
Fig. 4 after judgement has reached the default stand-by period, can judge whether the process flow diagram of directly playing among Fig. 3 of the present invention again.
Fig. 5 is among Fig. 4 of the present invention, in judging this micro radio Local Area Network, do not have enough clients after, can not carry out, but the process flow diagram that carries out according to step (208) according to step (202).
Fig. 6 after judgement does not have enough clients, judges whether the process flow diagram of directly playing among Fig. 2 of the present invention again.
Fig. 7 is the control circuit of client of the present invention, utilizes its blue-tooth technology and network connectivity software, carries out the process flow diagram that connects with this server.
Fig. 8 after judgement does not search server, judges whether to have reached the process flow diagram of default search time among Fig. 7 of the present invention again.
Fig. 9 after judgement has reached default search time, can judge whether directly to withdraw from the process flow diagram of search among Fig. 8 of the present invention again.
After Figure 10 is this client of the present invention and server line, the process flow diagram that begins to play.
Figure 11 is among Figure 10 of the present invention, when judge do not receive the instruction that this server begins to play after, judge whether to have reached the process flow diagram of a default time of reception again.
Figure 12 after judgement has reached default time of reception, can judge whether directly to withdraw from the process flow diagram of recreation among Figure 11 of the present invention again.
Figure 13 withdraws from the process flow diagram of this recreation for server of the present invention.
Figure 14 is among Figure 13 of the present invention, do not have the response interrogation message of arbitrary client when judgement after, judge whether to have reached the process flow diagram of one of default query time again.
Figure 15 after judgement has reached default time of reception, can judge whether directly to withdraw from the process flow diagram of recreation among Figure 13 of the present invention again.
Figure 16 is among the present invention, and the arbitrary client in this micro radio Local Area Network desires to withdraw from this wireless networked games, and respectively this client withdraws from the process flow diagram of this recreation.
Figure 17 is among Figure 16 of the present invention, after the response message of judging this server not, judges whether to have reached the process flow diagram of default response time again.
Figure 18 after judgement has reached the default response time, can judge whether directly to withdraw from the process flow diagram of recreation among Figure 17 of the present invention again.
Embodiment
The present invention is that a kind of hand-held game machine utilizes blue-tooth technology to carry out the method for wireless networked games, this method is that a blue-tooth technology and a network connectivity software are installed in a hand-held game machine, can be used as server with this hand-held game machine, by this blue-tooth technology and network connectivity software, be provided with the hand-held game machine line mutually of the client of this blue-tooth technology and network connectivity software with at least more than one, mutual transmission signal, form a micro radio Local Area Network, make this server can utilize its network connectivity software, create a wireless networked games, or withdraw from the wireless networked games that it has been created, and the carrying out of managing this wireless networked games, order respectively this client can select to add or withdraw from this recreation, and by this server, carry out the data updating of this wireless networked games synchronously, carry out the purpose of this wireless networked games to realize a plurality of hand-held game machines.
Because, respectively this hand-held game machine system is by blue-tooth technology and network connectivity software, mutual transmission signal, form this micro radio Local Area Network, so hand-held game machine of the server in this micro radio Local Area Network, be the supvr (Master) of this micro radio Local Area Network, be responsible for the transmission of data in this micro radio Local Area Network of domination management, respectively this client in this micro radio Local Area Network is the follower (Slave) of this micro radio Local Area Network, respectively this client and transmitting signals mutually, make the server in this micro radio Local Area Network all pass through this server with this client respectively, transmit signal with each client in this micro radio Local Area Network, make server and each client in this micro radio Local Area Network, carry out the data updating of this wireless networked games synchronously, to avoid in this micro radio Local Area Network, because mutual transmission signal between each client, make server and client in this micro radio Local Area Network, in the time of can't carrying out data updating synchronously, the situation that causes generation data mistake to transmit.
In the present invention, the control circuit of the hand-held game machine of this server is to utilize its blue-tooth technology and network connectivity software, creates a wireless networked games according to the following step, as shown in Figure 2:
(201) at first, the steering order that one hand-held game machine can be imported according to input element on it (as: button), utilize its network connectivity software, be set hand-held game machine, it is in by the hand-held game machine of arbitrary client seeks (Inquiry Scan ﹠amp into server; Page Scan) holding state;
(202) then, judge whether the hand-held game machine of initiate client;
(203) if having, then this server and initiate client by its blue-tooth technology, are set up a micro radio Local Area Network and are linked together respectively;
(204) then, judge in this micro radio Local Area Network whether enough clients are arranged;
(205) if having,, send the message that begins to carry out wireless networked games then to all clients;
(206) then, begin to play;
When judging no any initiate client, then carry out according to step (202);
In judging this micro radio Local Area Network, when not having enough clients, then carry out according to step (202);
The present invention is in step (202), if continue not have new client to add, then this server will be in the state of waiting for that new client adds always, and can't continue next procedure, or play, waiting for that in order to make this recreation new client adds state, after waiting for one section Preset Time, can carry out next procedure smoothly, so, in one embodiment of this invention, see also shown in Figure 3, after judgement does not have initiate client, judge whether to have reached the default stand-by period (207) again, if then carry out according to step (205); Otherwise carry out according to step (202), so, can after a period of time of waiting for initiate client, can proceed next step and handle.
In this embodiment, see also shown in Figure 4, when judge reached the default stand-by period after, can judge whether again directly to play (208), if then carry out according to step (205); Otherwise carry out according to step (202), can wait for new adding client again to make this server.In the step (204) of this enforcement, see also shown in Figure 5, in judging this micro radio Local Area Network, do not have enough clients after, can not carry out, but carry out according to step (208) according to step (202).
The present invention is in step (204), when continuing not have enough clients, this server adds, and when not adding new client again, this server will be in the state of waiting for that new client adds always, and can't continue next procedure, or play, in order to make this recreation not have the state of enough clients, can carry out next procedure smoothly, so, in another embodiment of the present invention, see also shown in Figure 6, after judgement does not have enough clients, judge whether directly play (208) again, if then carry out according to step (205); Otherwise carry out according to step (202), can make this server can carry out next procedure smoothly.
In the present invention, the control circuit of this client is to utilize its blue-tooth technology and network connectivity software, carries out connecting with this server according to the following step, sees also shown in Figure 7:
(301) at first, the steering order imported according to input element on it (as: button) of a hand-held game machine; Utilize its network connectivity software, be set and be client;
(302) then, judge whether to search a server;
(303) if then be connected with this server;
Otherwise carry out according to step (302).
The present invention is in step (302), if continue not search a server, then this client will be in the state of search server always, and can't continue next procedure, or play, after making this client search server a period of time, can carry out next procedure smoothly, so, in one embodiment of this invention, see also shown in Figure 8, when judge do not search server after, judge whether to have reached default search time (304) again, if then withdraw from search server; Otherwise carry out according to step (302).
In this embodiment, see also shown in Figure 9, when judge reached default search time after, can judge whether directly to withdraw from search again, if then directly withdraw from search; Otherwise carry out according to step (302), to make this server search server again.
In the present invention, behind this client and the server line, be to begin recreation according to the following step, see also shown in Figure 10:
(401) at first, judge whether to receive this server and send the instruction of playing;
(402) if then transmit the required data of playing mutually with this server;
(403) begin recreation.
After judging that not receiving this server sends the instruction of playing, then carry out according to step (401);
The present invention is in step (401), if when continuing not receive the instruction that begins to play of this server, then this client will be in the state that receives instruction of waiting for always, and can't continue next procedure, or begin to play, in order to make this client for receiving when instruction, can carry out next procedure smoothly, so, in one embodiment of this invention, see also shown in Figure 11, when judge do not receive the instruction that this server begins to play after, judge whether to have reached default time of reception (404) again, if then withdraw from recreation; Otherwise carry out according to step (401).
In this embodiment, see also shown in Figure 12, when judge reached default time of reception after, can judge whether directly to withdraw from recreation again, if then directly withdraw from recreation; Otherwise carry out according to step (401), can carry out according to step (401) to make this server, in order to rejudge the instruction that begins to play that whether receives this server.
If this server directly withdraws from the wireless networked games that it is created, all clients of in this micro radio Local Area Network, playing then, to under the state of no early warning, be forced to stop recreation, and cause the user's of these clients difficulty and inconvenience, so for after making this server withdraw from this recreation, all clients of playing in this micro radio Local Area Network, can continue this recreation, in the present invention, this server is to withdraw from this recreation according to the following step, sees also shown in Figure 13;
(501) at first, this server sends the message that withdraws from this recreation, all clients to this micro radio Local Area Network;
(502) then, send an inquiry message all clients to this micro radio Local Area Network again, whether inquiry has the new server of client desire catcher as this recreation;
(503) then, judge whether to receive client and be ready to take over message as the new server of this recreation;
(504) if having, the message of this recreation is sent to the client of response;
(505) then, notify other clients do not responded in this micro radio Local Area Network, the message of relevant new server (client of response), and statement is about to withdraw from this recreation;
(506) then, withdraw from recreation;
Receive after any client is ready to take over message as the new server of this recreation when judging not have, then carry out according to step (503);
The present invention is in step (503), if when continuing not receive the response interrogation message of arbitrary client, then this server will be in the state that awaits a response, and can't continue next procedure always, when instructing for this client is not received, can carry out next procedure smoothly, so, in one embodiment of this invention, see also shown in Figure 14, do not have the response interrogation message of arbitrary client when judgement after, judge whether to have reached default query time (507) again, if then withdraw from recreation; Otherwise carry out according to step (503).
In this embodiment, see also shown in Figure 15, when judge reached default time of reception after, can judge whether again directly to withdraw from recreation, if then directly withdraw from recreation; Otherwise carry out according to step (503), can carry out according to step (503),, slowly can't withdraw from recreation to avoid this server in order to rejudge the instruction that begins to play that whether receives this server to make this server.
After this server withdrawed from this recreation, new server then can carry out according to step (202);
If the arbitrary client in this micro radio Local Area Network desires to withdraw from this wireless networked games, then respectively this client is to withdraw from this recreation according to the following step, sees also shown in Figure 16;
(601) at first, this client is sent the message that withdraws from this recreation, shows to this server and will withdraw from this recreation;
(602) then, judging whether to receive this server confirms to withdraw from the response message of being ready this recreation;
(603) if having, then withdraw from recreation;
Otherwise, carry out step (602);
The present invention is in step (602), if when continuing not receive the response message of this server, then this client will be in the state of the message that awaits a response, and can't continue next procedure always, in order to make this client not receive response message the time, can carry out next procedure smoothly, so, in the present invention, see also shown in Figure 17, after the response message of judging this server not, judge whether again to have reached a default response time (604), if then withdraw from recreation; Otherwise carry out according to step (602).
In this embodiment, see also shown in Figure 180, when judge reached the default response time after, can judge whether again directly to withdraw from recreation, if then directly withdraw from recreation; Otherwise carry out according to step (502), can carry out according to step (602),, slowly can't withdraw from recreation to avoid this client in order to rejudge the response message that whether receives this server to make this client.
After this client withdrawed from this recreation, this server then can carry out according to step (202);
As previously discussed, wireless networked games is being created or withdrawed to this server, reach this client adding or withdraw from this recreation, all carry out the data updating of this wireless networked games by this server sync, to avoid the false judgment of data misinformation, carry out the purpose of this wireless networked games to realize a plurality of handheld games ends.
Press, the above is only for a specific embodiment of the best of the present invention, structural attitude of the present invention is not limited thereto, anyly be familiar with present technique field person in field of the present invention, can think easily and variation or modification, all can be encompassed in the appended claim scope.