CN103316472A - Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system - Google Patents
Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system Download PDFInfo
- Publication number
- CN103316472A CN103316472A CN2013101828683A CN201310182868A CN103316472A CN 103316472 A CN103316472 A CN 103316472A CN 2013101828683 A CN2013101828683 A CN 2013101828683A CN 201310182868 A CN201310182868 A CN 201310182868A CN 103316472 A CN103316472 A CN 103316472A
- Authority
- CN
- China
- Prior art keywords
- game
- handle
- bluetooth
- service
- platform
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an Android device gas platform system based on a Bluetooth handle and an implementation method of the Android device gas platform system. The interactive protocols of different Bluetooth handles on the market are unified, so that handles in different modes on the market can uniformly and conveniently have an access to a game platform and use the server technology, and the game platform is connected to a game content server through a network and can provide rich game resources so as to improve the user experience and the value of games. The game platform disclosed by the invention can be mounted on almost all Android devices so as to enable a common Android device mounted with the Android device gas platform system to become a game machine controlled by the handle in the Internet era.
Description
Technical field
The present invention relates to a kind of Android equipment game platform system and its implementation based on the bluetooth handle.
Background technology
On conventional P C platform, the peripheral hardware handle is connected very universal with PC.His connected mode has multiple, comprises the USB wired connection, the 2.4G wireless connections, and wireless blue tooth connects etc.And need the game controlled with the peripheral hardware handle also a lot of at the PC platform, winning eleven for example, Need For Speed etc.Had after the peripheral hardware handle, the operating handle of game has greatly promoted.
More and more universal along with Android equipment utilizes the game of Android software development more and more.And the at present game of Android platform all touch screen be controlled to be the master.Wherein some is similar to the handle game of conventional P C, but majority also is to utilize touch screen to remove the key assignments of simulating handle, usually causes the handling decline of playing, thereby has greatly reduced the player who plays.For this solution of problem several schemes are arranged also in the market at present:
1, part cell phone manufacturer, they carry the handle game keys at Cell Phone Design.
2, part cell phone manufacturer be the specific connecting handle of their Cell Phone Design, and these handles just can only be connected to also on the specific Android equipment (majority need to be obtained the root authority).
3, some handle manufacturer supports various modes, can be connected to Android equipment.But every kind of pattern all can only be supported the type of play of its AD HOC.
For the first scheme and first scheme, there is following problem:
1, the Android device systems that need to customize is supported the handle of their particular design.This meeting only has and supports the game user of its AD HOC just can use so that the game of supporting is more limited.Generally all just support its games carried in mobile phone.Game content is abundant not, and the user is weak on experiencing.
2, because specific demand, the Android equipment that handle can connect not is general Android standard device.So he as the PC platform, does not regard Android equipment as unified operation platform.But need specific hardware binding.Namely handle can only connect the equipment of particular vendors.
3, for the third scheme, he is general handle, and the Android equipment that he can connection standard does not need the Android apparatus bound of particular vendors.But still there is following problem:
1), because connection mode is too many, the user needs oneself to switch at handle when using the handle of different mode.The user does not often know what pattern is particular game specifically support, the user uses it also to need more knowledge, needs oneself to attempt solving, and the user experiences very poor.
2), because pattern numerous, do not have the Games Software platform interface of standard, cause the user not know which game can be with hand and operation, game content is short of very much.Most handle factory all is that oneself seeks game, and lists in the instruction book of handle, and the user need to play facing to specification, and operation sense is poor.
Summary of the invention
Goal of the invention: in order to solve the problem of Android equipment fragmentation, the invention provides a kind of Android equipment game platform system and its implementation based on the bluetooth handle, the interaction protocol of the different bluetooth handles on the united market, thereby so that the handle of different mode on the market, can unify and access easily gaming platform, and use server technology, gaming platform is by network connection game content server, can provide abundant game resource, with the value of great lifting user experience and game.Gaming platform of the present invention can be installed on nearly all Android equipment, thereby makes the logical Android equipment of a Daepori after the present invention has been installed, can be with the game machine of handle control Internet era of having become one.
Technical scheme: a kind of Android equipment game platform system based on the bluetooth handle comprises unified bluetooth equipment service layer, SDK Development Framework, Game Market and game console;
One, unification bluetooth equipment service layer
This layer is the Android service, is mainly used in safeguarding connection and the data, services of bluetooth handle, and the interaction protocol of the different bluetooth handles on the united market makes the game paddle of different mode can conveniently be connected into same gaming platform.Unification bluetooth equipment service layer mainly comprises three: Service Management, driven management, incident management.
1, Service Management is the maintenance of the life cycle of service and the application of safeguarding its registration, this service has realized the login mechanism of SDK, the Android of use SDK uses can be to this service registry, because service is the independent process operation, so the application of registration will provide the message queue of its place process to quote (Messager), service keeps the message queue of registered application with List, the message queue that application also can obtain to serve after the registration is to finish bidirectional data interaction, service starts automatically by the Bind mode when first application is sent registration request to service, when last is used the service of cancellation and is not had equipment connection, the service automatic stop, so as required start-up mode has farthest reduced the performance cost of system.
2, driven management, service provides the driven management framework, has designed the base class of bluetooth handle drives in the framework, and this base class is inherited from Runnable, therefore can put into the concurrent execution of thread, the functional block that the driving base class comprises has: connecting handle, disengagement lever, checking handle, read the handle data, obtain the handle state.Have different subclasses to inherit described base class for different bluetooth chipset, subclass will rewrite corresponding functional block as required.The functional block that wherein needs to rewrite is for verifying handle and reading the handle data, and the former guarantees that the handle of platform authentication could access, and the latter uses different data protocols to resolve for such handle.Framework has taken out the basic function of handle, and is encapsulated as abstract class and abstract method, and new driving only need be inherited parent and can be included in the platform, is easy to expansion and management.Automatic opening system bluetooth when equipment connection, automatic closing system bluetooth when last connection device disconnects, the mode of this as required switch bluetooth has farthest been saved energy consumption.
3, incident management has a message handle Handler to be responsible for the processing event specially in the service, and event is mainly derived from two: handle event and SDK request event.The handle event triggers by the lower handle button or when using rocking bar the user, import data into service layer by the bluetooth connection, use corresponding data protocol to resolve behind its drive thread reading out data, the process of resolving at first reads direct array, obtain packet header byte by scanning, obtain actual valid data according to side-play amount, through obtaining corresponding key-press event or handle event after the protocol conversion, this event is distributed in the application of all registrations by message queue, the monitoring of application by SDK registration will the callback events response method, thereby upper layer application can obtain the handle data.On the other hand, using can be to service request handle status information by SDK, the handle information that mainly comprises current connecting handle tabulation and corresponding player order, this solicited message is assembled into the platform internal event, enter the platform service process by message queue after being converted to message, process reverts back corresponding requests after reading message in Handler, and makes respective handling, and the data communication device that returns is crossed message queue and returned.
Two, SDK Development Framework
The SDK Development Framework is mainly used in the interactive interface of unified handle and game, and provides the storehouse for new development of games.This framework is mainly write by Java language, forms the jar bag after the compiling and is used by other application as third party library.Need not to manage the joint detail of bluetooth handle behind the application use SDKAPI, do not need to apply for extra Bluetooth control authority, the operation setting before also can not affecting has increased a kind of new interactive mode on the contrary.The SDK Development Framework is guaranteed its versatility based on Android SDK, has defined simultaneously api interface.Main API comprises: registration service, monitoring is set, and obtain facility information, key value mapping table is set.
1, registration service, Android uses and can the process of oneself be registered to the bluetooth equipment service processes by this API, the process of registration is for to carry out bindings according to service name, service can obtain the message queue of application process after the binding, use simultaneously the message queue that also can take the handle service, thereby can realize two-way interactive.The service of bluetooth handle can distribute message to formation after the registration, thereby uses the variety of event response that can obtain from service.Registration process is generally carried out when program start, need to call cancellation API and go to remove registration when application is closed.Registration service is an asynchronous process, can obtain the registering result state by monitoring is set.The application of only succeeding in registration just can be obtained normal service function.
2, monitoring is set, by monitoring is set, application can obtain the event response of bluetooth handle, monitoring mechanism is similar to the monitoring among the Java, and SDK has defined several monitoring interfaces, mainly contains button and monitors, rocking bar is monitored, Macintosh is monitored, turn-off request action listener, equipment connection status monitoring, the equipment essential information is monitored and wrong the monitoring, every kind of monitoring all is the Interface among the Java, and application can realize the processing logic of corresponding interface and arrange by API in class, when corresponding event distributes by message queue, the implementation method that arranges will be called back, and therefore corresponding logic can be performed.When the user presses the lower handle button, the button monitor method will be called back, and the parameter of monitoring API is the KeyEvent class in the Android system, with systems compliant, the parameter that rocking bar is monitored is analog quantity, X, and Y value is the coordinate in-128 to+128 the plane right-angle coordinate.Macintosh monitor rear system is set can the recognition combination key events, if the user presses some buttons simultaneously, the Macintosh monitor method will be called back, the key assignments object of all Macintosh can pass through gain of parameter.Platform definition the turn-off request event, namely L1 and R1 press simultaneously and are defined as turn-off request, this combination button has independently when pressing that callback method is called back, application can be used for catching the request of withdrawing from.The connection status of equipment is definition in connection status is monitored, and has mainly comprised equipment and has connected, and connects, and has disconnected three kinds of events.The equipment essential information is monitored asynchronism callback after API equipment state is initiatively called in application, has mainly comprised the list of devices information of all connections and has specified player's facility information sequentially.The abnormal information of equipment during error message is monitored and can be obtained to serve.
3, obtain facility information, SDK provides two API to be used for initiatively sending the request of obtaining facility information to service, and main information includes: the list of devices of all connections and the equipment state of specifying player's order.Method of calling is asynchronous call, can monitor the equipment status information by the equipment essential information is set after calling.
4, key value mapping table is set, be defaulted as the key value mapping table of standard among the SDK, key value mapping table is an int array, length is 256, its initial value all is 0, when having a key assignments map information, under be designated as the platform standard key assignments, and corresponding array value is the key assignments after the escape, the button value that platform has been unified different Bluetooth devices is the standard key assignments, yet program can arrange self-defined key assignments mapping table as required, does not need extra escape in program inside like this and directly obtains the response of self-defined key assignments.
Three, Game Market
Game Market is that an Android uses, and is mainly used in managing handheld device, obtains game resource from server, and manage in Android equipment this locality, this application includes the service of bluetooth handle and SDK Development Framework, and after user installation, the service of bluetooth handle also just is installed in the system.This technology has solved in the present handle gaming platform, the problem of content, and can allow the user seek out very easily can be with lever operated game.Should application itself also use the SDK framework simultaneously, and can use bluetooth lever operated.Game Market comprises two parts, Android applications client and server end.In established unified game operation framework, this unified frame the loading flow process of different simulators, the user has been shielded the difference that simulator game and Android play, make it to have unified method of operating.Game Market also can be collected user's use habit in addition, can carry out further data mining at server end and obtain effectively to use mode data.
1, the Android client, the Android client has comprised local game identification and operation-interface, the user opens when using for the first time, Game Market on the backstage subsidiary key value mapping table XML file of automatic decompress(ion) in internal memory, the form that the key value mapping table of all game will be organized as MAP is maintained in the internal memory, so the Game Market game that can utilize this built-in key value mapping table detection platform in system to support, and automatically adds the local game tabulation.At first the application start thread scans all installation application, searching in key value mapping table by the bag name, if find occurrence, the game of Game Market authentication when this application is described, therefore it is added in the platform database, if had this game information then do not add.By this mechanism, Game Market has at utmost reduced the dependence to external environment condition in the situation that also can normal game without network connection.Client has also comprised recommended games, the game seniority among brothers and sisters, game details function, be mainly used in obtaining game resource from server end, mutual request is packed as a NetworkTask, and Task has comprised the Game Market authorization information, URL and readjustment Handler, carry out asynchronous execution by HandlerThread, by readjustment Handler data are sent in the corresponding message queue after carrying out, the data flow that Handler resolves the JSON form can obtain game data.Game resource mainly is divided into 3 classes, and SDK supports game: such game package contains platform SDK, can directly use handle control under Game Market; Simulator game, Game Market is built-in has integrated 3 sections of simulators, has used unified operation-interface; Third party game, SDK is not used in these game, but built-in response for external key, thus Game Market can be injected into the target that realizes operate game in the application with the key assignments of bluetooth handle by game console.The user can download in Game Market, upgrades the unloading game resource.In addition, Game Market has the equipment control interface, this interface is registered to remote service and is obtained facility information by calling SDK API, can select automatic or manual to add the bluetooth handle by this interface user, Game Market will be opened bluetooth automatically under the automatic mode, and open search equipment, thereby the title of equipment and MAC Address will be identified and find corresponding driving type to mate, carry out equipment connection after the coupling, therefore for the second time the facility information of successful connection will be stored in the database, can directly connect or disconnection from list of devices during connection device.The handle of first access platform will be opened autoconnect function automatically simultaneously, and this handle certainly will be dynamically connected when start Game Market next time.
2, unified game operation framework, Platform Designing unified game operation framework, this framework has redefined the user and has opened the mode of game, unified take game icon as main body, the user click icon can be opened game, length can unload game by icon, shield different type of play, especially for the simulator game, removed the startup interface of simulator self in the Game Market, ROM selects the interface, but import the ROM path that need to open into by parameter, and like this user has been shielded the particular manner of operation of simulator game, can directly open corresponding ROM by game icon.All game informations all are kept in the client database, the unfolding mode corresponding different according to the type of game, even the built-in simulator of Game Market also has the independent process operation, platform still can normally move when unusually withdrawing from appears in simulator like this.In addition, carry out encryption for the ROM file, when starting, can automatically verify, prevented illegal ROM infringement platform, strengthened security.The simulator game uses the mode of Java+C language to develop, and the bottom code of C language compilation is compiled as the SO storehouse, is called by Game Market by JNI, has therefore improved operational efficiency.
3, server end, server adopts SSH (Spring+Struts+Hibernate) framework of standard, and server end mainly provides the equipment registration interface, the access of game resource, the user uses information.The Spring technology can dynamic load realize class, thereby can inject different logics, and Struts has separated logical layer and presentation layer by the MVC framework, standard JSON form is adopted in data interaction, the different demands of having unified CS and BS framework, it is the data persistence technology of main body that Hibernate adopts object, by the mapping relations of configuration file defining objects and database table, can switch to fast different databases simultaneously.Designed simultaneously the legitimacy of client blocker for checking client; the client and server end will keep an identical PKI; client is encrypted calculating according to its signature; the identifying code that obtains enters the blocker of server along with the Action request; if server authentication is passed through; what then prove the client use is the version of official's signature; then can normally obtain game resource; otherwise illustrate that client was tampered, provide service in order to protect the server security blocker with refusal.
4, user's usage data is collected, and user's usage data comprises that mainly handle connects number of times, connects duration, handle types, and the game name of opening, type of play, and the operation to playing, upgrade unloading etc. as installing.User data collection is finished automatically on the backstage, and is dealt into server after the user agrees and carries out large data analysis obtaining, the data mask in the server users personal data, only comprise handle and game data.By data mining analysis, Game Market will push suitable game according to user's characteristics, and can better use handle by prompting user.
Four, game console
Use for popular game on the market, owing to not adopting SDK to support, directly the usage platform authentication is lever operated, but the key response mechanism of oneself that certain applications are built-in, therefore, design game console in the platform and be used for the key assignments injection is carried out in such game, thereby reached the purpose of control game.
1, game control, game console is in the nature an Android input method, and this input method is different from general input method, does not have soft keyboard and UI, only by lever operated injection key assignments.Game console itself also is the application that a SDK supports, by using SDK API can monitor the key-press event of handle, key assignments after will shining upon by the key value mapping table that loads current game sends in the game, thereby game can use the response mechanism of self that the key assignments of sending is responded.Therefore the user can pass through the game console operate game.Game console is mainly inherited from InputMethodService, by using SDK to monitor the key response of handle, and call getInputConnection and obtain current input connection, after processing through the escape of key value mapping table, new key assignments is sent in the game by connection.
2, key value mapping table loads, key value mapping table is an XML file, when starting, platform is loaded in the system, form with MAP after loading is kept in the Installed System Memory, the KEY of MAP is the standard shank key assignments of platform definition, and VALUE is the key assignments that corresponding game can respond, when game console loads, controller can scanning system be used, the installation sign UID that is applied can inquire the bag name of application, thereby can set up a UID to the MAP of bag name according to UID, when controller is called, controller can obtain the UID of caller, can further obtain the bag name according to UID, can obtain key value mapping table by the bag name from MAP.The key assignments of button becomes the key assignments that game can be identified after the key value mapping table escape, be injected in the game by InputConnection, thereby game can produce corresponding response again.
3, the automation key assignments detects, the game that can operate for adaptive game console, then obtain the key assignments that game can respond, game console has designed a cover automation key assignments testing mechanism, under this pattern, by pressing the start key on the lower handle, game console can be opened a thread and send a key assignments to game every 1 second, and prints the key assignments of transmission, this key assignments is from increasing 1 after the transmission, range of key values has covered the button value scope that system supports, when response occurs in game from 0-255, the key assignments of printing can be recorded, corresponding key value mapping table XML file can be generated at last.Can control adaptive to third party's game by this mechanism platform.Thereby increased the game scope that platform is supported.
A kind of implementation method of the Android equipment game platform system based on the bluetooth handle, main flow process:
1, handle connects flow process
Step 1: bluetooth handle service reception connection request, this request is imported in the service by message queue, and service parses the facility information that request connects, and mainly comprises device name, MAC Address and driving type.
Step 2: service initializes the corresponding entity that drives, and finds corresponding driving class and initializes according to driving type
Step 3: if system's bluetooth is not opened opening system bluetooth then
Step 4: obtain the socket example of equipment, with non-security mode connection device, not needing to carry out the PIN code authentication under this mode can connect, if successful connection changes step 6 over to, otherwise obtains system exception, changes step 5 over to
Step 5: analytical system is unusual, does not open then continues step 4 until number of retries is finished, the message of broadcasting equipment connection failure if unusually come from equipment.Unusually come from else if the connection mode mistake, then regain the socket example that the safety of equipment connects, reconnect, if connection failure then retry are to arriving number of retries, the broadcasting connection failure is if successful connection enters step 6.
Step 6: set up the iostream that bluetooth connects, read the welcome bag of bluetooth handle.
Step 7: send the handle authentication information, wait for handle return authentication code
Step 8: authentication code is verified, explanation is the authentication handle if the verification passes, sends the instruction of beginning data interaction, otherwise disengagement lever connects the message of broadcasting connection failure.
Step 9: finish to connect thread, turn-on data receives main thread, begins to receive the handle data.
2, handle Identification of events flow process
Step 1: drive thread reads the byte arrays that handle is sent by inlet flow
Step 2: by driving subclass, calling data analysis protocol, resolution data
Step 3: at first scan byte arrays in the resolving and obtain the data head bag, read the valid data byte according to data head bag and side-play amount, according to agreement byte conversion is response key assignments, generation key-press event and rocking bar event
Step 4: corresponding event is packaged as the platform inside story, puts into the application that message queue is broadcast to all registrations.
Step 5: continue identification and parsing, until the end of byte arrays, the byte of processing not will be assembled in the next round array.
Step 6: forced to disconnect if identify POWEROFF instruction handle, the message that then disconnects by service handle transmitting apparatus begins the flow process that handle disconnects simultaneously.
3, platform game is opened flow process
Step 1: reading database, obtain game information, the Android game obtains the bag name, and the simulator game obtains its type and ROM path.
Step 2: if game is supported SDK for the Android game, then directly generate Intent and open game according to the bag name.
Step 3: if game then checks whether opened game console for non-SDK Android game, allow the user open game console if do not open then eject dialog box.
Step 4: check whether there has been corresponding key value mapping table in the internal memory, if exist then directly open game, if there is no, check the XML file whether corresponding bag name is arranged in the SD card, be loaded in the internal memory if having then resolve, if do not have then request server obtains corresponding key value mapping table, obtain and successfully open afterwards game, can't open game otherwise eject dialog box.
Step 5: if game is judged its type of play for the ROM game, if type is known, then generate corresponding Intent.
Step 6:ROM game continues to check the path of its ROM game, if do not have the ROM file under the abnormal carry of SD card or the path, then ejects dialog box explanation game and opens failure.
Step 7: open simulator game by Intent, check whether the ROM file is encryption format, check by after enter game, otherwise withdraw from game.
4, game console control game flow process
Step 1: initialize key value mapping table, the key value mapping table that platform is existed at present is cached in the internal memory, safeguards with the form of MAP, and wherein KEY is the bag name of using, and VALUE is int[256] the key value mapping table array.
Step 2: initialize platform and support game information, the application that scanning system is installed, obtain UID and the bag name information of all application, mate with bag name and key value mapping table MAP, if find to exist, illustrate that then this is applied as the game that platform is supported, sets up a MAP through this process, KEY is UID, and VALUE is corresponding bag name.
Step 3: the service of game console registration bluetooth handle, and the registration button is monitored.
Step 4: when the button snoop responses, obtain the key assignments of its button and the UID at current controller place, if UID in UID MAP, then finds corresponding bag name to obtain its key value mapping table.
Step 5: the standard key assignments escape that the subscript by key value mapping table transmits service is to key assignments corresponding to game.
Step 6: generate the KeyEvent object and obtain the input connection according to new key assignments, this connection user connects the interface at controller and current place, if it is not empty connecting, then send new KeyEvent to current interface, game can be received key assignments and be made corresponding response.
Step 7: monitoring system is used and is upgraded, and as newly-increased, upgrades, and unloading is used, and gets back to step 2 and reinitializes UID MAP.
The present invention adopts technique scheme, has following beneficial effect:
1, the user can conveniently be connected into platform with handle.And do not need to consider that handle is pattern how, and drive the processing of layer through platform, the pattern that platform can the automatic translation handle, this will promote user's experience greatly.
2, the game recommdation of software platform and management function have been enriched game content greatly.Through the game of platform test, can be with the convenient control of handle, the interest of the very big handle that promotes.
3, special simulator embedded technology can be blured the difference between traditional game and the android game.Realize that the user operates dissimilar game in the same manner on unified android platform.
4, the processing of protocol layer translation can make the Nibiru handle access the android equipment of arbitrary manufacturer standard.Thereby real the realization, the handle game can move at any android equipment.
Description of drawings
Fig. 1 is the system architecture hardware block diagram of the embodiment of the invention;
Fig. 2 is the system architecture software block diagram of the embodiment of the invention;
Fig. 3 is that the handle of the embodiment of the invention connects flow chart;
Fig. 4 be the embodiment of the invention open the game flow chart.
The specific embodiment
Below in conjunction with specific embodiment, further illustrate the present invention, should understand these embodiment only is used for explanation the present invention and is not used in and limits the scope of the invention, after having read the present invention, those skilled in the art all fall within the application's claims limited range to the modification of the various equivalent form of values of the present invention.
The problem that the present invention mainly solves is the interaction protocol of the different bluetooth handles on can the united market, provides unified control and response interface by the SDK Development Framework for the Android application layer simultaneously.Gaming platform can obtain game resource with server interaction as the concrete application of SDK framework, simultaneously, in gaming platform, integrated many moneys main flow simulator, the user is provided unified operator scheme and hidden its otherness, and the user can open simulator game and Android game in consistent mode.In addition, the present invention has designed game console to control the Android game of non-SDK framework, has expanded the scope of application of gaming platform.This wherein main part be application and service based on Android SDK, Game Market comprises the Android client and server; Wherein the hardware components of whole system is comprised of bluetooth handle and standard A ndroid equipment.
As shown in Figure 1, in the whole hardware system, the bluetooth handle is used for controlling game operation, standard A ndroid equipment after software of the present invention has been installed just as a game machine, and server is with the storage update storehouse of playing in a large number, to make things convenient for calling of Android gaming platform software.Platform software and server are mutual by the internet.
As shown in Figure 2, and whole software systems are by unified bluetooth equipment service layer, the SDK kit, and Game Market, game console, server etc. partly form.It is of a great variety in the market that game paddle drives layer, and for adaptive all game paddles, the drive software research and development are major part of the present invention.
The service of unified bluetooth handle realizes
(1) service layer
Service layer's Agent Service class need to be inherited Android SDK Service, and main users is safeguarded to connect and driven layer and message layer, and the life cycle of maintenance service.Wherein in initializing onCreate, initialize each assembly, comprise driving layer example and message layer example (Handler).Disconnect all handles and connect when onDestroy is nullified in service, the shutdown system bluetooth is destroyed all examples.
(2) drive layer
Drive layer and safeguard that drives an entity Map, wherein KEY is the MAC Address of handheld device, and VALUE is corresponding driving entity.All driving classes are inherited and are driven base class, and this base class definition has equipment connection, and equipment disconnects, the fetch equipment data method, and subclass rewrites these methods according to the data protocol needs of concrete chip.
Connection device: equipment connection adopts individual threads, but the handle in the concrete reference technique scheme connects flow process and Fig. 3.The standard A ndroid BluetoothDevice object of device mac address generation that transmits by obtaining platform in the thread by using the JAVA reflex mechanism, rewrites the partial interior method, is mainly used in creating socket.At first generate the socket of non-security type during connection, the connection of this socket does not need the PIN code authentication, is the acquiescence connected mode of platform, if Fail Type is then analyzed in this mode connection failure.If unsuccessfully because equipment is not opened or do not caused in scope, then continue retry, connect otherwise change safe socket object into, if continue unsuccessfully, then notify the user connection failure by message layer.
Authentication devices: then create iostream corresponding to corresponding socket after the successful connection, carry out Qualify Phase.Qualify Phase at first reads the welcome bag of handle, carry out the encrypted authentication flow process of corresponding handle after obtaining, agreement according to the handle chip is decided, generate corresponding check code, check code is accepted return of value after sending to handle end, if return of value is identical with protocol requirement, then by checking, otherwise disengagement lever connects.
Read the handle data: the message by the successful connection of message layer broadcasting handheld device after being proved to be successful, and open the thread that drives entity, read the handle data when driving the major function of entity thread.According to the concrete agreement of handle, byte stream is carried out packet header identification and truncation, inner real bytes data will be the analog quantity of key assignments or rocking bar according to protocol conversion.Generating corresponding key-press event and rocking bar event broadcasts to message layer.
Disengagement lever: when message layer receives disconnection message from platform, find a corresponding driving entity by driving layer, call the method that disconnects, disconnect and comprise that mainly iostream disconnects, socket disconnects, and equipment state is upgraded.To drive entity after the disconnection and from MAP, remove, and the message that has disconnected by the message layer broadcasting equipment.
(3) message layer
Message layer is mainly the host process message queue of service and processes Handler.Message layer has safeguarded that all connect the message queue Messager of client simultaneously.During other application (such as SDK game, gaming platform) registration service, can quote to finish interprocess communication to what remote service provided its message queue.Also can take the message queue of service after other are applied in and succeed in registration simultaneously, concrete grammar is that the remote service of Android SDK definition connects and interactive mode.Message layer is safeguarded the message queue of other application by a MAP, wherein KEY is the Messager of its application for using bag name VALUE.When the handle drives layer reads the data of handle, can generate an event, comprised event type in the event, event content, to key-press event and rocking bar event, event content is the coding of key assignments and rocking bar analog quantity.Event transfer is broadcasted to traveling through MAP after the message, and the Messager of all maintenances can receive the coding of this event, is reduced to corresponding key assignments or rocking bar event under the SDK of its application Development Framework, and passes to the concrete processing of application.
Carry out asking to service if use, then generate corresponding event, such as equipment state request etc., pass to the message layer of service after the allocate event type by the interprocess communication interface of SDK framework encapsulation, after resolving, the message layer decoding passes to corresponding driving layer, find corresponding driving entity, the result that processing is returned sends according to above-mentioned message propagation mechanism, different is that this class message is not broadcast type, send but find the message queue that sends application to carry out message by MAP, again change according to the SDK Development Framework in application end after sending, final readjustment is used the monitoring that arranges.
2, SDK Development Framework
The SDK Development Framework defined use can with the interactive interface of unified bluetooth equipment service.Mode with the JAR bag is used again use.The SDK Development Framework is based on Android SDK, and main API comprises: registration service, monitoring is set, and key value mapping table is set.
Registration service, registration service adopt the mode of the BIND service that android provides to call, here bind remote service, namely do not belong between the process of unified process and access.Therefore calling rear both sides has preserved mutually message queue each other to finish data interaction.Registration service is asynchronous procedure, and the rear readjustment registration service of succeeding in registration is monitored.
Monitoring is set, monitoring mechanism is similar to the monitoring among the Java, SDK has defined several monitoring interfaces, mainly containing button monitors, rocking bar is monitored, Macintosh is monitored, the turn-off request action listener, equipment connection status monitoring, equipment essential information are monitored and wrong the monitoring, and every kind of monitoring all is the Interface among the Java, application can realize the processing logic of corresponding interface and these processing logics of registration in open frame in class, when corresponding event distributed by message queue, the implementation method of setting will be called back, and therefore corresponding logic can be performed.Different monitorings is used for distinguishing different events, can define the monitoring interface of new event and correspondence according to the needs of service.
Key value mapping table is set, key value mapping table is an int array, length is 256, and its initial value all is 0, when having a key assignments map information, under be designated as the platform standard key assignments, and corresponding array value is the key assignments after the escape, if redefined key value mapping table, then then key assignments is put into mapping table in the reduction key-press event in framework and inquires about, if there is mapping, then be converted to corresponding new key assignments.
3, Game Market is realized
(1) client
Customer end adopted standard A ndroid SDK exploitation, wherein main interface is the structure of Activity+Fragment, and every sub-interface is a fragment, and all fragment put into a ViewPager, can finish slide like this.
Recommended games adopts gridview to show game information, wherein gridview monitored drop-down and on drag operation, when gesture triggers, load the operation of renewal and more game.Listview is adopted in seniority among brothers and sisters game, and can support equally drop-down and on drag operation, the item among each listview has independent layout, monitoring click, touch event.
Client application has adopted the SDK Development Framework, registration service when each acitivity starts, and registered corresponding monitoring, when L1 and R1 button are pressed, the operation of switching about carrying out according to current fragment, the up and down button of handle can be specified the item that chooses in gridview or Listview, carries out the operation that enters/determine when the B key is pressed.
The game unified operation framework of client, this framework have mainly been unified the unfolding mode of simulator and android game, and idiographic flow can be opened flow process and corresponding diagram 4 with reference to game.The beginning interface has been removed at the interface of simulator and ROM selects the interface, changes the direct unfolding mode with parameter into, and parameter is the ROM file type.When the user when local game is selected game, determine concrete unfolding mode by type of play, fully transparent to the user, if the ROM game is then read corresponding ROM deposit position from database, and is called the simulator of corresponding types, to deposit the path passes in the past as parameter, after corresponding A ctivity receives parameter, directly open its ROM file, if be the android game, then directly open as the parameter of Intent by the bag name.The realization of game simulator all is that the C code is realized, calls by the JNI mechanism that Android provides.
Client has defined web service framework, this framework is made of a HandlerThread, all network requests are configured to a NetworkTask, therefore this Task is the realization of Runnable, can put into Thread and carry out, and Task is input as URL and parameter, be output as JSON return of value and service return code, whether wherein serve return code and identify this request and normally finish, the JSON return of value, show at the interface after resolving by JSONObject if having comprised effective server data.
(2) server end
Server adopts SSH (Spring+Struts+Hibernate) framework of standard, concrete interactive interface is realized by the Action of Struts, Action acceptance is from the DAO interface accessing database that defines by Hibernate after the parameter of client, and the character string that the result who returns constitutes the JSON form returns to client.Designed simultaneously the legitimacy of client blocker for checking client; the client and server end will keep an identical PKI; client is encrypted calculating according to its signature; the identifying code that obtains enters the blocker of server along with the Action request; if server authentication is passed through; what then prove the client use is the version of official's signature; then can normally obtain game resource; otherwise illustrate that client was tampered, provide service in order to protect the server security blocker with refusal.
5, game console is realized
Game console is an Android input method, itself also is the application of a SDK Development Framework, and this input method does not arrange soft keyboard UI, inherits the InputMethodService from Android SDK.Monitor the key-press event of handle by the SDK framework, by the key assignments after the key value mapping table acquisition mapping that loads current game, then call getInputConnection and obtain current input connection, if current connection can use, then new key assignments is sent in the game by connection.
Key value mapping table loads, and key value mapping table is an XML file, is loaded in the system when platform starts, preserve with int array form after loading, the standard shank key assignments is subscript, and value corresponding to subscript is the key assignments in the game, and platform uses a MAP to safeguard the key value mapping table of all game simultaneously.KEY be the game package name, VALUE is the key value mapping table of corresponding game.When game console loads, controller can scanning system be used, the installation sign UID that is applied, can inquire the bag name of application according to UID, thereby can set up a UID to the MAP of bag name, when controller was called, controller can obtain the UID of caller, the bag name can be further obtained according to UID, key value mapping table can be from MAP, obtained by the bag name.The key assignments of button becomes the key assignments that game can be identified after the key value mapping table escape, be injected in the game by InputConnection, thereby game can produce corresponding response again.Concrete flow process is with reference to game console control game flow process.
Main flow process:
1, handle connects flow process (as shown in Figure 3)
Step 1: bluetooth handle service reception connection request, this request is imported in the service by message queue, and service parses the facility information that request connects, and mainly comprises device name, MAC Address and driving type.
Step 2: service initializes the corresponding entity that drives, and finds corresponding driving class and initializes according to driving type
Step 3: if system's bluetooth is not opened opening system bluetooth then
Step 4: obtain the socket example of equipment, with non-security mode connection device, not needing to carry out the PIN code authentication under this mode can connect, if successful connection changes step 6 over to, otherwise obtains system exception, changes step 5 over to
Step 5: analytical system is unusual, does not open then continues step 4 until number of retries is finished, the message of broadcasting equipment connection failure if unusually come from equipment.Unusually come from else if the connection mode mistake, then regain the socket example that the safety of equipment connects, reconnect, if connection failure then retry are to arriving number of retries, the broadcasting connection failure is if successful connection enters step 6.
Step 6: set up the iostream that bluetooth connects, read the welcome bag of bluetooth handle.
Step 7: send the handle authentication information, wait for handle return authentication code
Step 8: authentication code is verified, explanation is the authentication handle if the verification passes, sends the instruction of beginning data interaction, otherwise disengagement lever connects the message of broadcasting connection failure.
Step 9: finish to connect thread, turn-on data receives main thread, begins to receive the handle data.
2, handle Identification of events flow process
Step 1: drive thread reads the byte arrays that handle is sent by inlet flow
Step 2: by driving subclass, calling data analysis protocol, resolution data
Step 3: at first scan byte arrays in the resolving and obtain the data head bag, read the valid data byte according to data head bag and side-play amount, according to agreement byte conversion is response key assignments, generation key-press event and rocking bar event
Step 4: corresponding event is packaged as the platform inside story, puts into the application that message queue is broadcast to all registrations.
Step 5: continue identification and parsing, until the end of byte arrays, the byte of processing not will be assembled in the next round array.
Step 6: forced to disconnect if identify POWEROFF instruction handle, the message that then disconnects by service handle transmitting apparatus begins the flow process that handle disconnects simultaneously.
3, platform game is opened flow process (as shown in Figure 4)
Step 1: reading database, obtain game information, the Android game obtains the bag name, and the simulator game obtains its type and ROM path.
Step 2: if game is supported SDK for the Android game, then directly generate Intent and open game according to the bag name.
Step 3: if game then checks whether opened game console for non-SDK Android game, allow the user open game console if do not open then eject dialog box.
Step 4: check whether there has been corresponding key value mapping table in the internal memory, if exist then directly open game, if there is no, check the XML file whether corresponding bag name is arranged in the SD card, be loaded in the internal memory if having then resolve, if do not have then request server obtains corresponding key value mapping table, obtain and successfully open afterwards game, can't open game otherwise eject dialog box.
Step 5: if game is judged its type of play for the ROM game, if type is known, then generate corresponding Intent.
Step 6:ROM game continues to check the path of its ROM game, if do not have the ROM file under the abnormal carry of SD card or the path, then ejects dialog box explanation game and opens failure.
Step 7: open simulator game by Intent, check whether the ROM file is encryption format, check by after enter game, otherwise withdraw from game.
4, game console control game flow process
Step 1: initialize key value mapping table, the key value mapping table that platform is existed at present is cached in the internal memory, safeguards with the form of MAP, and wherein KEY is the bag name of using, and VALUE is int[256] the key value mapping table array.
Step 2: initialize platform and support game information, the application that scanning system is installed, obtain UID and the bag name information of all application, mate with bag name and key value mapping table MAP, if find to exist, illustrate that then this is applied as the game that platform is supported, sets up a MAP through this process, KEY is UID, and VALUE is corresponding bag name.
Step 3: the service of game console registration bluetooth handle, and the registration button is monitored.
Step 4: when the button snoop responses, obtain the key assignments of its button and the UID at current controller place, if UID in UID MAP, then finds corresponding bag name to obtain its key value mapping table.
Step 5: the standard key assignments escape that the subscript by key value mapping table transmits service is to key assignments corresponding to game.
Step 6: generate the KeyEvent object and obtain the input connection according to new key assignments, this connection user connects the interface at controller and current place, if it is not empty connecting, then send new KeyEvent to current interface, game can be received key assignments and be made corresponding response.
Step 7: monitoring system is used and is upgraded, and as newly-increased, upgrades, and unloading is used, and gets back to step 2 and reinitializes UID MAP.
Claims (6)
1. Android equipment game platform system based on the bluetooth handle is characterized in that: comprise unified bluetooth equipment service layer, SDK Development Framework, Game Market and game console;
Unify bluetooth equipment service layer, be mainly used in connection and the data, services of bluetooth handle, the interaction protocol of unified bluetooth handle makes the game bluetooth handle of different mode be connected into same gaming platform;
The SDK Development Framework is mainly used in the interactive interface of unified bluetooth handle and game, and provides the storehouse for new development of games;
Game Market, provide game by unified game operation framework to the Android client, described game operation unified frame the loading flow process of different simulators, the user has been shielded the difference that simulator game and Android play, have unified method of operating; Game Market is also collected user's use habit, obtains to meet the use mode data of user's use habit at server end.
2. as claimed in claim 1 based on the Android equipment game platform system of bluetooth handle, it is characterized in that: unification bluetooth equipment service layer comprises Service Management, driven management, three modules of incident management;
Service management module, play by the registration service interface to the service management module request registration, game provides the message queue of place process to quote, service management module is preserved the message queue of game with List, finish registration, the game after the registration can obtain the message queue of bluetooth equipment service to finish bidirectional data interaction; When first game was sent registration request to the bluetooth equipment service, the service bluetooth equipment started automatically by binding mode, when the bluetooth equipment service is nullified in last game and do not have bluetooth equipment to connect, and bluetooth equipment service automatic stop;
The driven management module, the base class of definition bluetooth handle drives, this base class is inherited from Runnable, puts into the concurrent execution of thread, and the functional block that the driving base class comprises has: connecting handle, disengagement lever, the checking handle reads the handle data, and obtains the handle state; The subclass of described base class is inherited in definition according to bluetooth chipset, and subclass rewrites corresponding functional block as required; The functional block that wherein needs to rewrite is for verifying handle and reading the handle data, and the checking handle guarantees that the handle of platform authentication could access, and reads the handle data pin data protocol that handle uses is resolved; When bluetooth equipment connects, by the automatic opening system bluetooth of bluetooth handle drives base class, automatic closing system bluetooth when last connection device disconnects;
Event manager module, Handler is responsible for the processing event by the message handle, and event is mainly derived from two: handle event and SDK request event; The handle event triggers by the lower handle button or when using rocking bar the user, import data into bluetooth equipment service layer by the bluetooth connection, use corresponding data protocol to resolve behind the thread reading out data of driven management module, the process of resolving at first reads array, obtain packet header byte by scanning, obtain actual valid data according to side-play amount, through obtaining corresponding key-press event or handle event after the protocol conversion, key-press event or handle event are distributed to by message queue in the game of all registrations, and game is called event response method by the monitoring of SDK registration and is obtained the handle data; On the other hand, game by SDK to service request handle status information, the handle information that mainly comprises current connecting handle tabulation and corresponding player order, this solicited message is assembled into the gaming platform internal event, enter the gaming platform service processes by message queue after being converted to message, process reverts back corresponding requests after reading message in Handler, and makes respective handling, and the data communication device that returns is crossed message queue and returned.
3. as claimed in claim 1 based on the Android equipment game platform system of bluetooth handle, it is characterized in that: described SDK Development Framework is used in conjunction with unification bluetooth equipment service layer, be mainly used in the interactive interface of unified handle and game, and provide the storehouse for new development of games; The SDK Development Framework has defined api interface based on Android SDK; Main api interface comprises: the registration service interface, the monitoring interface is set, and obtain the facility information interface, and the key value mapping table interface is set;
The registration service interface, game is by the service management module process requested registration of registration service interface to bluetooth equipment service layer, the process of registration is for to carry out bindings according to the handle service name, the service of binding back handle can obtain the message queue of game process, simultaneously game also can obtain the message queue of handle service, thereby realizes two-way interactive; After the registration, the service of bluetooth handle distributes message to the message queue of game process, thereby game obtains bluetooth from the variety of event response of handle service; Registration process is carried out when games start, and calls cancellation API and go to remove registration when game is closed; Registration service is an asynchronous process, by the interface acquisition registering result state of monitoring is set;
The monitoring interface is set, by monitoring is set, make game obtain the event response of bluetooth handle, defined several monitoring interfaces by SDK, mainly contain button and monitor, rocking bar is monitored, Macintosh is monitored, turn-off request action listener, equipment connection status monitoring, the equipment essential information is monitored, and wrong the monitoring; Button is monitored and is used for the handle button that monitoring users is pressed; Rocking bar is monitored and is obtained the rocking bar coordinate figure by X, Y variable; Wherein X, Y are abscissa and the ordinate in-128 to+128 the plane right-angle coordinate; Monitor the recognition combination key events by Macintosh, if the user presses some buttons simultaneously, Macintosh is monitored and will be called back, and the key assignments object of all Macintosh all passes through gain of parameter; The connection status of equipment is definition in connection status is monitored, and has mainly comprised bluetooth equipment and has connected, connects, disconnected three kinds of events; The equipment essential information is monitored asynchronism callback after API equipment state is initiatively called in game, has mainly comprised the bluetooth equipment list information of all connections and has specified player's bluetooth equipment information sequentially; The abnormal information that is used for obtaining service equipment is monitored in error message;
Obtain facility information, SDK provides two API to be used for initiatively sending the request of obtaining facility information to the bluetooth equipment service, and main information includes: the list of devices of all connections and the equipment state of specifying player's order; Method of calling is asynchronous call, monitors the equipment status information by the equipment essential information is set after calling;
Key value mapping table is set, it is the key value mapping table that is defaulted as standard among the SDK, key value mapping table is an int array, length is 256, and its initial value all is 0, when having a key assignments map information, under be designated as the platform standard key assignments, and corresponding array value is the key assignments after the escape, and platform is the standard key assignments with the key assignments unification of the button of different Bluetooth devices, yet game arranges self-defined key assignments mapping table as required.
4. as claimed in claim 1 based on the Android equipment game platform system of bluetooth handle, it is characterized in that: Game Market comprises Android client and server end, is used for obtaining game resource from server, and manages in Android equipment this locality; Game Market is by unified game operation framework, and the loading flow process of unified different simulators has shielded the difference that simulator is played and Android plays to the user, makes Game Market have unified method of operating; Game Market is collected user's use habit in addition, obtains to meet the use mode data of user's use habit at server end;
The Android client, the Android client has comprised local game identification and operation-interface, the user opens when using for the first time, Game Market on the backstage subsidiary key value mapping table XML file of automatic decompress(ion) in internal memory, the form that the key value mapping table of all game will be organized as MAP is maintained in the internal memory, therefore Game Market can utilize the game that detection platform is supported in system of this built-in key value mapping table, and automatically adds the local game tabulation; At first the application start thread scans all installation game, search in key value mapping table by the bag name, if find occurrence, the game of the Game Market authentication of this game is described, therefore it is added in the platform database, if had this game information then do not add; The Android client has also comprised recommended games, the game seniority among brothers and sisters, game details function, be mainly used in obtaining game resource from server end, mutual request is packed as a NetworkTask, and NetworkTask has comprised platform validation information, URL and readjustment Handler, carry out asynchronous execution by HandlerThread, by readjustment Handler data are sent in the corresponding message queue after carrying out, the data flow that Handler resolves the JSON form can obtain game data; Game resource mainly is divided into 3 classes, and SDK supports game: such game package contains platform SDK, can directly use handle control under platform; Unified operation-interface is used in the simulator game; Third party game, SDK is not used in these game, but built-in response for external key, thus platform is injected into the target that realizes operate game in the application by game console with the key assignments of bluetooth handle; The user can download in Game Market, upgrades the unloading game resource.In addition, platform has the equipment control interface, this interface is registered to remote service and is obtained facility information by calling SDK API, can select automatic or manual to add the bluetooth handle by this interface user, the automatic mode lower platform will be opened bluetooth automatically, and open the search bluetooth equipment, thereby the title of equipment and MAC Address will be identified and find corresponding driving type to mate, carry out equipment connection after the coupling, therefore for the second time the facility information of successful connection will be stored in the database, can directly connect or disconnection from list of devices during connection device; The handle of first access platform will be opened autoconnect function automatically simultaneously, and this handle certainly will be dynamically connected when start platform next time;
Described unified game operation framework has redefined the user and has opened the mode of game, unified take game icon as main body, the user click icon can be opened game, length can unload game by icon, has shielded different type of play, plays for simulator, the startup interface, the ROM that remove simulator self select the interface, but import the ROM path that need to open into by parameter, and like this user has been shielded the particular manner of operation of simulator game, can directly open corresponding ROM by game icon; All game informations all are kept in the client database, and the unfolding mode corresponding different according to the type of game is even the built-in simulator of platform also has the independent process operation; In addition, be encrypted processing for the ROM file, when starting, automatically verify;
Server end, server adopts the SSH framework of standard, and server end mainly provides the equipment registration interface, the access of game resource, the user uses information; Realize class by Spring technology dynamic load, and Struts has separated logical layer and presentation layer by the MVC framework, standard JSON form is adopted in data interaction, the different demands of unified CS and BS framework, it is the data persistence technology of main body that Hibernate adopts object, by the mapping relations of configuration file defining objects and database table; Designed simultaneously the legitimacy of client blocker for checking client, make the client and server end keep an identical PKI, client is encrypted calculating according to its signature, the identifying code that obtains enters the blocker of server along with the Action request, if server authentication is passed through, what then prove the client use is the version of official's signature, then can normally obtain game resource, otherwise illustrate that client was tampered, provide service in order to protect the server security blocker with refusal;
Collect user's usage data, user's usage data comprises that mainly handle connects number of times, connects duration, handle types, the game name of opening, type of play, and installation, renewal and unloading operation to playing; User's usage data is collected in the backstage and automatically finishes, and is dealt into server after the user agrees and carries out data analysis obtaining, the data mask in the server users personal data, only comprise handle and game data; By server handle and game data, push corresponding game according to user's characteristics.
5. as claimed in claim 1 based on the Android equipment game platform system of bluetooth handle, it is characterized in that: game console is used for that key assignments is carried out in game and injects, thereby reaches the purpose of control game;
Game control, game console are in the nature an Android input method does not have soft keyboard and UI, only by lever operated injection key assignments; Game console itself also is the application that a SDK supports, by using SDK API to monitor the key-press event of handle, key assignments after will shining upon by the key value mapping table that loads current game sends in the game, thereby game can use the response mechanism of self that the key assignments of sending is responded; Game console is mainly inherited from InputMethodService, by using SDK to monitor the key response of handle, and call getInputConnection and obtain current input connection, after processing through the escape of key value mapping table, new key assignments is sent in the game by connection;
Key value mapping table loads, key value mapping table is an XML file, when starting, platform is loaded in the system, form with MAP after loading is kept in the Installed System Memory, the KEY of MAP is the standard shank key assignments of platform definition, VALUE is the key assignments that corresponding game can respond, when game console loaded, the controller scanning system was used, the installation sign UID that is applied, can inquire the bag name of application according to UID, thereby set up a UID to the MAP of bag name, when controller was called, controller can obtain the UID of caller, can further obtain the bag name according to UID, by obtaining key value mapping table among the Bao Mingcong MAP; The key assignments of button becomes the key assignments that game can be identified after the key value mapping table escape, be injected in the game by InputConnection, thereby game can produce corresponding response again.
The automation key assignments detects, the game that can operate for adaptive game console, then obtain the key assignments that game can respond, game console has designed a cover automation key assignments testing mechanism, under this pattern, by pressing the start key on the lower handle, game console can be opened a thread and send a key assignments to game every 1 second, and print the key assignments of transmission, this key assignments is from increasing 1 after the transmission, and range of key values is from 0-255, covered the range of key values of the button of system's support, when response occured in game, the key assignments that record is printed generated corresponding key value mapping table XML file at last.
A realization as described in the claim 1-5 any one based on the method for the Android equipment game platform system of bluetooth handle, it is characterized in that: comprise that handle connects flow process, handle Identification of events flow process, platform game and opens flow process and game console control game flow process;
(1) handle connects flow process
Step 1: bluetooth handle service reception game connection request, this connection request imports in the service of bluetooth handle by message queue, and service parses the facility information that request connects, and facility information mainly comprises device name, MAC Address and drive type;
Step 2: the service of bluetooth handle initializes the corresponding entity that drives, and finds corresponding driving class and initializes according to driving type;
Step 3: if system's bluetooth is not opened opening system bluetooth then;
Step 4: obtain the socket example of equipment, with non-security mode connection device, if successful connection changes step 6 over to, otherwise obtain system exception, change step 5 over to;
Step 5: analytical system is unusual, does not open if unusually come from equipment, then continues step 4 until number of retries is finished, the message of broadcasting equipment connection failure; Unusually come from else if the connection mode mistake, then regain the socket example of the safety connection of equipment, reconnect, if arrive number of retries, the broadcasting connection failure is if successful connection enters step 6;
Step 6: set up the iostream that bluetooth connects, read the welcome bag of bluetooth handle;
Step 7: send the handle authentication information, wait for handle return authentication code;
Step 8: authentication code is verified, explanation is the authentication handle if the verification passes, sends the instruction of beginning data interaction, otherwise disengagement lever connects the message of broadcasting connection failure;
Step 9: finish to connect thread, turn-on data receives main thread, begins to receive the handle data;
(2) handle Identification of events flow process
Step 1: drive thread reads the byte arrays that handle is sent by inlet flow;
Step 2: by driving subclass, calling data analysis protocol, resolution data;
Step 3: at first scan byte arrays in the resolving and obtain the data head bag, read the valid data byte according to data head bag and side-play amount, according to agreement byte conversion is response key assignments, generation key-press event and rocking bar event;
Step 4: corresponding event is packaged as the platform inside story, puts into the application that message queue is broadcast to all registrations;
Step 5: continue identification and parsing, until the end of byte arrays, the byte of processing not will be assembled in the next round array;
Step 6: forced to disconnect if identify POWEROFF instruction handle, the message that then disconnects by service handle transmitting apparatus begins the flow process that handle disconnects simultaneously;
(3) platform game is opened flow process
Step 1: reading database, obtain game information, the Android game obtains the bag name, and the simulator game obtains its type and ROM path;
Step 2: if game is supported SDK for the Android game, then directly generate Intent and open game according to the bag name;
Step 3: if game then checks whether opened game console for non-SDK Android game, allow the user open game console if do not open then eject dialog box;
Step 4: check whether there has been corresponding key value mapping table in the internal memory, if exist then directly open game, if there is no, check the XML file whether corresponding bag name is arranged in the SD card, be loaded in the internal memory if having then resolve, if do not have then request server obtains corresponding key value mapping table, obtain and successfully open afterwards game, can't open game otherwise eject dialog box;
Step 5: if game is judged its type of play for the ROM game, if type is known, then generate corresponding Intent;
Step 6:ROM game continues to check the path of its ROM game, if do not have the ROM file under the abnormal carry of SD card or the path, then ejects dialog box explanation game and opens failure;
Step 7: open simulator game by Intent, check whether the ROM file is encryption format, check by after enter game, otherwise withdraw from game;
(4) game console control game flow process
Step 1: initialize key value mapping table, the key value mapping table that platform is existed at present is cached in the internal memory, safeguards with the form of MAP, and wherein KEY is the bag name of using, and VALUE is int[256] the key value mapping table array.
Step 2: initialize platform and support game information, the application that scanning system is installed, obtain UID and the bag name information of all application, mate with bag name and key value mapping table MAP, if find to exist, illustrate that then this is applied as the game that platform is supported, sets up a MAP through this process, KEY is UID, and VALUE is corresponding bag name;
Step 3: the service of game console registration bluetooth handle, and the registration button is monitored;
Step 4: when the button snoop responses, obtain the key assignments of its button and the UID at current controller place, if UID in UID MAP, then finds corresponding bag name to obtain its key value mapping table;
Step 5: the standard key assignments escape that the subscript by key value mapping table transmits service is to key assignments corresponding to game;
Step 6: generate the KeyEvent object and obtain the input connection according to new key assignments, this connection user connects the interface at controller and current place, if it is not empty connecting, then send new KeyEvent to current interface, game can be received key assignments and be made corresponding response;
Step 7: monitoring system is used and is upgraded, and the system applies renewal comprises newly-increased, upgrades, and unloading is used, and gets back to step 2 and reinitializes UID MAP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310182868.3A CN103316472B (en) | 2013-05-17 | 2013-05-17 | A kind of Android device game platform system based on Bluetooth handle and its implementation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310182868.3A CN103316472B (en) | 2013-05-17 | 2013-05-17 | A kind of Android device game platform system based on Bluetooth handle and its implementation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103316472A true CN103316472A (en) | 2013-09-25 |
CN103316472B CN103316472B (en) | 2015-12-23 |
Family
ID=49185691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310182868.3A Active CN103316472B (en) | 2013-05-17 | 2013-05-17 | A kind of Android device game platform system based on Bluetooth handle and its implementation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103316472B (en) |
Cited By (51)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168287A (en) * | 2014-08-26 | 2014-11-26 | 许磊 | External device data transmission method |
CN104174163A (en) * | 2014-08-26 | 2014-12-03 | 金纯� | Automatic gamepad key value configuring system and method |
CN104503855A (en) * | 2015-01-19 | 2015-04-08 | 炫彩互动网络科技有限公司 | Applicable manipulation intelligent cloud matching method |
CN104615465A (en) * | 2015-01-30 | 2015-05-13 | 深圳市金立通信设备有限公司 | Terminal |
WO2015103789A1 (en) * | 2014-01-13 | 2015-07-16 | 华为终端有限公司 | Control method and electronic device for multiple touch screens |
CN104922903A (en) * | 2014-03-20 | 2015-09-23 | 中国电信股份有限公司 | Method and system for expanding Android system to support multiple handles |
CN105430033A (en) * | 2014-09-17 | 2016-03-23 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for protecting position of terminal |
CN105477857A (en) * | 2015-02-13 | 2016-04-13 | 广州爱九游信息技术有限公司 | Gamepad adapting method, device and system |
CN105592161A (en) * | 2016-01-18 | 2016-05-18 | 深圳维爱特科技有限公司 | Method for acquiring data of terminal equipment, and terminal equipment |
CN105641931A (en) * | 2016-03-31 | 2016-06-08 | 深圳市创想天空科技股份有限公司 | Game operation configuration method and system |
CN105786339A (en) * | 2014-12-19 | 2016-07-20 | 珠海金山办公软件有限公司 | Method and device for playing multimedia file in PowerPoint |
CN106178499A (en) * | 2015-04-29 | 2016-12-07 | Tcl集团股份有限公司 | Game of mobile terminal based on NFC operation control method and system |
WO2017035713A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for matching key setting solution based on number, and game system |
WO2017035712A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for prompting information when number matches key setting solution, and game system |
WO2017035714A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for pushing information when voice matches key setting solution, and game system |
WO2017035711A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for matching key setting solution based on gesture, and game system |
CN106656622A (en) * | 2016-12-29 | 2017-05-10 | 深圳Tcl新技术有限公司 | Method and device for configuring interface call tasks |
CN106730820A (en) * | 2016-12-12 | 2017-05-31 | 苏州蜗牛数字科技股份有限公司 | A kind of method and android terminal device for being adapted to various game paddles |
CN106919405A (en) * | 2015-12-24 | 2017-07-04 | 阿里巴巴集团控股有限公司 | The initial method and device of a kind of client |
CN106980553A (en) * | 2017-03-28 | 2017-07-25 | 北京奇虎科技有限公司 | A kind of method and apparatus that data transfer is carried out based on event |
CN107038024A (en) * | 2016-02-04 | 2017-08-11 | 腾讯科技(深圳)有限公司 | One kind manipulation collocation method and its equipment |
CN107085532A (en) * | 2017-03-21 | 2017-08-22 | 东软集团股份有限公司 | Task monitor method and device |
CN107239416A (en) * | 2016-06-27 | 2017-10-10 | 陈淼波 | The computer system and implementation method of unified abstract representation are provided for smart machine |
CN107831922A (en) * | 2017-11-21 | 2018-03-23 | 四川长虹电器股份有限公司 | 3D touch touch handle system |
CN108465236A (en) * | 2018-02-28 | 2018-08-31 | 成都掌际互联科技有限公司 | A kind of game paddle and its control method to mobile phone |
CN108681408A (en) * | 2018-05-02 | 2018-10-19 | 广州市品众电子科技有限公司 | A kind of method and bluetooth keyboard for realizing that bluetooth keyboard is connect with game of mobile terminal |
CN109005424A (en) * | 2018-08-17 | 2018-12-14 | 腾讯科技(成都)有限公司 | The control method of object, apparatus and system, storage medium, electronic device |
CN109381856A (en) * | 2018-09-12 | 2019-02-26 | 深圳闪电鸟网络科技有限公司 | Device, method, electronic equipment and the storage medium that game host is controlled |
CN109413620A (en) * | 2018-09-03 | 2019-03-01 | 青岛海尔科技有限公司 | Manage the method and device for the external bluetooth equipment that can be communicated with iOS device |
CN109814848A (en) * | 2019-02-21 | 2019-05-28 | 广州卓远虚拟现实科技有限公司 | A kind of general dynamic engine of virtual reality |
CN109862606A (en) * | 2019-02-26 | 2019-06-07 | 广州乐摇摇信息科技有限公司 | Self-service device communication means, apparatus and system |
CN110062035A (en) * | 2019-04-02 | 2019-07-26 | 中山市凯恩斯裕龙投资管理有限公司 | A kind of http request method and apparatus based on deque |
CN110209449A (en) * | 2019-05-21 | 2019-09-06 | 腾讯科技(深圳)有限公司 | Cursor positioning method and device in a kind of game |
CN110743163A (en) * | 2019-09-25 | 2020-02-04 | 恒大智慧科技有限公司 | Method and system for entering same game room based on live broadcast interface two-dimensional code |
CN110933684A (en) * | 2019-11-28 | 2020-03-27 | 江苏电力信息技术有限公司 | Small-world wireless sensor network construction method based on mixed mode |
CN110968434A (en) * | 2018-09-30 | 2020-04-07 | 武汉斗鱼网络科技有限公司 | Method for managing machine and related device |
CN111711997A (en) * | 2020-06-15 | 2020-09-25 | 科罗博(苏州)智能科技有限公司 | Multi-Bluetooth equipment management and non-inductive data acquisition algorithm |
CN111773665A (en) * | 2020-08-05 | 2020-10-16 | 网易(杭州)网络有限公司 | Data processing method, platform and device based on game platform |
CN111803916A (en) * | 2020-06-11 | 2020-10-23 | 深圳市谷粒科技有限公司 | Automatic learning and data reading and writing method and device for gamepad |
CN112090061A (en) * | 2020-09-16 | 2020-12-18 | 深圳未来游戏设备科技有限公司 | Game peripheral mode adjusting method aiming at Bluetooth communication protocol |
CN112525566A (en) * | 2019-09-17 | 2021-03-19 | Oppo广东移动通信有限公司 | Equipment test method and device and electronic equipment |
CN112749042A (en) * | 2019-10-31 | 2021-05-04 | 北京沃东天骏信息技术有限公司 | Application running method and device |
CN113209631A (en) * | 2021-05-25 | 2021-08-06 | 四川虹魔方网络科技有限公司 | Experience optimization method based on smart television cloud game |
CN113244624A (en) * | 2021-05-26 | 2021-08-13 | 网易(杭州)网络有限公司 | Game translation method and device |
CN113407044A (en) * | 2021-07-16 | 2021-09-17 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for simulating terminal handle input |
CN113509717A (en) * | 2020-12-03 | 2021-10-19 | 张威 | Intelligent device joining system based on big data |
CN114143765A (en) * | 2022-02-08 | 2022-03-04 | 荣耀终端有限公司 | Bluetooth connection method, device and storage medium |
CN114522415A (en) * | 2021-12-24 | 2022-05-24 | 深圳市达实智控科技股份有限公司 | Control method and device of multifunctional game controller and multifunctional game controller |
CN114780179A (en) * | 2022-06-21 | 2022-07-22 | 深圳市华曦达科技股份有限公司 | Key response method and device for android system |
CN115913941A (en) * | 2022-10-20 | 2023-04-04 | 深圳市飞科笛系统开发有限公司 | Bluetooth headset upgrading method, bluetooth device and storage medium |
CN117891442A (en) * | 2024-02-03 | 2024-04-16 | 贵州送变电有限责任公司 | Client program software architecture design method based on object-oriented |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080039203A1 (en) * | 2006-08-11 | 2008-02-14 | Jonathan Ackley | Location Based Gaming System |
CN101137092A (en) * | 2007-09-11 | 2008-03-05 | 中兴通讯股份有限公司 | Mobile game issuing method |
US20080220875A1 (en) * | 2007-03-07 | 2008-09-11 | Barry Sohl | Multiplayer Platform for Mobile Applications |
CN101489175A (en) * | 2009-02-24 | 2009-07-22 | 诚迈科技(南京)有限公司 | Wireless game platform based on CVM virtual machine technique |
CN102527038A (en) * | 2012-01-12 | 2012-07-04 | 深圳市兴达实电子有限公司 | Game controller and control method thereof |
CN102915117A (en) * | 2012-10-30 | 2013-02-06 | 苏州运智互动科技有限公司 | Method for realizing plug-and-play somatosensory handle in Android system |
-
2013
- 2013-05-17 CN CN201310182868.3A patent/CN103316472B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080039203A1 (en) * | 2006-08-11 | 2008-02-14 | Jonathan Ackley | Location Based Gaming System |
US20080220875A1 (en) * | 2007-03-07 | 2008-09-11 | Barry Sohl | Multiplayer Platform for Mobile Applications |
CN101137092A (en) * | 2007-09-11 | 2008-03-05 | 中兴通讯股份有限公司 | Mobile game issuing method |
CN101489175A (en) * | 2009-02-24 | 2009-07-22 | 诚迈科技(南京)有限公司 | Wireless game platform based on CVM virtual machine technique |
CN102527038A (en) * | 2012-01-12 | 2012-07-04 | 深圳市兴达实电子有限公司 | Game controller and control method thereof |
CN102915117A (en) * | 2012-10-30 | 2013-02-06 | 苏州运智互动科技有限公司 | Method for realizing plug-and-play somatosensory handle in Android system |
Cited By (72)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015103789A1 (en) * | 2014-01-13 | 2015-07-16 | 华为终端有限公司 | Control method and electronic device for multiple touch screens |
US9857910B2 (en) | 2014-01-13 | 2018-01-02 | Huawei Device (Dongguan) Co., Ltd. | Method for controlling multiple touchscreens and electronic device |
CN104922903B (en) * | 2014-03-20 | 2019-03-15 | 中国电信股份有限公司 | Expand the method and system that Android system supports more handles |
CN104922903A (en) * | 2014-03-20 | 2015-09-23 | 中国电信股份有限公司 | Method and system for expanding Android system to support multiple handles |
CN104174163B (en) * | 2014-08-26 | 2017-02-15 | 重庆金瓯科技发展有限责任公司 | Automatic gamepad key value configuring system and method |
CN104168287A (en) * | 2014-08-26 | 2014-11-26 | 许磊 | External device data transmission method |
CN104174163A (en) * | 2014-08-26 | 2014-12-03 | 金纯� | Automatic gamepad key value configuring system and method |
CN105430033A (en) * | 2014-09-17 | 2016-03-23 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for protecting position of terminal |
CN105786339A (en) * | 2014-12-19 | 2016-07-20 | 珠海金山办公软件有限公司 | Method and device for playing multimedia file in PowerPoint |
CN104503855A (en) * | 2015-01-19 | 2015-04-08 | 炫彩互动网络科技有限公司 | Applicable manipulation intelligent cloud matching method |
CN104615465A (en) * | 2015-01-30 | 2015-05-13 | 深圳市金立通信设备有限公司 | Terminal |
CN104615465B (en) * | 2015-01-30 | 2019-04-23 | 深圳市金立通信设备有限公司 | A kind of terminal |
CN105477857A (en) * | 2015-02-13 | 2016-04-13 | 广州爱九游信息技术有限公司 | Gamepad adapting method, device and system |
CN105477857B (en) * | 2015-02-13 | 2019-12-20 | 广州爱九游信息技术有限公司 | Game paddle adaption method, device and system |
CN106178499A (en) * | 2015-04-29 | 2016-12-07 | Tcl集团股份有限公司 | Game of mobile terminal based on NFC operation control method and system |
CN106178499B (en) * | 2015-04-29 | 2020-05-05 | Tcl科技集团股份有限公司 | NFC-based mobile terminal game operation control implementation method and system |
WO2017035712A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for prompting information when number matches key setting solution, and game system |
WO2017035714A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for pushing information when voice matches key setting solution, and game system |
WO2017035713A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for matching key setting solution based on number, and game system |
WO2017035711A1 (en) * | 2015-08-28 | 2017-03-09 | 罗旭宜 | Method for matching key setting solution based on gesture, and game system |
CN106919405A (en) * | 2015-12-24 | 2017-07-04 | 阿里巴巴集团控股有限公司 | The initial method and device of a kind of client |
CN105592161A (en) * | 2016-01-18 | 2016-05-18 | 深圳维爱特科技有限公司 | Method for acquiring data of terminal equipment, and terminal equipment |
CN107038024A (en) * | 2016-02-04 | 2017-08-11 | 腾讯科技(深圳)有限公司 | One kind manipulation collocation method and its equipment |
CN107038024B (en) * | 2016-02-04 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Operation configuration method and equipment thereof |
CN105641931A (en) * | 2016-03-31 | 2016-06-08 | 深圳市创想天空科技股份有限公司 | Game operation configuration method and system |
CN107239416A (en) * | 2016-06-27 | 2017-10-10 | 陈淼波 | The computer system and implementation method of unified abstract representation are provided for smart machine |
CN107239416B (en) * | 2016-06-27 | 2020-07-03 | 陈淼波 | Computer system for providing uniform abstract representation for intelligent equipment and implementation method |
CN106730820A (en) * | 2016-12-12 | 2017-05-31 | 苏州蜗牛数字科技股份有限公司 | A kind of method and android terminal device for being adapted to various game paddles |
CN106656622B (en) * | 2016-12-29 | 2020-04-24 | 深圳Tcl新技术有限公司 | Method and device for configuring interface calling task |
CN106656622A (en) * | 2016-12-29 | 2017-05-10 | 深圳Tcl新技术有限公司 | Method and device for configuring interface call tasks |
CN107085532A (en) * | 2017-03-21 | 2017-08-22 | 东软集团股份有限公司 | Task monitor method and device |
CN107085532B (en) * | 2017-03-21 | 2019-12-13 | 东软集团股份有限公司 | task monitoring method and device |
CN106980553A (en) * | 2017-03-28 | 2017-07-25 | 北京奇虎科技有限公司 | A kind of method and apparatus that data transfer is carried out based on event |
CN106980553B (en) * | 2017-03-28 | 2021-07-23 | 北京奇虎科技有限公司 | Method and equipment for data transmission based on event |
CN107831922A (en) * | 2017-11-21 | 2018-03-23 | 四川长虹电器股份有限公司 | 3D touch touch handle system |
CN108465236B (en) * | 2018-02-28 | 2020-10-30 | 成都掌际互联科技有限公司 | Game handle and control method thereof for mobile phone |
CN108465236A (en) * | 2018-02-28 | 2018-08-31 | 成都掌际互联科技有限公司 | A kind of game paddle and its control method to mobile phone |
CN108681408A (en) * | 2018-05-02 | 2018-10-19 | 广州市品众电子科技有限公司 | A kind of method and bluetooth keyboard for realizing that bluetooth keyboard is connect with game of mobile terminal |
CN109005424A (en) * | 2018-08-17 | 2018-12-14 | 腾讯科技(成都)有限公司 | The control method of object, apparatus and system, storage medium, electronic device |
CN109413620B (en) * | 2018-09-03 | 2021-08-24 | 青岛海尔科技有限公司 | Method and apparatus for managing external Bluetooth device capable of communicating with iOS device |
CN109413620A (en) * | 2018-09-03 | 2019-03-01 | 青岛海尔科技有限公司 | Manage the method and device for the external bluetooth equipment that can be communicated with iOS device |
CN109381856A (en) * | 2018-09-12 | 2019-02-26 | 深圳闪电鸟网络科技有限公司 | Device, method, electronic equipment and the storage medium that game host is controlled |
CN110968434B (en) * | 2018-09-30 | 2022-12-02 | 武汉斗鱼网络科技有限公司 | Method and related device for managing machine |
CN110968434A (en) * | 2018-09-30 | 2020-04-07 | 武汉斗鱼网络科技有限公司 | Method for managing machine and related device |
CN109814848A (en) * | 2019-02-21 | 2019-05-28 | 广州卓远虚拟现实科技有限公司 | A kind of general dynamic engine of virtual reality |
CN109862606A (en) * | 2019-02-26 | 2019-06-07 | 广州乐摇摇信息科技有限公司 | Self-service device communication means, apparatus and system |
CN109862606B (en) * | 2019-02-26 | 2021-03-19 | 广州乐摇摇信息科技有限公司 | Self-service equipment communication method, device and system |
CN110062035A (en) * | 2019-04-02 | 2019-07-26 | 中山市凯恩斯裕龙投资管理有限公司 | A kind of http request method and apparatus based on deque |
CN110209449A (en) * | 2019-05-21 | 2019-09-06 | 腾讯科技(深圳)有限公司 | Cursor positioning method and device in a kind of game |
CN112525566B (en) * | 2019-09-17 | 2022-12-13 | Oppo广东移动通信有限公司 | Equipment test method and device and electronic equipment |
CN112525566A (en) * | 2019-09-17 | 2021-03-19 | Oppo广东移动通信有限公司 | Equipment test method and device and electronic equipment |
CN110743163A (en) * | 2019-09-25 | 2020-02-04 | 恒大智慧科技有限公司 | Method and system for entering same game room based on live broadcast interface two-dimensional code |
CN112749042B (en) * | 2019-10-31 | 2024-03-01 | 北京沃东天骏信息技术有限公司 | Application running method and device |
CN112749042A (en) * | 2019-10-31 | 2021-05-04 | 北京沃东天骏信息技术有限公司 | Application running method and device |
CN110933684A (en) * | 2019-11-28 | 2020-03-27 | 江苏电力信息技术有限公司 | Small-world wireless sensor network construction method based on mixed mode |
CN111803916B (en) * | 2020-06-11 | 2024-07-19 | 深圳市谷粒科技有限公司 | Automatic learning and data reading and writing method and device for game handle |
CN111803916A (en) * | 2020-06-11 | 2020-10-23 | 深圳市谷粒科技有限公司 | Automatic learning and data reading and writing method and device for gamepad |
CN111711997A (en) * | 2020-06-15 | 2020-09-25 | 科罗博(苏州)智能科技有限公司 | Multi-Bluetooth equipment management and non-inductive data acquisition algorithm |
CN111773665B (en) * | 2020-08-05 | 2024-06-04 | 网易(杭州)网络有限公司 | Game platform-based data processing method, platform and device |
CN111773665A (en) * | 2020-08-05 | 2020-10-16 | 网易(杭州)网络有限公司 | Data processing method, platform and device based on game platform |
CN112090061A (en) * | 2020-09-16 | 2020-12-18 | 深圳未来游戏设备科技有限公司 | Game peripheral mode adjusting method aiming at Bluetooth communication protocol |
CN113509717A (en) * | 2020-12-03 | 2021-10-19 | 张威 | Intelligent device joining system based on big data |
CN113209631A (en) * | 2021-05-25 | 2021-08-06 | 四川虹魔方网络科技有限公司 | Experience optimization method based on smart television cloud game |
CN113244624A (en) * | 2021-05-26 | 2021-08-13 | 网易(杭州)网络有限公司 | Game translation method and device |
CN113407044A (en) * | 2021-07-16 | 2021-09-17 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for simulating terminal handle input |
CN114522415A (en) * | 2021-12-24 | 2022-05-24 | 深圳市达实智控科技股份有限公司 | Control method and device of multifunctional game controller and multifunctional game controller |
CN114143765A (en) * | 2022-02-08 | 2022-03-04 | 荣耀终端有限公司 | Bluetooth connection method, device and storage medium |
CN114780179B (en) * | 2022-06-21 | 2022-08-19 | 深圳市华曦达科技股份有限公司 | Key response method and device for android system |
CN114780179A (en) * | 2022-06-21 | 2022-07-22 | 深圳市华曦达科技股份有限公司 | Key response method and device for android system |
CN115913941A (en) * | 2022-10-20 | 2023-04-04 | 深圳市飞科笛系统开发有限公司 | Bluetooth headset upgrading method, bluetooth device and storage medium |
CN115913941B (en) * | 2022-10-20 | 2024-09-13 | 深圳市飞科笛系统开发有限公司 | Bluetooth headset upgrading method, bluetooth device and storage medium |
CN117891442A (en) * | 2024-02-03 | 2024-04-16 | 贵州送变电有限责任公司 | Client program software architecture design method based on object-oriented |
Also Published As
Publication number | Publication date |
---|---|
CN103316472B (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103316472B (en) | A kind of Android device game platform system based on Bluetooth handle and its implementation | |
CN108650149B (en) | Server testing method, device, equipment and computer readable storage medium | |
CN105183675B (en) | To the access method of USB device, device, terminal, server and system | |
CN103927253B (en) | Multiple browser compatibility testing method and system | |
US20120284696A1 (en) | Method, Apparatuses and a System for Compilation | |
CN111831538B (en) | Debugging method, device and storage medium | |
CN108170503A (en) | A kind of method, terminal and the storage medium of cross-system operation Android application | |
CN101115078B (en) | System for developing mobile communications terminal equipment | |
US6865732B1 (en) | Providing an embedded application specific web server | |
CN112416345B (en) | Universal client software integration system | |
CN105320503B (en) | Middleware card cage design system and method | |
CN105224874B (en) | Plug-in security control method and client based on middleware card cage | |
CN109308241A (en) | Monitor application program launching flow and method, device, terminal device and storage medium | |
US20220038444A1 (en) | Cloud device, application processing method, electronic device and storage medium | |
CN103840963B (en) | Method and device for updating server data | |
CN105242910B (en) | Board state control method and client based on middleware card cage | |
CN111901147A (en) | Network access control method and device | |
US8990115B2 (en) | Method, apparatus and system for implementing verification and payment in content service | |
CN104753860B (en) | Network service system based on middleware | |
CN105204829B (en) | Plug-in unit socket resource control method and client based on middleware card cage | |
CN116170610A (en) | SDK for realizing data transmission and data transmission method | |
CN101013949A (en) | Message broadcast communication method | |
CN206063761U (en) | The acquisition device of game operation and control interface | |
CN104219534B (en) | A kind of Linux set-top box realizes the system and method for cloud storage agency | |
US20060106915A1 (en) | Apparatus for providing service in response to user request and method therefor |
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 |