WO2015000439A1 - Cross-platform network interaction method, reader, and network server therefor - Google Patents

Cross-platform network interaction method, reader, and network server therefor Download PDF

Info

Publication number
WO2015000439A1
WO2015000439A1 PCT/CN2014/081670 CN2014081670W WO2015000439A1 WO 2015000439 A1 WO2015000439 A1 WO 2015000439A1 CN 2014081670 W CN2014081670 W CN 2014081670W WO 2015000439 A1 WO2015000439 A1 WO 2015000439A1
Authority
WO
WIPO (PCT)
Prior art keywords
reader
program
webapp
network
network server
Prior art date
Application number
PCT/CN2014/081670
Other languages
French (fr)
Chinese (zh)
Inventor
李政放
吕迎丰
常治国
Original Assignee
深圳市天朗时代科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市天朗时代科技有限公司 filed Critical 深圳市天朗时代科技有限公司
Publication of WO2015000439A1 publication Critical patent/WO2015000439A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials

Definitions

  • the present invention relates to networks, and in particular, to a method for implementing cross-platform network interaction, and a reader and a network server for use in the implementation method.
  • Invisible coding such as MPR (M timedia Print Reader) code is a type of code that can be printed on a medium-sized physical medium without affecting the reading of paper books at all, based on the printing of invisible coded books.
  • a reader can be used to associate other multimedia content related to the content in the book to provide more forms of reading and learning, to increase the interest of learning and to provide more relevant information to the user.
  • the storage capacity of the reader is limited, and the content update is inconvenient. If the reader has a larger storage capacity, the cost will increase. If the content update is not timely, the new information cannot be read, such as updating. There will be a lot of inconvenience to the household account, for example, it takes more time, and it needs to have related equipment.
  • the invention background and principle introduction of the invention With the construction and application promotion of the MPR national standard, a new network application mode is realized by reading the network multimedia content associated with the paper book and playing the online game.
  • HTML5 HTML- Hypertext Markup Language
  • WebSocket supporting HTML5 standard HTML5 started to provide a full-featured web browser and server
  • WebSockd technology it is convenient to implement MPR point reading devices via web servers and WebApp programs running in web browsers (refer to Web-based systems and applications). It runs on the network and standard web browsers, and develops real-time communication based on web technology to achieve specific functions, thus solving the obstacles of the underlying technology.
  • the present invention provides a method for implementing cross-platform network interaction, which reads and identifies a code map by a reader and associates a network server by means of a network.
  • the resource is displayed in the smart display terminal, and the smart display terminal can perform bidirectional real communication with the network server through the network, and the reader has a unique service address in the Internet namespace.
  • the present invention further provides a reader for the foregoing method for implementing cross-platform network interaction, comprising: an image reading and recognition module for reading and identifying a code map;
  • a communication module configured to perform two-way communication with the network server and/or the smart display terminal; an information processing module, configured to process information from the image reading and K module and the communication module; Provide power with f.
  • the present invention further provides a network server, in the foregoing cross-platform network interaction system, comprising: a resource storage module, a resource data exchange module, and an information forwarding module; the resource storage module is configured to store media resources and game resources. And the WebApp program, the resource exchange module is configured to exchange resource data with the third-party database system, and the information forwarding module forwards the received data information to the WebApp program to implement control of the WebApp program.
  • a network server in the foregoing cross-platform network interaction system, comprising: a resource storage module, a resource data exchange module, and an information forwarding module; the resource storage module is configured to store media resources and game resources.
  • the WebApp program the resource exchange module is configured to exchange resource data with the third-party database system, and the information forwarding module forwards the received data information to the WebApp program to implement control of the WebApp program.
  • Network resources can be obtained across platforms. Users can access a large number of network resources with simple invisible coded maps and supporting readers, and display resources, game interactions and payments on any desired smart display device. Trading, etc., and without the need to install specific software, not only facilitates the device, but also improves the user experience and saves costs for users and society. In addition, the real-time and user experience of the present invention is much better than the two-dimensional code + smart phone camera application. Description
  • Figure i is a network topology diagram of an embodiment in which both the reader and the intelligent display terminal are connected to the network through a mobile 3G network.
  • the reader and the intelligent display terminal are both connected to the Internet via a WIFI router.
  • FIG. 3 Another embodiment of the network extension structure, its reader through Bluetooth (or ZigBee ZigBee refers to a cheap, low-power short-range wireless networking communication technology, or 2.4G wireless module - -- 2.4Ghz RF transceiver / receiver module) Wireless connection with the adapter, the adapter is connected to the router through the RM5 network cable (the intelligent display terminal running the WebApp program is connected to the router through WIFI, and the reader and the adapter are paired before leaving the factory).
  • Bluetooth or ZigBee ZigBee refers to a cheap, low-power short-range wireless networking communication technology, or 2.4G wireless module - -- 2.4Ghz RF transceiver / receiver module
  • FIG. 4 is another embodiment of the network topology structure, wherein the smart display terminal running the WebApp program connects to the network through 3G, and provides a WIFI hotspot service for the reader.
  • FIG. 5 is a network extension structure of another embodiment, wherein the reader is connected to a device running a Windows operating system through a USB, and the device running the Windows operating system automatically runs a proxy software stored by the reader, and the communication agent software is The reader provides a two-way communication service between it and the web server.
  • Figure 6 is a two-way authentication process between the reader and the server of an embodiment.
  • Figure 7 is a flow chart of the first pairing between the WebApp program and the reader (in the case of starting the reader after running the WebA P p program).
  • Figure 8 is a flow chart of the first pairing between the WebApp program and the reader (in the case of running the WebApp program after starting the reader).
  • Figure 9 shows the automatic pairing process between the WebApp program and the reader (the case where the reader is started after running the WebApp program).
  • Figure ⁇ is the automatic pairing process between the ⁇ %bApp program and the reader (in the case of running the WebApp program after starting the reader)
  • Figure U is based on the recharge process of the scratch card.
  • Figure 12 is a flow chart for establishing a direct WebSocket connection between a WebApp program and a reader.
  • Figure ⁇ 3 is a flow chart of the authorization of the WebApp program based on the registration code.
  • Figure 4 is a flow chart of the reader reading code and the intelligent display terminal playing media (the network server parses the iD to generate the media URL).
  • Figure 15 is a flow chart of the reading point of the reader and the flow chart of the intelligent display terminal playing media (by WebApp program analysis II) to generate the media URL, and the WebApp program and the reader do not establish a direct WebSocket connection).
  • Figure i 6 is a flow chart of the reader reading code and the intelligent display terminal playing media (the WebApp program parses the ID to generate the media URL, and the WebApp program and the reader establish a direct WebSocket connection).
  • a method for implementing cross-platform network interaction which reads and identifies a code map by a reader 2 and associates resources in the network server 4 by means of the network 3, and displays resources on the smart display terminal 5, the smart The display terminal 5 can perform bidirectional real-time communication with the web server 4 via the network 3, and the reader 2 has a unique corresponding service address in the Internet namespace, such as a corresponding unique URL (Universal Resource Locator) address.
  • the URL is a kind of clean expression of the location and access method of the resources available from the Internet, before
  • the service address of the Internet space is not limited to the URL.
  • other service addresses can also achieve the object of the present invention (so-called service address of the Internet space, which can be understood as being connectable to the network server. A pointer to any accessible object).
  • the smart display terminal 5 is preferably a web browser capable of running the HTML5 WebSocket technology
  • the web server 4 is preferably a WebApp program (referred to as a web-based device) that can be loaded by the smart display terminal 5. That is, running on a network and a standard web browser to develop a specific function-based application based on webpage technology, the WebApp program can also perform pairing operation with the reader 2.
  • the code picture is an invisible code code picture, such as an MPR code code picture, such a code picture can achieve the object of the present invention without affecting the ordinary reading function of the book 1 for printing the code picture (ie, the stealth code)
  • the code map is not easily recognized by human eyes and can be ignored when reading).
  • the Internet 3 can be connected through a mobile 3G network, a 4G network or a WIFI hotspot, and Bluetooth, ZigBee (referred to as a cheap, low) Power consumption of short-range wireless networking communication technology) or 2.4G wireless module (2.4Ghz RF iranscewer / receiver module, working in the world free application ISM channel 2400M- 2483M, to achieve automatic sweeping function, a total of 50 working channels , can work simultaneously with 50 users on the same occasion, without the user to manually coordinate, configure the channel) wirelessly connect with the adapter, and connect to the Internet 3 through the adapter 7, even after the new network connection As long as you can connect to the Internet 3.
  • ZigBee referred to as a cheap, low Power consumption of short-range wireless networking communication technology
  • 2.4G wireless module 2.4Ghz RF iranscewer / receiver module, working in the world free application ISM channel 2400M- 2483M, to achieve automatic sweeping function, a total of 50 working channels , can
  • both the reader 2 and the intelligent display terminal 5 are connected to the network server 4 via the mobile 3G network 3.
  • the paper book 1 in the figure is printed with a code map which can be read by the reader 2, which is a 4?]3 ⁇ 4 code in the invisible code in this embodiment.
  • the preferred method is: the smart display terminal 5 further provides the reader 2 with a WIFI hotspot connected to the Internet 3, and the reader 2 connects to the Internet through the WIFI hotspot. 3.
  • the preferred method is: the reader 2 has a WebSocket service built in, and the smart display terminal 5 establishes a WebSocket connection through the WebApp program, the address of the reader 2, and the WebSocket service port, and passes the The WebSocket connection communicates with the reader 2 in two-way communication to transfer data information that does not need to be processed by the network server 4 to reduce communication delay between the reader and the WebApp program.
  • connection method shown in FIG. 1 above is not limited to the connection method shown in FIG. 1 above, and the following connection methods can be selected:
  • Both the reader 2 and the intelligent display terminal 5 are connected to the Internet 3 via the WIFi router 6, and the network topology is as shown in Fig. 2.
  • the reader 2 is wirelessly connected to the adapter 7 via Bluetooth or a ZigBee or 2.4G wireless module, the adapter 7 is connected to the router 6 via an RJ45 network cable ; the intelligent display terminal 5 running the WebApp program is connected to the router 6 via WIFI, the reader 2 and the adapter 7
  • the pairing is completed before leaving the factory, and its network topology is shown in Figure 3.
  • the adapter 7 is connected to the router 6 through the RJ45 network cable, and the function of the RJ45 network cable can also be implemented by using related components of the personal computer, as long as the connection between the adapter 7 and the router 6 can be realized.
  • the intelligent display terminal 5 running the WebApp program connects to the network 3 through 3G, and provides the WIFI hotspot service for the reader 2, and its network topology is shown in FIG.
  • the reader 2 is connected to a device running a Windows operating system via USB, and the device running the Windows operating system automatically runs the communication agent software stored in the reader 2, and the communication agent software provides the reader 2 with the network server 5
  • the two-way communication service, its network extension structure is shown in Figure 5.
  • the setting of the WIFI network of the reader 2 connected to the Internet 3 through the WIFI hotspot can be completed as follows:
  • the reader has a WiFi function, can be connected to a computer via USB, and is recognized as a "disc";
  • the two-way identity authentication operation process is specifically as shown in FIG. 6, and includes the following steps: - the network server 4 performs identity authentication on the reader 2;
  • the network server 4 receives the device serial number of the reading device
  • the reader 2 generates a "challenge" data packet and sends it to the network server 4 ;
  • the process of the first device pairing operation is specifically as shown in FIG. 7, and includes the following steps:
  • the network server 4 receives the service address request of the namespace submitted by the web browser, and extracts the device serial number of the reader 2 from the service address of the namespace and sends it to the website through the WebSockd a Web/ ⁇ pp program, or embedding the device serial number in the WebApp program;
  • the reader 2 starts up and connects to the network server 4 to complete two-way identity authentication:
  • the network server 4 sends a pairing sequence to the WebApp program, and starts a pairing operation between the reader 2 and the WebApp program;
  • the WebApp program guides the user through the smart display terminal 5 to perform the pairing operation visually and/or audibly.
  • the operations mentioned here include: button operation, somatosensory operation, dot reading code operation, and the like.
  • the first device pairing fraud can also be a process as shown in FIG. 8, including the following steps:
  • the network server 4 receives the service address request of the namespace submitted by the web browser, extracts the device serial number of the reader 2 from the service address of the namespace, and sends it to the office through the WebSocket.
  • WebApp said program, or the device serial number is embedded within the program WebA P p;
  • the network server 4 sends a pairing sequence to the WebApp program, and starts a pairing operation between the reader 2 and the WebApp program;
  • the WebApp program guides the user through the smart display terminal 5 to perform the pairing operation visually and/or audibly.
  • the operations mentioned here include: button operation, somatosensory operation, dot reading code operation, and the like.
  • the first device pairing operation shown in FIG. 7 and FIG. 8 further includes the following steps, which are used in the subsequent automatic matching process, and the operation when the re-use is used:
  • the web server 4 generates a certificate for the successfully paired WebApp program and the reader 2 to be automatically paired next time, and sends a part of the data to the WebA P p program for saving, and the remaining part is sent to the reader 2
  • the network server 4 saves the logical relationship between the two parts of the voucher data for realizing the automatic matching of the next WebApp program and the reader 2;
  • the WebApp program will receive the automatically paired voucher data through the ⁇ storage technology and store the device serial number of the reader 2 as an index on the web browser; the reader 2 saves the received voucher data in its internal private In non-volatile memory.
  • the automatic matching process between the WebA P p program and the reader 2 is as shown in FIG. 9, and includes the following steps: 1) The network server 4 generates voucher data for the next automatic pairing for the successfully paired WebApp program and the reader 2, and saves the voucher data together with the device serial number of the reader 2 In the database of the network server 4, the voucher data is simultaneously sent to the WebApp program;
  • the WebApp program saves the received credential data and the device serial number of the reader 2 in the smart display terminal 5 through the local storage function of the We browser;
  • the network server 4 matches the received device serial number of the reader 2 with the voucher data and the voucher data held by the network server 4 together with the device serial number of the reader 2;
  • the automatic pairing operation may also be as follows:
  • the network server 4 generates the ffi data for the T-time automatic pairing for the successfully paired WebA Pp program and the reader 2, and sends a part of the voucher data to the WebApp program for saving, The remaining part is sent to the reader 2 for saving.
  • the web server 4 maintains a logical relationship between the two parts of the voucher data for realizing automatic pairing between the WebApp program and the reader 2:
  • the WebApp program saves the part of the voucher data and the device serial number of the reader 2 in the smart display terminal 5 through the local storage function of the web browser;
  • the network server records the received device serial number of the reader with a portion of the ffi data and the database server's own database record, if a matching database record is found and has the same
  • the device serial number and the reader storing the other portion of the credential data have established a connection with the web server, and the web server notifies the web app and the reader that the pairing is successful.
  • the automatic matching process may also be as shown in FIG. 2, and includes the following steps:
  • the WebApp program parses out the device serial number of the reader 2 from the URL address, and reads the part of the smart display terminal 5 that is stored in the smart display terminal 5 by using the device serial number as an index. And sent to the network server 4;
  • the web server 4 reminds the weekly user to start the reader 2 through the WebApp program, and completes the two-way identity recognition i!E;
  • the network server 4 facilitates verifying the portion of the number of credentials from the web browser and the from the reader 2 by facilitating a logical relationship between the two pieces of credential data held by the web server 4 Whether another part of the voucher data matches;
  • the web server 4 displays an automatic pairing success or a missed prompt on the smart display terminal 5 through the WebApp program.
  • the smart display terminal 5 loads the WebApp program by using the URL address, and parses out the device serial number of the reader 2; and reads the saved in the smart with the device serial number as an index. Displaying the part of the number of voucher of the terminal 5, and sending to the network server 4; 4) the network server 4 verifies the portion of the voucher from the web browser and the said from the reader 2 using a logical relationship between the two-part credential data held by the web server 4 Whether another part of the voucher data matches;
  • the web server 4 displays an automatic pairing success or a missed prompt on the smart display terminal 5 through the WebApp program.
  • the K reader 2 used includes:
  • An image reading and recognition module configured to read and identify a code map-communication module, configured to perform two-way communication with the network server and/or the smart display terminal; and an information processing module Image reading and identification module and communication module information - power module for providing electrical energy
  • the image reading and recognition module can read and recognize the invisible code code map.
  • the reader further includes a storage module, configured to store authentication information and device pairing information, where the authentication information includes a device serial number, a private key, and a public key of the reader, and a public key of the network server, used for mutual authentication between the reader and a network server to be connected, the device pairing information being used between the reader and the network server to be connected pair.
  • the reader further includes a control module, a sensor module, and a function button, and the control module sends the information collected by the sensor module to the desired connection via the communication module.
  • the network server sends the information of the function button to the network server to be connected via the control module or directly to the WebApp program.
  • the network server 4 includes: a resource storage module and an information forwarding module, where the resource storage module is configured to store media resources, game resources, and a WebApp program; The data information received is forwarded to the WebApp program to implement control of the WebApp program.
  • the resource storage module further stores physical authentication data for authenticating the device to be connected to the network server.
  • the identity authentication data includes a device serial number of the reader to be connected to the network server and a public key thereof.
  • the WebApp program is also used to pair with the reader to be connected to the network server.
  • the network server 4 further includes a payment module, ffl, for creating a payment account to implement electronic payment. As shown in the figure, it is based on a scratch card (printed with a recharge code code map, and covered with an opaque protective layer on the recharge ⁇ ⁇ ⁇ code pattern for the user to purchase, the user needs to scrape off the ⁇ ⁇ ⁇ code on the reload operation
  • the recharge payment process of the opaque protection layer includes the following steps:
  • start recharge code can be any form of code map for prompt recharge
  • the web server 4 notifies the WebApp program to display a prompt for reading the refill PIN code map: such as "please read the recharge PIN code", it can also be presented by the display device and vibration components (if any) of the reader 2 itself. Feedback from the web server 4);
  • the reader sequentially reads the refill PIN code code map, and sends the recognized PIN code to the network server 4, and the network server 4 notifies the WebApp program to display the PI code input progress state;
  • the network server After receiving the PiN code of sufficient length or the user clicks on the code map indicating that the ⁇ ⁇ code has been input, the network server searches for the corresponding database refill PIN code record in the database:
  • the smart display terminal 5 used can be networked through a web browser, the web browser supports the HTML5 standard Websocket technology, and the network in the implementation method of the cross-platform network interaction Server 4 loads the required WebApp programs for resource presentation and/or interaction.
  • the smart display terminal 5 further provides a WiFi hotspot, and the reader can connect to the network 3 through the WIFI hotspot.
  • a direct WebSocket connection can be established between the two, and the two-way communication is performed through the WebSocket connection.
  • the process of establishing a direct WebSocket connection between the WebApp program and the reader 2 :
  • Reader 2 Launches the built-in lightweight WebSocket service and sends its own IP address and WebSocket service port to the web server 4:
  • the network server 4 forwards the IP address of the reader 2 and the WebSocket service port to the WebApp program, and the WebApp program attempts to establish a WebSocket connection according to the received address and the WebSocket service port;
  • connection If the connection is successful, the data that is not required by the web server 4 between the WebApp program and the reader 2 is directly transmitted through the WebSocket connection; if the connection is unsuccessful, the WebApp program and the reader 2 cannot establish a direct bSocket connection. All the data that needs to be transferred between the two is transferred through the network server 4.
  • the reader 2 reads the registration code code map in order, and sends the recognized registration code to the network server 4, and the network server 4 notifies the WebApp program to display the registration code input progress state: the network server 4 receives a sufficient length. After the registration code or the user clicks the "pass-through code input completed" code map, the corresponding database registration code record is searched in the database;
  • the web server 4 notifies the web browser to load the registered WebA P p program.
  • the invention has at least the following modes of operation as exemplified:
  • FIG. ⁇ 4 it is a process of reading the code by the reader at 2 o'clock and the process of playing the media by the intelligent display terminal 5, and the network network server 4 parses the ID to generate the media URL, which specifically includes the following steps - ⁇ ) Boot to establish a connection with the network server 4, and complete the two-way identity authentication between the two:
  • the WebApp program establishes a WebSocket connection to the network server 4, and completes the matching with the reader 2;
  • the reader reads the code at 2 o'clock and sends the identified ID to the network server 4.
  • the network server resolves the ID.
  • the URL of the media and send the URL to the WebApp program via a WebSocket connection;
  • the WebApp program receives the URL, loads and plays the media resource.
  • FIG. 15 it is a process of reading the code at 2 points of the reader and playing the media by the intelligent display terminal 5.
  • the URL is generated by the WebApp program parsing ID, and the WebApp program and the reader 2 do not establish a direct WebSocket connection. Including the following steps:
  • D reader 2 starts to establish a connection with the network server 4, completes the two-way identity authentication
  • the reader reads the code map at 2 o'clock, and sends the identified ID to the network server 4, and the network server 4 forwards the ID to the WebApp program;
  • the WebApp program parses the URL of the ID generation media, and the WebApp program loads the media according to the URL cluster network server 4 and plays it.
  • FIG. ⁇ 6 it is a process of reading the code at 2 o'clock and the process of playing the media by the intelligent display terminal 5.
  • the WebApp program parses the ID to generate the media URL, and the WebApp program and the reader 2 establish a direct WebSocket connection. Including the following steps -
  • Intelligent display terminal 5 Enter the URL on the body shell of the reader 2 from the web browser, and load the WebA p program to establish a WebSockd connection to the web server 4 through the WebApp program;
  • the reader reads the code map at 2 o'clock, and sends the identified ID to the WebApp program, and the WebApp program parses the URL of the iD generated media;
  • the specific operation process is described as follows - the user opens a webpage of a specific URL in a web browser supporting HTML5's ⁇ %bSocket technology, and the webpage establishes a real communication connection with the web server 4 through WebSocket technology, and the user uses a type of reader 2 to click A physical surface printed with a particular graphic, the web browser automatically plays the multimedia content and/or game associated with the particular graphic.
  • the specific URL has a one-to-one binding relationship with the reader 2, and for convenience, the specific URL is imprinted on the outer casing of the reader 2, and the specific URL is also It can be printed on the surface of other media, as long as it can be read by meat.
  • the one-to-one binding relationship of the reader 2 to the specific URL is implemented by the unique serial number of the reader 2, which is essentially: when the network resource is accessed by the reader 2, a specific knowledge
  • the reader can only request to start/execute resources such as stored media and games through a specific service address on the web server that is combined with the device serial number of the reader. This has nothing to do with whether the particular IJRL is imprinted on the outer casing of the reader 2, and has nothing to do with whether the URL is printed on the surface of other media.
  • the imprinting or printing is only for the convenience of the user's reference surface and can be omitted.
  • the reader has a unique serial number that can be recognized by the web server, and the unique serial number has a one-to-one binding relationship with the specific URL.
  • the reader has image capturing, image recognition, and communication functions, and by capturing an image of the specific graphic, obtaining an object ID of the specific graphic representation by image recognition, and then transmitting the object ID to the network a server, the web server retrieves corresponding media according to the iD and sends the corresponding media to the web browser for playing; for the game function, the web server forwards the iD to the web browser for controlling the running of the game in the web browser; Function, the user first scratches the specific graphic representing the refill function, and then the device clicks on the specific graphic of the refill function, the device obtains the corresponding ID and sends the ID to the network server. Recharge function.
  • the multimedia content and game resources are stored in the network server, and the specific graphic represents an iD of an object, and the ID is in one-to-one correspondence with media and game control codes in the network server.
  • the reader and the network server perform body identification and encrypted communication through an asymmetric encryption algorithm, and the private key used by the non-pair encryption algorithm of the reader is stored in an internal private non-volatile memory, and cannot be used by other devices. Read out, thereby avoiding the possibility of being hacked by the hacker to spoof the web server.
  • the method for pairing the device with the WebApp program can be exemplified and specifically described as follows:
  • Pairing method 1 The web server generates a set of random characters displayed on the WebA Pp program, and the user sequentially clicks on the corresponding specific graphic printed on the physical object to complete the login, and the user clicks on each of the specific graphics, the WebApp program Give the correct feedback display, complete the pairing after all the specific graphics are clicked in order.
  • Pairing method 2 The web server generates a set of the reader buttons in a click order and graphically displays on the WebApp program, and the user clicks the device button according to the prompt sequence of the WebAp program p, and the user completes the operation correctly.
  • the WebApp program gives feedback display, completes all button operations and completes pairing.
  • Pairing method 3 The web server generates a specific set of gesture actions and graphically displays on the WebApp program, and the user promptly holds the reader according to the picture of the WebApp program or the action capsule to perform corresponding gesture actions, if The gesture action of the ffl household is the same as the gesture action prompted by the WebApp program, and the pairing is completed.
  • the method for saving and automatically pairing the device with the WebApp program pairing information after the first pairing is successful, the network server generates a string of random bytes, and simultaneously stores the random byte and the unique serial number of the device into the database. And sending the random byte to the WebApp program.
  • the WebApp program stores the random string in the file system of the operating system of the web browser through the HTML5's iocai storage standard function provided by the web browser. After the WebApp program is closed and then reopened, the WebApp program loads the last saved random byte string, and sends the byte string to the network server, and the network server retrieves the corresponding unique sequence of the device from the database. No.
  • the device is connected to the network server after being powered on, thereby realizing automatic matching of the WebApp program and the belonging device.
  • the reader stores a network parameter configuration software
  • the USB operating system connects the reader to a computer running a Windows operating system via a USB
  • the Windows operating system recognizes the reader as a CD-ROM disc and automatically runs the CD-
  • the network parameter configuration software in the ROM disk the user configures the network parameter through the network parameter configuration software, and the network parameter is automatically stored in the private non-volatile memory inside the reader, and the reader is in the reader.
  • the communication software connects to the network through stored parameters.
  • the reader has a function button, and the function button can control the pause, resume, and exit of the video play in the WebApp program, and the navigation of the menu function in the WebApp program.
  • the reader further includes a gyro sensor and an acceleration sensor, and the CPU sends the collected gyro sensor parameters and acceleration sensor parameters to the network server, and the network server forwards the parameters to the WebApp program to implement the interactive media. Play and game control cow li.
  • the whole system is mainly composed of five parts: a carrier with a code map, a wireless reader, a network server, an intelligent display terminal, and a network.
  • a carrier with a code map The code map is generated according to the ID of the associated object, and the image of the code map is taken by the reader, and the image recognition algorithm is run to restore the object ID.
  • the form of the carrier includes all surfaces of solid objects on which the code map can be printed.
  • the function of the wireless transmitting module is to connect to the network to realize two-way communication between the wireless reader and the network server.
  • wireless modules can be connected to the network in various ways, including 2G/3G/4G mobile cellular data communication modules directly connected to the network, WiFi modules connected via WiFi routers, Bluetooth/ZigBeeZ2.4G wireless
  • the module is connected to a TCP/IP network adapter and then connected to the network via a router.
  • Acceleration sensors, gravity sensors, sensor data generated by the electronic compass sensor, and events generated by the function buttons are collected by the CPU and sent to the network server via the wireless transmitting module.
  • the network server then sends the events generated by the sensor data and function buttons to the Web.
  • the WebApp program running in the browser, ⁇ controls the operation of media playback and games.
  • the vibration mechanism is used for feedback of the game, and the WebApp program sends a control command to the wireless reader according to the running state of the game, and controls the fraud of the vibration mechanism.
  • the USB interface is used to charge the battery.
  • the external read-only memory is recognized as a CD-ROM disk.
  • the CD-ROM disk has the unique serial number of the device, the wireless network parameter configuration software, and the wireless network parameter configuration that allows the computer to automatically run.
  • the autorun script for the software is used to set the WiFi wireless network parameters, and the parameters are stored in the internal private non-volatile memory.
  • the private private non-volatile memory also stores the private and public keys that the web server distributes to the wireless reader, as well as the server's public key.
  • Wireless readers need to be proud of two-way authentication when logging in to the network server.
  • the main process is to send a "challenge" packet to the wireless reader.
  • the wireless reader J3 ⁇ 4 private key signs the "challenge” packet and then signs the result together.
  • the unique serial number of the device is returned to the server, the unique serial number of the server device is found to find the public key of the wireless reader, and the signature data is checked by the server, and the server determines the wireless reading according to the success or failure of the verification. Is the body of the device really or fake?
  • the wireless reader After the server completes the authentication of the wireless reader, the wireless reader generates a "challenge" packet and sends it to the server.
  • the server signs the "challenge” packet with its own private information and returns the result to the wireless reader.
  • the public key of the wireless reader ffl server checks the received signature data packet. If the verification pass passes, the wireless reader considers that the server is not forged, and realizes the two-way recognition.
  • the function buttons include an on/off button, a play pause/resume button, a direction navigation button, a confirmation button, a return button, and the like. After the button is detected by the CPU, the message representing the button action is forwarded to the server, and the server forwards the message to the WebApp. Programs that implement control over WebApp programs.
  • the image sensor is used to capture the code image to obtain the image of the code image, and then the image is given to the image recognition module (software or hardware) for identification, the ID of the object is restored, and the object ID is sent to the server via the wireless module, and the server prepares the Web according to the object ID.
  • / ⁇ pp program will get the content, and the server forwards the object ID to the WebApp program.
  • the program logic of the WebApp program generates a specific server request according to the object iD, or loads the media content, or loads the game, etc.
  • the URL address consists of the HTTP server address and the unique serial number identifying the wireless reader, for example http://mprv.so/2013081800001 , where "http://mprv.so/” is the address of the server, and "2013081800001" is the unique serial number of the wireless reader.
  • the web browser After entering the URL in the web browser, the web browser requests the server to load the web page, and the server Know that the web browser request is paired with the wireless reader with the device serial number "20i308 j 800001".
  • the URL address for opening the WebApp program can also be obtained according to the index of the webpage obtained after the identifier map, for example, the index of the webpage is transmitted to the server of the namespace service address of the reader.
  • the server parses the index of the webpage to obtain a URL address for opening the webApp program and feeds back to the reader, and prompts the user to manually input the URL address in the web browser through the display screen of the reader.
  • the WebApp program needs to analyze the index of the webpage through the server to obtain the webpage surface, which is not directly related to the media content, etc., thereby preventing fraudulent phishing websites.
  • the user can also enter the URL by other means; tiL Enter, for example, through a link provided by a search engine or any other web page.
  • the network server includes:
  • the WebA P p program can be stored in the aforementioned "The reader has in the Internet namespace"
  • the only corresponding service address "same service address, can also be stored in other service addresses of the web server, as long as it needs to be able to be loaded (or called) by the web browser of the smart display terminal.
  • the WebApp program can be regarded as a web-based page.
  • the technology develops applications that implement specific functions, including but not limited to media playback, gaming applications, online payment applications, and the like.
  • the intelligent display terminal in the system is to provide a running environment for the web browser and to provide the web browser with the ability to connect to the network.
  • the Web browser needs to support the HTML5 standard WebSod et technology.
  • the Web browser opens the URL on the reader shell.
  • the Web browser loads the WebApp program code from the server and runs the WebApp program.
  • the WebApp program establishes a We Socket connection with the server, so the WebApp
  • the program and the wireless reader establish a two-way real-time communication connection indirectly through the server.
  • the wireless reader has built a lightweight service that supports HTML5 WebSocket technology, and has its own iP address and WebSocket service in the LAN.
  • the port forwards the WebApp program via the web server, and the WebApp program attempts to create a new WebSocket connection according to the IP address in the local area network and the WebSocket service port. If the new WebSockei connection is successful, it indicates that the intelligent display terminal and the wireless reader are in the same local area network, then There is no need to transfer data between the WebApp program and the wireless reader through the server. This WebSocket connection reduces the delay of data transmission from the surface.
  • the infrastructure for connecting wireless readers, network servers, and intelligent display terminals can be existing networks such as wide area networks and local area networks.
  • the "server” and the “internet server” correspond to the “network server” in each embodiment, and the “device unique serial number” corresponds to the “device serial number” in the embodiment.
  • the "Web browser” is a web browser running in the "smart display terminal” described in the embodiment, and “WebApp” corresponds to the "WebApp program” in the embodiment.
  • the "URL” mentioned in the drawings and the embodiments refers to "one of the service addresses in the Internet namespace", and the present invention is not limited to the service address of the form "URL”.

Abstract

Disclosed in the present invention are a cross-platform network interaction method, and a reader and network server therefor. The cross-platform network interaction method reads and identifies coded patterns by means of the reader, then over a network associates said patterns with network server resources and displays said resources on a smart display terminal; the smart display terminal can then conduct bidirectional real-time communication over the network with the network server. The reader has an Internet namespace and a corresponding unique service address. The implementation method for the present cross-platform network interaction crosses platforms to obtain network resources; the user requires only a simple book carrying invisible code and a matching reader to be able to access a vast amount of network resources, and is able to display said resources on any desired smart display terminal, play interactive games, conduct payment transactions, et cetera, thus enjoying an enhanced user experience and lower costs.

Description

一种跨平台网络交互的实现方法及其识读器和网络服务器 技术领域  Method for realizing cross-platform network interaction and its reader and network server
本发明涉及网络,尤其涉及一种跨平台网络交互的实现方法, 以及用于该实现方法中的 识读器和网络服务器。  The present invention relates to networks, and in particular, to a method for implementing cross-platform network interaction, and a reader and a network server for use in the implementation method.
背景技术 Background technique
隨着近儿年移动网络技术的发展,各种具有媒体播放与游戏运行功能的网络设备层出不 穷, 这些网络设备往往运行着不同的操作系统, 具有不同的屏幕尺寸, 以及具有不同的外设 通讯接口,这对网络 ffl户面言在访问和利用丰富的网络资源方面造成了很大的不便,使用成 本也很高。  With the development of mobile network technology in recent years, various network devices with media playback and game running functions emerge one after another. These network devices often run different operating systems, have different screen sizes, and have different peripheral communication interfaces. This has caused great inconvenience in accessing and utilizing rich network resources, and the cost of use is also high.
隐形编码, 譬如 MPR ( M timedia Print Reader, 多媒体印刷读物) 码是可印刷 f纸质 图书中等物理介质上面完全不影响纸质图书的阅读的编码形式,在印刷了隐形编码的图书的 基础上增加一个识读器即可用于关联与图书中内容相关的其它的多媒体形式内容,以提供更 多的阅读和学习的形式, 增加学习的趣味性并提供更多的关联信息给用户。 不过, 识读器的 存储容量有限, 内容更新等也不便, 如果采周更大存储容量的识读器则成本势必增加, 内容 更新方面如果不及时, 则无法学习阅读新的信息, 如及时更新则对 ^户面言会有诸多不便, 比如需花费更多时间, 并需有配套的相关设备。  Invisible coding, such as MPR (M timedia Print Reader) code is a type of code that can be printed on a medium-sized physical medium without affecting the reading of paper books at all, based on the printing of invisible coded books. A reader can be used to associate other multimedia content related to the content in the book to provide more forms of reading and learning, to increase the interest of learning and to provide more relevant information to the user. However, the storage capacity of the reader is limited, and the content update is inconvenient. If the reader has a larger storage capacity, the cost will increase. If the content update is not timely, the new information cannot be read, such as updating. There will be a lot of inconvenience to the household account, for example, it takes more time, and it needs to have related equipment.
以上, 均使用户在网络应用上的体验不佳, 故有必要对现有技术作出改进, 以解决跨平 台 (操作系统)、 跨屏幕尺寸进行媒体展示和游戏互动等的障碍。  All of the above have made the user's experience in the network application poor, so it is necessary to improve the existing technology to solve the obstacles such as media display and game interaction across the platform (cross-screen size).
发明内容 Summary of the invention
本发明的发明背景及原理介绍: 随着 MPR国家标准的构建及应用推广, 通过点读纸质 图书摇放关联的网络多媒体内容、 运行网络游戏等成为了一种全新的网络应用模式。 同时, 隨着 HTML5 ( HTML—— Hypertext Markup Language, 超文本标记语言) 标准的发展以及 Web浏览器技术的革新, 支持 HTML5标准的 WebSocket ( HTML5开始提供的一种 Web浏 览器与服务器间进行全双工通讯的网络技术)技术的 Web浏览器越来越多,通过 WebSockd 技术,可方便的实现 MPR点读设备经网络服务器与运行在 Web浏览器中的 WebApp程序 (指 基于 Web的系统和应用, 运行于网络和标准 Web浏览器上, 基于网页技术开发实现特定功 能的应 ffl ) 的实时通讯, 从而解决了底层技术的障碍。  The invention background and principle introduction of the invention: With the construction and application promotion of the MPR national standard, a new network application mode is realized by reading the network multimedia content associated with the paper book and playing the online game. At the same time, with the development of HTML5 (HTML- Hypertext Markup Language) standard and the innovation of Web browser technology, WebSocket supporting HTML5 standard (HTML5 started to provide a full-featured web browser and server) There are more and more Web browsers for technology communication. Through WebSockd technology, it is convenient to implement MPR point reading devices via web servers and WebApp programs running in web browsers (refer to Web-based systems and applications). It runs on the network and standard web browsers, and develops real-time communication based on web technology to achieve specific functions, thus solving the obstacles of the underlying technology.
为克服上述现有技术用户体验不佳、使用成本高等的缺陷,本发明提供一种跨平台网络 交互的实现方法,该方法通过识读器读取和识别码图并借助于网络来关联网络服务器中的资 源,并在智能显示终端进行资源展示,所述智能显示终端可通过网络与所述网络服务器进行 双向实 通信, 所述识读器在互联网名称空间有唯一对应的服务地址。  In order to overcome the defects of the above-mentioned prior art user experience, high cost of use, etc., the present invention provides a method for implementing cross-platform network interaction, which reads and identifies a code map by a reader and associates a network server by means of a network. The resource is displayed in the smart display terminal, and the smart display terminal can perform bidirectional real communication with the network server through the network, and the reader has a unique service address in the Internet namespace.
本发明还进一歩提供一种识读器, 用于前述的跨平台网络交互的实现方法中, 其包括: 图像读取和识别模块, 用于读取和识别码图;  The present invention further provides a reader for the foregoing method for implementing cross-platform network interaction, comprising: an image reading and recognition module for reading and identifying a code map;
通讯模块, 用于与所述网络服务器和 /或所述智能显示终端之间进行双向通信; 信息处理模块, 用于处理来自所述图像读取和 K别模块和通讯模块的信息; 电源模块, 用 f提供电能。  a communication module, configured to perform two-way communication with the network server and/or the smart display terminal; an information processing module, configured to process information from the image reading and K module and the communication module; Provide power with f.
本发明还进一步提供一种网络服务器, ^于前述的跨平台网络交互系统中, 其包括: 资 源存储模块、资源数据交换模块和信息转发模块; 所述资源存储模块周于存储媒体资源、游 戏资源和 WebApp程序,所述资源交换模块用于与第三方数据库系统进行资源数据交换,所 述信息转发模块周于将接收到的数据信息转发至 WebApp程序, 以实现对 WebApp程序的 控制。 本发明与现有技术对比的有益效果是: The present invention further provides a network server, in the foregoing cross-platform network interaction system, comprising: a resource storage module, a resource data exchange module, and an information forwarding module; the resource storage module is configured to store media resources and game resources. And the WebApp program, the resource exchange module is configured to exchange resource data with the third-party database system, and the information forwarding module forwards the received data information to the WebApp program to implement control of the WebApp program. The beneficial effects of the present invention compared to the prior art are:
可跨平台获取网络资源,用户仅需简单的带有隐形编码的图 和配套的识读器即可访问 海量的网络资源,并在任意所希望的智能显示设备上进行资源展示、游戏互动及支付交易等, 且无需安装特定的应^软件, 不但为设备的使 ^提供了便利, 提升了 ^户体验, 还为用户和 社会节省了成本。 此外, 本发明实时性与用户体验远好于二维码 +智能手机拍照应用。 酎图说明  Network resources can be obtained across platforms. Users can access a large number of network resources with simple invisible coded maps and supporting readers, and display resources, game interactions and payments on any desired smart display device. Trading, etc., and without the need to install specific software, not only facilitates the device, but also improves the user experience and saves costs for users and society. In addition, the real-time and user experience of the present invention is much better than the two-dimensional code + smart phone camera application. Description
图 i是一个实施例中,识读器和智能显示终端均通过移动 3G网络连接到网络的网络拓 扑结构图。  Figure i is a network topology diagram of an embodiment in which both the reader and the intelligent display terminal are connected to the network through a mobile 3G network.
图 2又一所述的网络拓扑结构,其识读器和智能显示终端均通过 WIFI路由器连接至所 述互联网。  In another embodiment of the network topology, the reader and the intelligent display terminal are both connected to the Internet via a WIFI router.
图: 3再一实施例的网络拓 结构, 其识读器通过蓝牙 (或 ZigBee ZigBee是指一种 便宜的, 低功耗的近距离无线组网通讯技术, 或 2.4G无线模块 - --- 2.4Ghz RF transceiver / receiver module) 与适配器无线连接, 适配器通过 RM5网线连接路由器 (运行 WebApp程 序的智能显示终端通过 WIFI连接到路由器, 识读器与适配器出厂前完成配对)。  Figure: 3 Another embodiment of the network extension structure, its reader through Bluetooth (or ZigBee ZigBee refers to a cheap, low-power short-range wireless networking communication technology, or 2.4G wireless module - -- 2.4Ghz RF transceiver / receiver module) Wireless connection with the adapter, the adapter is connected to the router through the RM5 network cable (the intelligent display terminal running the WebApp program is connected to the router through WIFI, and the reader and the adapter are paired before leaving the factory).
图 4再一实施例的网络拓扑结构,其运行 WebApp程序的智能显示终端通过 3G连接到 网络, 同时为识读器提供 WIFI热点服务。  4 is another embodiment of the network topology structure, wherein the smart display terminal running the WebApp program connects to the network through 3G, and provides a WIFI hotspot service for the reader.
图 5再一实施例的网络拓 结构,其识读器通过 USB与运行 Windows操作系统的设备 连接, 运行 Windows操作系统的设备自动运行识读器存储的通 ¾代理软件, 该通讯代理软 件为识读器提供其与网络服务器之间的双向通讯服务。  FIG. 5 is a network extension structure of another embodiment, wherein the reader is connected to a device running a Windows operating system through a USB, and the device running the Windows operating system automatically runs a proxy software stored by the reader, and the communication agent software is The reader provides a two-way communication service between it and the web server.
图 6是一个实施例的识读器与服务器之间的双向身汾认证流程。  Figure 6 is a two-way authentication process between the reader and the server of an embodiment.
图 7是 WebApp程序与识读器之间的首次配对的流程图 (先运行 WebAPp程序后启动 识读器的情况)。 Figure 7 is a flow chart of the first pairing between the WebApp program and the reader (in the case of starting the reader after running the WebA P p program).
图 8是 WebApp程序与识读器之间的首次配对的流程图(先启动识读器后运行 WebApp 程序的情况)。  Figure 8 is a flow chart of the first pairing between the WebApp program and the reader (in the case of running the WebApp program after starting the reader).
图 9是 WebApp程序与识读器之间的自动配对流程 (先运行 WebApp程序后启动识读 器的情况)。  Figure 9 shows the automatic pairing process between the WebApp program and the reader (the case where the reader is started after running the WebApp program).
图 ίθ是 \%bApp程序与识读器之间的自动配对流程(先启动识读器后运行 WebApp程 序的情况)  Figure ίθ is the automatic pairing process between the \%bApp program and the reader (in the case of running the WebApp program after starting the reader)
图 U是基于刮刮卡的充值流程。  Figure U is based on the recharge process of the scratch card.
图 12是 WebApp程序与识读器建立直接 WebSocket连接的流程图。  Figure 12 is a flow chart for establishing a direct WebSocket connection between a WebApp program and a reader.
图 Ϊ3是基于注册码的 WebApp程序授权流程图。  Figure Ϊ3 is a flow chart of the authorization of the WebApp program based on the registration code.
图 ] 4是 读器点读码图、 智能显示终端播放媒体的流程图 (由网络服务器解析 iD生 成媒体 URL的情况)。  Figure 4 is a flow chart of the reader reading code and the intelligent display terminal playing media (the network server parses the iD to generate the media URL).
图 15是识读器点读码图、 智能显示终端播放媒体的流程图 (由 WebApp程序解析 II》 生成媒体 URL, WebApp程序与识读器没有建立直接 WebSocket连接的情况)。  Figure 15 is a flow chart of the reading point of the reader and the flow chart of the intelligent display terminal playing media (by WebApp program analysis II) to generate the media URL, and the WebApp program and the reader do not establish a direct WebSocket connection).
图 i 6是识读器点读码图、 智能显示终端播放媒体的流程图 (由 WebApp程序解析 ID 生成媒体 URL, WebApp程序与识读器建立了直接 WebSocket连接的情况)。  Figure i 6 is a flow chart of the reader reading code and the intelligent display terminal playing media (the WebApp program parses the ID to generate the media URL, and the WebApp program and the reader establish a direct WebSocket connection).
具体实施方式 detailed description
下面对照附图和结合优选的具体实施方式对本发明进行详细的阐述。  The invention will now be described in detail with reference to the drawings and preferred embodiments thereof.
一种跨平台网络交互的实现方法,该方法通过识读器 2读取和识别码图并借助于网络 3 来关联网络服务器 4 中的资源, 并在智能显示终端 5进行资源展示, 所述智能显示终端 5 可通过网络 3与所述网络服务器 4进行双向实时通信,所述识读器 2在互联网名称空间有唯 一对应的服务地址, 譬如对应唯一 URL (Universal Resource Locator, 统一资源定位符) 地 址。 其中, URL是对可 从因特网上得到的资源的位置和访^]方法的一种筒洁的表示, 前 述互联网空间的服务地址并不局限于 URL这种方式, 只要能够对资源定位, 其它方式的服 务地址也可实现本发明的发明目的(所谓互联网空间的服务地址,可理解为可连接至网络服 务器上任何可访问对象的指针)。 A method for implementing cross-platform network interaction, which reads and identifies a code map by a reader 2 and associates resources in the network server 4 by means of the network 3, and displays resources on the smart display terminal 5, the smart The display terminal 5 can perform bidirectional real-time communication with the web server 4 via the network 3, and the reader 2 has a unique corresponding service address in the Internet namespace, such as a corresponding unique URL (Universal Resource Locator) address. . Among them, the URL is a kind of clean expression of the location and access method of the resources available from the Internet, before The service address of the Internet space is not limited to the URL. As long as the resource can be located, other service addresses can also achieve the object of the present invention (so-called service address of the Internet space, which can be understood as being connectable to the network server. A pointer to any accessible object).
其中, 所述智能显示终端 5优选是可运行支持 HTML5 WebSocket技术的 Web浏览器, 所述网络服务器 4优选是可提供可供所述智能显示终端 5加载的 WebApp程序 (指基于 Web 的应 ffl, 就是运行于网络和标准 Web浏览器上, 基于网页技术开发实现特定功能的应用), 该 WebApp程序还可与所述识读器 2进行配对操作。 所述码图为隐形编码码图, 譬如 MPR 码码图,这样的码图既可实现本发明的发明目的,又不会影响到印刷该码图的图书 1的普通 阅读功能 (即该隐形编码码图不易被人类 ¾睛识别, 在阅读时可以忽略)。  The smart display terminal 5 is preferably a web browser capable of running the HTML5 WebSocket technology, and the web server 4 is preferably a WebApp program (referred to as a web-based device) that can be loaded by the smart display terminal 5. That is, running on a network and a standard web browser to develop a specific function-based application based on webpage technology, the WebApp program can also perform pairing operation with the reader 2. The code picture is an invisible code code picture, such as an MPR code code picture, such a code picture can achieve the object of the present invention without affecting the ordinary reading function of the book 1 for printing the code picture (ie, the stealth code) The code map is not easily recognized by human eyes and can be ignored when reading).
所述识读器 2连接至所述互联网 3的方式不限, 譬如可以通过移动 3G网络、 4G网络 或 WIFI热点连接至所述互联网 3, 还可采用蓝牙、 ZigBee (指一种便宜的, 低功耗的近距 离无线组网通讯技术)或 2.4G无线模块(2.4Ghz RF iranscewer / receiver module, 工作在全 球免申请 ISM频道 2400M- 2483M范围内, 实现开机自动扫频功能, 共有 50个工作信道, 可以同 ^供 50个用户在同一场合同时工作, 无需使用者人工协调、 配置信道) 与适配器无 线连接, 并通过所述适配器 7连接至所述互联网 3, 甚至于以后新出现的网络连接方式, 只 要能够连接至所述互联网 3即可。  The manner in which the reader 2 is connected to the Internet 3 is not limited. For example, the Internet 3 can be connected through a mobile 3G network, a 4G network or a WIFI hotspot, and Bluetooth, ZigBee (referred to as a cheap, low) Power consumption of short-range wireless networking communication technology) or 2.4G wireless module (2.4Ghz RF iranscewer / receiver module, working in the world free application ISM channel 2400M- 2483M, to achieve automatic sweeping function, a total of 50 working channels , can work simultaneously with 50 users on the same occasion, without the user to manually coordinate, configure the channel) wirelessly connect with the adapter, and connect to the Internet 3 through the adapter 7, even after the new network connection As long as you can connect to the Internet 3.
如图 1所示的网络拓扞结构图,是识读器 2和智能显示终端 5均通过移动 3G网络 3连 接到网络服务器 4。 图中的纸质图书 1中印刷有可供所述识读器 2读取的码图, 本实施例中 是隐形码中的 4?]¾码„  As shown in the network topology diagram shown in FIG. 1, both the reader 2 and the intelligent display terminal 5 are connected to the network server 4 via the mobile 3G network 3. The paper book 1 in the figure is printed with a code map which can be read by the reader 2, which is a 4?]3⁄4 code in the invisible code in this embodiment.
…-个优选的做法是: 所述智能显示终端 5还为所述识读器 2提供 ffl于连接至所述互联 网 3的 WIFI热点, 所述识读器 2通过该 WIFI热点连接至所述互联网 3。 进一歩优选的做 法是: 所述识读器 2内建有 WebSocket服务, 所述智能显示终端 5通过所述 WebApp程序、 所述识读器 2的 ίΡ地址和 WebSocket服务端口建立 WebSocket连接, 并通过该 WebSocket 连接与所述识读器 2进行双向通信,传递无需经过所述网络服务器 4处理的数据信息, 以降 低识读器与 WebApp程序之间的通讯延迟。  The preferred method is: the smart display terminal 5 further provides the reader 2 with a WIFI hotspot connected to the Internet 3, and the reader 2 connects to the Internet through the WIFI hotspot. 3. The preferred method is: the reader 2 has a WebSocket service built in, and the smart display terminal 5 establishes a WebSocket connection through the WebApp program, the address of the reader 2, and the WebSocket service port, and passes the The WebSocket connection communicates with the reader 2 in two-way communication to transfer data information that does not need to be processed by the network server 4 to reduce communication delay between the reader and the WebApp program.
本发明并不限于上述图 1所示的连接方式, 譬如以下连接方式均可选择:  The present invention is not limited to the connection method shown in FIG. 1 above, and the following connection methods can be selected:
识读器 2和智能显示终端 5均通过 WIFi路由器 6连接至所述互联网 3, 其网络拓扑结 构如图 2所示。  Both the reader 2 and the intelligent display terminal 5 are connected to the Internet 3 via the WIFi router 6, and the network topology is as shown in Fig. 2.
识读器 2通过蓝牙或 ZigBee或 2.4G无线模块与适配器 7无线连接,适配器 7通过 RJ45 网线连接路由器 6; 运行 WebApp程序的智能显示终端 5通过 WIFI连接到路由器 6, 识读 器 2与适配器 7出厂前完成配对, 其网络拓扑结构如图 3所示。 其中, 适配器 7通过 RJ45 网线连接路由 6器的具体连接方式中, RJ45网线的功能也可以用个人电脑的相关部件等来 实现, 只要能够实现适配器 7与路由器 6之间的连接即可。 The reader 2 is wirelessly connected to the adapter 7 via Bluetooth or a ZigBee or 2.4G wireless module, the adapter 7 is connected to the router 6 via an RJ45 network cable ; the intelligent display terminal 5 running the WebApp program is connected to the router 6 via WIFI, the reader 2 and the adapter 7 The pairing is completed before leaving the factory, and its network topology is shown in Figure 3. Among them, the adapter 7 is connected to the router 6 through the RJ45 network cable, and the function of the RJ45 network cable can also be implemented by using related components of the personal computer, as long as the connection between the adapter 7 and the router 6 can be realized.
运行 WebApp程序的智能显示终端 5通过 3G连接到网络 3,同时为识读器 2提供 WIFI 热点服务, 其网络拓扑结构如图 4所示。  The intelligent display terminal 5 running the WebApp program connects to the network 3 through 3G, and provides the WIFI hotspot service for the reader 2, and its network topology is shown in FIG.
识读器 2通过 USB与运行 Windows操作系统的设备连接, 运行 Windows操作系统的 设备自动运行识读器 2存储的通讯代理软件,该通讯代理软件为识读器 2提供其与网络服务 器 5之间的双向通讯服务, 其网络拓 结构如图 5所示。  The reader 2 is connected to a device running a Windows operating system via USB, and the device running the Windows operating system automatically runs the communication agent software stored in the reader 2, and the communication agent software provides the reader 2 with the network server 5 The two-way communication service, its network extension structure is shown in Figure 5.
所述识读器 2通过 WIFI热点连接至所述互联网 3的 WIFI网络设置可通过如下歩骤完 成:  The setting of the WIFI network of the reader 2 connected to the Internet 3 through the WIFI hotspot can be completed as follows:
ί ) 所述识读器具有 WiFi功能, 可通过 USB连接电脑, 并被识别成一个 "光盘"; ί ) The reader has a WiFi function, can be connected to a computer via USB, and is recognized as a "disc";
2) 所述 "光盘" 中的 autonm脚本启动 WiFi网络参数配置程序, 完成 WiFi网络参数 配置; 2) The autonm script in the "disc" starts the WiFi network parameter configuration program to complete the WiFi network parameter configuration;
3 ) 保存所述已配置的 网络参数到所述识读器内部私密的非易失存储器中, 再次 使 ffl Eii则无需重新做 Wtf'i网络参数配置。 3) saving the configured network parameters to the private non-volatile memory inside the reader, again Make ffl Eii no need to re-configure Wtf'i network parameters.
为安全考虑,在所述 K读器 2与所述网络服务器 4中的资源建立关联之前还需进行双向 身份验证和设备配对操作。举例面言, 所述双向身份认证操作流程具体如图 6所示, 包括如 下歩骤- ί ) 所述网络服务器 4对所述识读器 2进行身份认证;  For security reasons, two-way authentication and device pairing operations are required before the K-reader 2 is associated with resources in the network server 4. For example, the two-way identity authentication operation process is specifically as shown in FIG. 6, and includes the following steps: - the network server 4 performs identity authentication on the reader 2;
1.1 ) 所述网络服务器 4接收所述识读 2器的设备序列号;  1.1) The network server 4 receives the device serial number of the reading device;
1.2) 确认所述设备序列号后生成 "挑战"数据包, 并发送至所述识读器 2: 1.2) After the device serial number is confirmed, a "challenge" packet is generated and sent to the reader 2 :
1.3 ) 接收来自所述识读器 2的 "应答"数据包, 并进行验签操作;  1.3) receiving a "response" packet from the reader 2 and performing an authentication operation;
1.4 ) 返回验签信息至所述识读器 2, 完成对所述识读器 2的身份认证;  1.4) returning the verification information to the reader 2, completing the identity authentication of the reader 2;
2 ) 所述识读器 2对所述网络服务器 4进行身份认证;  2) the reader 2 performs identity authentication on the network server 4;
2.3 ) 所述识读器 2生成 "挑战"数据包, 并发送至所述网络服务器 4; 2.3) the reader 2 generates a "challenge" data packet and sends it to the network server 4 ;
2.2) 接收来自所述网络服务器 4的 "应答"数据包, 并进行验签操作;  2.2) receiving a "response" packet from the network server 4 and performing an authentication operation;
2.3 ) 返回验签信息至所述网络服务 4器, 完成对所述网络服务器 4的身汾认证。 所述首次设备配对操作流程具体如图 7所示的, 包括如下歩骤:  2.3) Returning the verification information to the network service device 4, completing the authentication of the network server 4. The process of the first device pairing operation is specifically as shown in FIG. 7, and includes the following steps:
1 ) 所述智能显示终端 5通过所述 URL地 加载所述 WebApp程序;  1) the smart display terminal 5 loads the WebApp program by using the URL;
2)所述网络服务器 4接收所述 Web浏览器提交的所述名称空间的服务地址请求, ^所 述名称空间的服务地址中提取所述识读器 2 的设备序列号并通过 WebSockd 发送给所述 Web/^pp程序, 或将所述设备序列号嵌在所述 WebApp程序内;  2) The network server 4 receives the service address request of the namespace submitted by the web browser, and extracts the device serial number of the reader 2 from the service address of the namespace and sends it to the website through the WebSockd a Web/^pp program, or embedding the device serial number in the WebApp program;
3 ) 所述网络服务器 4通过所述 WebApp程序提示启动所述识读器 2 ;  3) the network server 4 prompts to start the reader 2 through the WebApp program prompt;
4) 所述识读器 2启动并连接至所述网络服务器 4, 完成双向身份认证:  4) The reader 2 starts up and connects to the network server 4 to complete two-way identity authentication:
5 ) 所述网络服务器 4发送配对序列至所述 WebApp程序, 启动所述识读器 2和所述 WebApp程序之间的配对操作;  5) the network server 4 sends a pairing sequence to the WebApp program, and starts a pairing operation between the reader 2 and the WebApp program;
6)所述 WebApp程序通过所述智能显示终端 5以视觉和 /或听觉方式引导用户完成配对 操作。 这里所说的操作包括: 按键操作、 体感操作、 点读碼图操作等。  6) The WebApp program guides the user through the smart display terminal 5 to perform the pairing operation visually and/or audibly. The operations mentioned here include: button operation, somatosensory operation, dot reading code operation, and the like.
所述首次设备配对操诈还可以是如图 8所示的流程, 包括如下步骤:  The first device pairing fraud can also be a process as shown in FIG. 8, including the following steps:
1 ) 所述识读器 2启动并连接至所述网络服务器 4, 完成双向身份认证;  1) the reader 2 is activated and connected to the network server 4 to complete two-way identity authentication;
2) 所述智能显示终端 5进入所述 URL地; 并加载所述 WebApp程序;  2) the smart display terminal 5 enters the URL; and loads the WebApp program;
3 )所述网络服务器 4接收所述 Web浏览器提交的所述名称空间的服务地址请求, 从所 述名称空间的服务地址中提取所述识读器 2 的设备序列号并通过 WebSocket发送给所述 WebApp程序, 或将所述设备序列号嵌在所述 WebAPp程序内; 3) The network server 4 receives the service address request of the namespace submitted by the web browser, extracts the device serial number of the reader 2 from the service address of the namespace, and sends it to the office through the WebSocket. WebApp said program, or the device serial number is embedded within the program WebA P p;
4) 所述网络服务器 4发送配对序列至所述 WebApp程序, 启动所述识读器 2和所述 WebApp程序之间的配对操作;  4) the network server 4 sends a pairing sequence to the WebApp program, and starts a pairing operation between the reader 2 and the WebApp program;
5 )所述 WebApp程序通过所述智能显示终端 5以视觉和 /或听觉方式引导用户完成配对 操作。 这里所说的操作包括: 按键操作、 体感操作、 点读码图操作等。  5) The WebApp program guides the user through the smart display terminal 5 to perform the pairing operation visually and/or audibly. The operations mentioned here include: button operation, somatosensory operation, dot reading code operation, and the like.
如图 7、图 8所示的首次设备配对操作还包括如下歩骤, 便周于后续的自动配对流程, 筒化再次使用时的操作:  The first device pairing operation shown in FIG. 7 and FIG. 8 further includes the following steps, which are used in the subsequent automatic matching process, and the operation when the re-use is used:
A)网络服务器 4为配对成功的 WebApp程序和识读器 2生成周于下次自动配对的凭证, 并将凭 数据的一部分发送给 WebAPp程序保存,剩下的部分发送给识读器 2保存, 网络服 务器 4保存两部分凭证数据之间的逻辑关系,用于实现下次 WebApp程序与识读器 2的自动 配对; A) The web server 4 generates a certificate for the successfully paired WebApp program and the reader 2 to be automatically paired next time, and sends a part of the data to the WebA P p program for saving, and the remaining part is sent to the reader 2 The network server 4 saves the logical relationship between the two parts of the voucher data for realizing the automatic matching of the next WebApp program and the reader 2;
B ) WebApp程序将收到的自动配对凭证数据通过 ίοαιί storage技术以识读器 2的设备 序列号为索引保存在 Web浏览器端; 识读器 2将收到的凭证数据保存在其内部私密的非易 失存储器中。  B) The WebApp program will receive the automatically paired voucher data through the ίοαιί storage technology and store the device serial number of the reader 2 as an index on the web browser; the reader 2 saves the received voucher data in its internal private In non-volatile memory.
所述 WebAPp程序与识读器 2之间的自动配对流程如图 9所示, 包括如下步骤: 1 ) 所述网络服务器 4为配对成功的所述 WebApp程序和识读器 2生成用于下次自动配 对的凭证数据, 并将该凭证数据连同所述识读器 2 的设备序列号保存在所述网络服务器 4 的数据库中, 同时将所述凭证数据发给所述 WebApp程序; The automatic matching process between the WebA P p program and the reader 2 is as shown in FIG. 9, and includes the following steps: 1) The network server 4 generates voucher data for the next automatic pairing for the successfully paired WebApp program and the reader 2, and saves the voucher data together with the device serial number of the reader 2 In the database of the network server 4, the voucher data is simultaneously sent to the WebApp program;
2 ) 所述 WebApp 程序将收到的所述凭证数据与所述识读器 2 的设备序列号通过所述 We 浏览器的本地存储功能保存在所述智能显示终端 5 ;  2) The WebApp program saves the received credential data and the device serial number of the reader 2 in the smart display terminal 5 through the local storage function of the We browser;
3 ) 再次启动所述 WebApp程序 ff†, 加载本地存储的所述识读器 2的设备序列号与凭证 数据, 并将它们发送给所述网络服务器 4;  3) restarting the WebApp program ff†, loading the locally stored device serial number and credential data of the reader 2, and sending them to the web server 4;
4) 所述网络服务器 4将收到的所述识读器 2的设备序列号与凭证数据和所述网络服务 器 4所保存的凭证数据连同所述识读器 2的设备序列号匹配;  4) the network server 4 matches the received device serial number of the reader 2 with the voucher data and the voucher data held by the network server 4 together with the device serial number of the reader 2;
5 ) 如果找到了匹配的数据库记录, 同日寸相同序列号的识读器 2又与网络服务器 4建立 了连接, 则网络服务器通 4知 WebApp程序和识读器 2自动配对成功。  5) If a matching database record is found, the reader 2 of the same serial number on the same day establishes a connection with the web server 4, and the web server knows that the WebApp program and the reader 2 are automatically paired successfully.
所述自动配对操作还可以是如下歩骤:  The automatic pairing operation may also be as follows:
1 ) 所述网络服务器 4为配对成功的所述 WebAPp程序和识读器 2生成用于 T次自动配 对的凭 ffi数据,并将所述凭证数据的一部分发送给所述 WebApp程序保存,剩下的另一部分 发送给所述识读器 2保存,所述网络服务器 4保存两部分凭证数据之间的逻辑关系,用于实 现所述 WebApp程序与识读器 2之间的自动配对: 1) the network server 4 generates the ffi data for the T-time automatic pairing for the successfully paired WebA Pp program and the reader 2, and sends a part of the voucher data to the WebApp program for saving, The remaining part is sent to the reader 2 for saving. The web server 4 maintains a logical relationship between the two parts of the voucher data for realizing automatic pairing between the WebApp program and the reader 2:
2) 所述 WebApp程序将收到的所述一部分凭证数据与所述识读器 2的设备序列号通过 所述 Web浏笕器的本地存储功能保存在所述智能显示终端 5 ;  2) The WebApp program saves the part of the voucher data and the device serial number of the reader 2 in the smart display terminal 5 through the local storage function of the web browser;
3 ) 所述 K读器 2将收到的所述另一部分凭证数据保存;  3) the K reader 2 saves the received other part of the voucher data;
4 )所述 WebApp程序再次启动时, 将所述识读器 2的设备序列号和所述凭证数据的一 部分发送给所述网络服务器 4;  4) when the WebApp program is started again, the device serial number of the reader 2 and a part of the credential data are sent to the network server 4;
5 )所述网络服务器将收到的所述识读器的设备序列号与所述凭 ffi数据的一部分和所述 网络服务器自己的数据库记录 ^配,如果找到了匹配的数据库记录,且具备相同设备序列号 并存储了所述另一部分凭证数据的识读器已与所述网络服务器建立了连接,则所述网络服务 器通知所述 WebApp程序和所述识读器自动配对成功。  5) the network server records the received device serial number of the reader with a portion of the ffi data and the database server's own database record, if a matching database record is found and has the same The device serial number and the reader storing the other portion of the credential data have established a connection with the web server, and the web server notifies the web app and the reader that the pairing is successful.
所述自动配对流程还可以如图 ίθ所示, 包括如下步骤:  The automatic matching process may also be as shown in FIG. 2, and includes the following steps:
1 ) 所述智能显示终端 5通过所述 URL地; 加载所述 WebApp程序;  1) the smart display terminal 5 passes the URL; loads the WebApp program;
2 )所述 WebApp程序自所述 URL地址解析出所述识读器 2的设备序列号, 以该设备序 列号为索引读取所述保存在所述智能显示终端 5的所述一部分凭 ¾E数,并发送至所述网络服 务器 4;  2) The WebApp program parses out the device serial number of the reader 2 from the URL address, and reads the part of the smart display terminal 5 that is stored in the smart display terminal 5 by using the device serial number as an index. And sent to the network server 4;
3 ) 所述网络服务器 4通过所述 WebApp程序提醒周户启动所述识读器 2, 并完成双向 身份认 i!E;  3) The web server 4 reminds the weekly user to start the reader 2 through the WebApp program, and completes the two-way identity recognition i!E;
4 ) 所述识读器 2将其所保存的所述另一部分凭证数据发送至所述网络服务器 4; 4) the reader 2 sends the other part of the voucher data saved to the network server 4;
5 ) 所述网络服务器 4利于其所保存的所述两部分凭证数据之间的逻辑关系来验证所述 来自所述 Web浏览器的所述一部分凭证数和来自所述识读器 2的所述另一部分凭证数据是 否匹配; 5) the network server 4 facilitates verifying the portion of the number of credentials from the web browser and the from the reader 2 by facilitating a logical relationship between the two pieces of credential data held by the web server 4 Whether another part of the voucher data matches;
6)所述网络服务器 4通过所述 WebApp程序在所述智能显示终端 5显示自动配对成功 或失畋提示。  6) The web server 4 displays an automatic pairing success or a missed prompt on the smart display terminal 5 through the WebApp program.
或者如下步骤:  Or the following steps:
ί ) 所述识读器 2启动并完成与所述网络服务器 4之间的双向身份 iA证;  ί) the reader 2 starts and completes a two-way identity iA certificate with the network server 4;
2 ) 所述识读器 2将其所保存的所述另一部分凭证数据发送至所述网络服务器 4; 2) the reader 2 sends the other part of the voucher data saved to the network server 4;
3 )所述智能显示终端 5通过所述 URL地址加载所述 WebApp程序, 并解析出所述识读 器 2的设备序列号;再以该设备序列号为索引读取所述保存在所述智能显示终端 5的所述一 部分凭证数, 并发送至所述网络服务器 4; 4) 所述网络服务器 4利用其所保存的所述两部分凭证数据之间的逻辑关系来验证所述 来自所述 Web浏览器的所述一部分凭证数和来自所述识读器 2的所述另一部分凭证数据是 否匹配; 3) The smart display terminal 5 loads the WebApp program by using the URL address, and parses out the device serial number of the reader 2; and reads the saved in the smart with the device serial number as an index. Displaying the part of the number of voucher of the terminal 5, and sending to the network server 4; 4) the network server 4 verifies the portion of the voucher from the web browser and the said from the reader 2 using a logical relationship between the two-part credential data held by the web server 4 Whether another part of the voucher data matches;
5 )所述网络服务器 4通过所述 WebApp程序在所述智能显示终端 5显示自动配对成功 或失畋提示。  5) The web server 4 displays an automatic pairing success or a missed prompt on the smart display terminal 5 through the WebApp program.
上述跨平台网络交互的实现方法中, 所述采用的 K读器 2包括:  In the implementation method of the foregoing cross-platform network interaction, the K reader 2 used includes:
图像读取和识别模块, 用于读取和识别码图- 通¾模块, 用于与所述网络服务器和 /或所述智能显示终端之间进行双向通信; 信息处理模块, 周于处理来自所述图像读取和识别模块和通讯模块的信息- 电源模块, 用于提供电能  An image reading and recognition module, configured to read and identify a code map-communication module, configured to perform two-way communication with the network server and/or the smart display terminal; and an information processing module Image reading and identification module and communication module information - power module for providing electrical energy
其中, 所述图像读取和识别模块可读取和识别隐形编码码图。 比较优选的一个实施方 式是: 所述识读器还包括存储模块, 用于存储认证信息和设备配对信息, 所述认证信息包括 所述识读器的设备序列号、私钥和公钥, 以及所述网络服务器的公钥, 用于所述识读器与所 要连接的网络服务器之间的双向认证,所述设备配对信息用于所述识读器与所述所要连接的 网络服务器之间的配对。  The image reading and recognition module can read and recognize the invisible code code map. A preferred embodiment is as follows: the reader further includes a storage module, configured to store authentication information and device pairing information, where the authentication information includes a device serial number, a private key, and a public key of the reader, and a public key of the network server, used for mutual authentication between the reader and a network server to be connected, the device pairing information being used between the reader and the network server to be connected pair.
进一歩优选的一个具体实施方式中, 所述识读器还包括控制模块、 传感器模块和功能 按键,所述控制模块^于将所述传感器模块采集到的信息经所述通讯模块发送至所要连接的 所述网络服务器,将所述功能按键的信息经所述控制模块发送至所要连接的所述网络服务器 或直接发送至所述 WebApp程序。  In a preferred embodiment, the reader further includes a control module, a sensor module, and a function button, and the control module sends the information collected by the sensor module to the desired connection via the communication module. The network server sends the information of the function button to the network server to be connected via the control module or directly to the WebApp program.
上述跨平台网络交互的实现方法中, 所采用的网络服务器 4包括: 资源存储模块和信 息转发模块, 所述资源存储模块, 用于存储媒体资源、游戏资源和 WebApp程序; 所述信息 转发模块用于将接收到的数据信息转发至 WebApp程序, 以实现对 WebApp程序的控制。 比较优选的一个实施方式是:所述资源存储模块还存储有用于对欲连接至该网络服务器的设 备进行身份认证的身汾认证数据。所述身份认证数据包括所述欲连接至该网络服务器的所述 识读器的设备序列号及其公钥。 所述 WebApp 程序除了接受上述信息转发模块的数据信息 外, 还用于和欲连接至所述网络服务器的所述识读器进行配对。  In the implementation method of the cross-platform network interaction, the network server 4 includes: a resource storage module and an information forwarding module, where the resource storage module is configured to store media resources, game resources, and a WebApp program; The data information received is forwarded to the WebApp program to implement control of the WebApp program. A preferred embodiment is that the resource storage module further stores physical authentication data for authenticating the device to be connected to the network server. The identity authentication data includes a device serial number of the reader to be connected to the network server and a public key thereof. In addition to receiving the data information of the information forwarding module, the WebApp program is also used to pair with the reader to be connected to the network server.
一个优选的实施方式中, 所述网络服务器 4还包括支付模块, ffl于创建支付帐号, 以 实现电子支付。 如图 所示, 是基于刮刮卡 (印刷有充值 Ρί 码码图, 并在充值 ΡίΝ码码 图上覆盖不透明保护层, 供用户购买, 在充值操作时用户需刮掉 ΡίΝ码码图上的不透明保 护层) 的充值支付流程, 包括如下步骤:  In a preferred embodiment, the network server 4 further includes a payment module, ffl, for creating a payment account to implement electronic payment. As shown in the figure, it is based on a scratch card (printed with a recharge code code map, and covered with an opaque protective layer on the recharge Ρ Ν Ν code pattern for the user to purchase, the user needs to scrape off the 码 Ν 码 code on the reload operation The recharge payment process of the opaque protection layer includes the following steps:
ί ) 在网络服务器的数据库中生成充值 PIN码与充值金额:  ί ) Generate recharge PIN and recharge amount in the database of the web server:
2 )启动识读器 2,等待识读器 2与网络服务器 4成功完成双向身 确认, 启动 WebApp 程序完成识读器 2与 WebApp程序的配对;  2) Start the reader 2, wait for the reader 2 and the web server 4 to successfully complete the two-way confirmation, and start the WebApp program to complete the pairing of the reader 2 with the WebApp program;
3 ) ^户用识读器 2点读 "开始充值码"(可以是任何形式的用于提示充值的码图), 识 读器 2将消息发送给网络服务器 4;  3) ^ household reader 2 point read "start recharge code" (can be any form of code map for prompt recharge), the reader 2 sends a message to the network server 4;
4 ) 网络服务器 4通知 WebApp程序显示识读充值 PIN码码图的提示: 如 "请点读充值 PIN码",也可通过识读器 2自身的显示器与振动等部件 (如果有的话)呈现网络服务器 4的反 馈);  4) The web server 4 notifies the WebApp program to display a prompt for reading the refill PIN code map: such as "please read the recharge PIN code", it can also be presented by the display device and vibration components (if any) of the reader 2 itself. Feedback from the web server 4);
5 ) 识读器顺序识读充值 PIN码码图, 并将识别到的 PIN码发送给网络服务器 4, 网 络服务器 4通知 WebApp程序显示 PI 码输入进度状态;  5) The reader sequentially reads the refill PIN code code map, and sends the recognized PIN code to the network server 4, and the network server 4 notifies the WebApp program to display the PI code input progress state;
6)网络服务器 4收到足够长度的 PiN码后或用户点读了表示 ΡίΝ码输入完毕的码图后, 在数据库中査找对应的数据库充值 PIN码记录:  6) After receiving the PiN code of sufficient length or the user clicks on the code map indicating that the Ρ Ν code has been input, the network server searches for the corresponding database refill PIN code record in the database:
7)确认数据库充值 PIN码记录是否存在并且未被充值过, 如是, 则修改该数据库充值 PI 码记录的状态, 标识其已经被充值, 同时, 将数据库充值 PIN码记录的充值金额加入所 述识读器绑定的充值账号, 并通过 WebApp程序显示充值成功信息; 如否, 则 WebApp程 序显示充值失败并报告原因 7) Confirm whether the database refill PIN code record exists and has not been recharged. If yes, modify the status of the database recharge PI code record, identify that it has been recharged, and add the recharge amount of the database recharge PIN code record. Describe the recharge account bound by the reader, and display the refill success message through the WebApp program; if not, the WebApp program displays the recharge failure and reports the reason
上述跨平台网络交互的实现方法中,所采用的智能显示终端 5可通过 Web浏览器联网, 该 Web浏览器支持 HTML5标准的 Websocket技术, 并可自所述跨平台网络交互的实现方 法中的网络服务器 4加载所需的 WebApp程序, 以进行资源展示和 /或交互。  In the implementation method of the cross-platform network interaction, the smart display terminal 5 used can be networked through a web browser, the web browser supports the HTML5 standard Websocket technology, and the network in the implementation method of the cross-platform network interaction Server 4 loads the required WebApp programs for resource presentation and/or interaction.
在一个优选的实施方式中, 所述智能显示终端 5还提供 WiFi热点, 所述识读器可通过 该 WIFI热点连接至网络 3。  In a preferred embodiment, the smart display terminal 5 further provides a WiFi hotspot, and the reader can connect to the network 3 through the WIFI hotspot.
另一个优选的实施方式中, 两者之间还可建立一个直接的 WebSocket连接, 并通过该 WebSocket连接进行双向通信。如图 12所示,是 WebApp程序与识读器 2建立直接 WebSocket 连接的流程:  In another preferred embodiment, a direct WebSocket connection can be established between the two, and the two-way communication is performed through the WebSocket connection. As shown in Figure 12, the process of establishing a direct WebSocket connection between the WebApp program and the reader 2:
I ) WebApp程序与识读器 2通过网络 3和网络服务器 4建立间接连接:  I) WebApp program and reader 2 establish an indirect connection through network 3 and web server 4:
2 )识读器 2启动内建的轻量级 WebSocket服务,将自己的 IP地址和 WebSocket服务端 口发送给网络服务器 4:  2) Reader 2 Launches the built-in lightweight WebSocket service and sends its own IP address and WebSocket service port to the web server 4:
3 ) 网络服务器 4将识读器 2的 IP地址和 WebSocket服务端口转发给 WebApp程序, WebApp程序尝试按收到的 ίΡ地址和 WebSocket服务端口建立 WebSocket连接;  3) The network server 4 forwards the IP address of the reader 2 and the WebSocket service port to the WebApp program, and the WebApp program attempts to establish a WebSocket connection according to the received address and the WebSocket service port;
4 ) 如连接成功, 则 WebApp程序与识读器 2之间不需要网络服务器 4处理的数据直接 通过此 WebSocket连接传递; 如连接不成功, 则 WebApp程序与识读器 2不能建立直接的 bSocket连接, 两者之间所有需要传递的数据全部经网络服务器 4中转。  4) If the connection is successful, the data that is not required by the web server 4 between the WebApp program and the reader 2 is directly transmitted through the WebSocket connection; if the connection is unsuccessful, the WebApp program and the reader 2 cannot establish a direct bSocket connection. All the data that needs to be transferred between the two is transferred through the network server 4.
如图 ί3所示, 是基于注册码 (将注册码对应的码图的方式印刷在刮刮卡上, 并覆盖不 透明保护层, 供用户购买注 卡, 使用时刮掉注册卡碼图上的不透明保护层, 露出注 码对 应的码图) 的 WebApp程序授权流程图, 包括如—F步骤:  As shown in Figure ί3, it is based on the registration code (printing the code map corresponding to the registration code on the scratch card, and covering the opaque protective layer for the user to purchase the note card, and scraping off the opacity on the registered card code map when using The protection layer, the code map corresponding to the code map corresponding to the note code), the authorization flow chart of the WebApp program, including the steps of -F:
ί ) 在服务器的数据库中为 Web浏览器应用程序生成注册码;  ί ) generate a registration code for the web browser application in the server's database;
2 )启动识读器 2,等待识读器 2与网络服务器 4成功完成双向身份确认后,启动 WebApp 程序, 完成识读器 2与 WebApp程序的配对;  2) Start the reader 2, wait for the reader 2 and the web server 4 to successfully complete the two-way identity confirmation, start the WebApp program, and complete the pairing of the reader 2 with the WebApp program;
3 )识读器 2点读 "开始注册", 识读器 2将消息发送给网络服务器 4, 网络服务器 4通 知 WebApp程序显示注册提示: "请点读注册码"(也可 '通过识读器 2自身的显示器与振动等 部件 (如果有的话)呈现网络服务器 4的反馈):  3) The reader reads "start registration" at 2 o'clock, the reader 2 sends a message to the web server 4, and the web server 4 notifies the web application to display the registration prompt: "Please read the registration code" (also "pass the reader" 2 own display and vibration components (if any) present feedback from web server 4):
4) 识读器 2按顺序点读充注册码码图, 并将识别到的注册码发送给网络服务器 4, 网 络服务器 4通知 WebApp程序显示注册碼输入进度状态:网络服务器 4收到足够长度的注册 码或用户点读了 "注通码输入完毕"码图后, 在数据库中査找对应的数据库注册码记录;  4) The reader 2 reads the registration code code map in order, and sends the recognized registration code to the network server 4, and the network server 4 notifies the WebApp program to display the registration code input progress state: the network server 4 receives a sufficient length. After the registration code or the user clicks the "pass-through code input completed" code map, the corresponding database registration code record is searched in the database;
5 ) 确 iA该记录是否存在并且未被注册过, 如存在且未被注册过, 则修改该数据库记录 的状态, 标识其已经被注册, 同时显示注册成功信息; 如不存在或存在但已被注册过, 则 WebApp程序显示注册失败并报告原因:  5) Confirm iA whether the record exists and has not been registered. If it exists and has not been registered, modify the status of the database record, identify that it has been registered, and display the registration success message; if it does not exist or exist, it has been After registering, the WebApp program shows that the registration failed and reported the reason:
6) 网络服务器 4通知 Web浏览器加载已注册的 WebAPp程序。 6) The web server 4 notifies the web browser to load the registered WebA P p program.
本发明至少有以下例举的几种操作方式:  The invention has at least the following modes of operation as exemplified:
操作方式一  Operation mode one
如图 ί4所示, 是识读器 2点读码图、 智能显示终端 5播放媒体的过程, 由网络网服务 器 4解析 ID生成媒体 URL的情况, 具体包括如下歩骤- ί ) 识读器 2开机建立与网络网服务器 4的连接, 并完成两者间的双向身份认证: As shown in FIG. ί4, it is a process of reading the code by the reader at 2 o'clock and the process of playing the media by the intelligent display terminal 5, and the network network server 4 parses the ID to generate the media URL, which specifically includes the following steps - ί) Boot to establish a connection with the network server 4, and complete the two-way identity authentication between the two:
2) 用户打开智能显示终端 5的 Web浏览器输入识读器 2机身外壳丄所刻写或印刷的 URL, 加载 WebApp程序; 2) The user opens the web browser of the smart display terminal 5, enters the URL of the reader 2, the body shell is written or printed, and loads the WebApp program;
3 ) WebApp程序建立到网络网服务器 4的 WebSocket连接, 完成与识读器 2之间的配 对;  3) The WebApp program establishes a WebSocket connection to the network server 4, and completes the matching with the reader 2;
3 ) 识读器 2点读码图, 并将识别到的 ID发给网络服务器 4, 网络网服务器解析 ID生 成媒体的 URL, 并将 URL通过 WebSocket连接发送给 WebApp程序; 3) The reader reads the code at 2 o'clock and sends the identified ID to the network server 4. The network server resolves the ID. The URL of the media, and send the URL to the WebApp program via a WebSocket connection;
4 ) WebApp程序收到 URL, 加载并播放媒体资源。  4) The WebApp program receives the URL, loads and plays the media resource.
操作方式二  Operation mode two
如图 15所示, 是识读器 2点读码图、 智能显示终端 5播放媒体的过程, 由 WebApp程 序解析 ID生成媒体 URL, WebApp程序与识读器 2没有建立直接 WebSocket连接的情况, 具体包括如下步骤:  As shown in FIG. 15, it is a process of reading the code at 2 points of the reader and playing the media by the intelligent display terminal 5. The URL is generated by the WebApp program parsing ID, and the WebApp program and the reader 2 do not establish a direct WebSocket connection. Including the following steps:
D 识读器 2开机建立与网络服务器 4的连接, 完成双向身份认证;  D reader 2 starts to establish a connection with the network server 4, completes the two-way identity authentication;
2) 智能显示终端 5的 Web浏览器输入识读器 2机身外壳上的 URL, Web浏览器加载 WebApp程序, WebApp程序建立到网络服务器 4的 WebSocket连接;  2) Intelligent display terminal 5 Web browser input reader 2 URL on the body shell, Web browser loads WebApp program, WebApp program establishes WebSocket connection to network server 4;
3 ) 识读器 2与 WebApp程序完成配对;  3) The reader 2 is paired with the WebApp program;
4 ) 识读器 2点读码图, 并将识别到的 ID发给网络服务器 4, 网络服务器 4将 ID转发 给 WebApp程序;  4) The reader reads the code map at 2 o'clock, and sends the identified ID to the network server 4, and the network server 4 forwards the ID to the WebApp program;
5 ) WebApp程序解析 ID生成媒体的 URL, WebApp程序根据 URL丛网络服务器 4加 载媒体并播放。  5) The WebApp program parses the URL of the ID generation media, and the WebApp program loads the media according to the URL cluster network server 4 and plays it.
操作方式三  Mode of operation three
如图 ί6所示, 是识读器 2点读码图、 智能显示终端 5播放媒体的过程, 由 WebApp程 序解析 ID生成媒体 URL, WebApp程序与识读器 2建立了直接 WebSocket连接的情况, 具体包括如下歩骤- As shown in FIG. ί6, it is a process of reading the code at 2 o'clock and the process of playing the media by the intelligent display terminal 5. The WebApp program parses the ID to generate the media URL, and the WebApp program and the reader 2 establish a direct WebSocket connection. Including the following steps -
1 ) 识读器开机建立与网络服务器 4的连接, 并完成双向身份认证; 1) The reader is turned on to establish a connection with the network server 4, and completes the two-way identity authentication;
2 ) 智能显示终端 5 自 Web浏览器输入识读器 2机身外壳上的 URL, 并加载 WebA p 程序, 通过 WebApp程序建立到网络服务器 4的 WebSockd连接;  2) Intelligent display terminal 5 Enter the URL on the body shell of the reader 2 from the web browser, and load the WebA p program to establish a WebSockd connection to the web server 4 through the WebApp program;
3 ) 识读器 2与 WebApp程序完成配对并成功建立直接的 WebSocket连接;  3) The reader 2 completes the pairing with the WebApp program and successfully establishes a direct WebSocket connection;
4) 识读器 2点读码图, 并将识别到的 ID发给 WebApp程序, WebApp程序解析 iD生 成媒体的 URL;  4) The reader reads the code map at 2 o'clock, and sends the identified ID to the WebApp program, and the WebApp program parses the URL of the iD generated media;
5 ) WebApp程序根据 URL丛网络服务器 4加载媒体并播放。  5) The WebApp program loads the media and plays it according to the URL cluster web server 4.
具体的操作过程描述如下- 用户在支持 HTML5的 \%bSocket技术的 Web浏览器中打开特定 URL的网页, 该网页 通过 WebSocket技术与网络服务器 4建立实 通讯连接,用户使用一种识读器 2点击印有特 定图形的实物表面, 所述 Web浏览器自动播放与所述特定图形相关联的多媒体内容和 /或游 戏。 其中, 所述特定 URL与所述识读器 2具有 ·一一对应的绑定关系, 为了方便使^, 所述 特定 URL刻印在所述识读器 2的外壳上显然, 所述特定 URL也可印刷在其它介质的表面, 只要能够肉 K识读即可。  The specific operation process is described as follows - the user opens a webpage of a specific URL in a web browser supporting HTML5's \%bSocket technology, and the webpage establishes a real communication connection with the web server 4 through WebSocket technology, and the user uses a type of reader 2 to click A physical surface printed with a particular graphic, the web browser automatically plays the multimedia content and/or game associated with the particular graphic. The specific URL has a one-to-one binding relationship with the reader 2, and for convenience, the specific URL is imprinted on the outer casing of the reader 2, and the specific URL is also It can be printed on the surface of other media, as long as it can be read by meat.
所述识读器 2与所述特定 URL的一一对应的绑定关系通过识读器 2的唯一序列号实现, 其实质是:通过识读器 2来访问网络资源时,某个特定的识读器只能通过网络服务器上特定 的服务地址 (该服务地址结合了识读器的设备序列号) 来请求启动 /执行所存储的媒体和游 戏等资源。这与所述特定 IJRL是否刻印在所述识读器 2的外壳上没有关系, 与 URL是否印 刷在其它介质表面也没有关系, 刻印或印剧仅是为了方便用户参考面已, 完全可以省略。  The one-to-one binding relationship of the reader 2 to the specific URL is implemented by the unique serial number of the reader 2, which is essentially: when the network resource is accessed by the reader 2, a specific knowledge The reader can only request to start/execute resources such as stored media and games through a specific service address on the web server that is combined with the device serial number of the reader. This has nothing to do with whether the particular IJRL is imprinted on the outer casing of the reader 2, and has nothing to do with whether the URL is printed on the surface of other media. The imprinting or printing is only for the convenience of the user's reference surface and can be omitted.
所述识读器具有可被网路服务器识别的唯一序列号, 该唯一序列号与所述特定 URL具 有-一一对应的绑定关系。所述识读器具有图像拍摄、 图像识别, 以及通讯功能, 通过拍摄所 述特定图形的图像, 再通过图像识别得到所述特定图形表示的对象 ID, 然后再将该对象 ID 发送给所述网络服务器,所述网络服务器根据 iD检索到对应的媒体发送给所述 Web浏览器 播放; 对于游戏功能, 所述网络服务器将 iD转发给所述 Web浏览器用于控制 Web浏览器 中运行游戏; 对于充值功能, 用户首先刮开代表充值功能的所述特定图形, 然后^所述设备 点击所述充值功能的特定图形, 所述设备获得对应 ID并将 ID发送给所述网络服务器实现 充值功能。 The reader has a unique serial number that can be recognized by the web server, and the unique serial number has a one-to-one binding relationship with the specific URL. The reader has image capturing, image recognition, and communication functions, and by capturing an image of the specific graphic, obtaining an object ID of the specific graphic representation by image recognition, and then transmitting the object ID to the network a server, the web server retrieves corresponding media according to the iD and sends the corresponding media to the web browser for playing; for the game function, the web server forwards the iD to the web browser for controlling the running of the game in the web browser; Function, the user first scratches the specific graphic representing the refill function, and then the device clicks on the specific graphic of the refill function, the device obtains the corresponding ID and sends the ID to the network server. Recharge function.
所述多媒体内容和游戏资源存储在所述网络服务器中,所述特定图形表示某对象的 iD, 该 ID与所述网络服务器中的媒体、 游戏的控制码一一对应。  The multimedia content and game resources are stored in the network server, and the specific graphic represents an iD of an object, and the ID is in one-to-one correspondence with media and game control codes in the network server.
所述识读器与网络服务器通过非对称加密算法进行身汾识别与加密通讯,所述识读器的 非对加密算法使用的私钥存储在内部私密的非易失存储器中,不可被其它设备读出, 从而避 免了被黑客伪造所述 K读器欺骗网络服务器的可能。  The reader and the network server perform body identification and encrypted communication through an asymmetric encryption algorithm, and the private key used by the non-pair encryption algorithm of the reader is stored in an internal private non-volatile memory, and cannot be used by other devices. Read out, thereby avoiding the possibility of being hacked by the hacker to spoof the web server.
所述设备与 WebApp程序的配对方法可举例并具体说明如下:  The method for pairing the device with the WebApp program can be exemplified and specifically described as follows:
配对方法 1 : 所述网络服务器产生一组随机字符显示在 WebAPp程序上, 用户顺序点击 印在实物丄的对应的所述特定图形完成登录, 用户每点击对一个所述特定图形, WebApp程 序给与正确的反馈显示, 按顺序点对所有所述特定图形后完成配对。 Pairing method 1: The web server generates a set of random characters displayed on the WebA Pp program, and the user sequentially clicks on the corresponding specific graphic printed on the physical object to complete the login, and the user clicks on each of the specific graphics, the WebApp program Give the correct feedback display, complete the pairing after all the specific graphics are clicked in order.
配对方法 2:所述网络服务器产生一组所述识读器按钮点按顺序并以图形的方式显示在 WebApp程序上, 用户根据 WebAp程序 p的提示顺序点按设备按钮, 用户每正确完成一次 操作 WebApp程序给与反馈显示, 完成所有的按钮操作后完成配对。  Pairing method 2: The web server generates a set of the reader buttons in a click order and graphically displays on the WebApp program, and the user clicks the device button according to the prompt sequence of the WebAp program p, and the user completes the operation correctly. The WebApp program gives feedback display, completes all button operations and completes pairing.
配对方法 3 : 所述网络服务器产生一组特定的手势动作并以图形的方式显示在 WebApp 程序上,用户根据 WebApp程序的图片或动囊提示手握所述识读器进行相应的手势动作,如 果 ffl户的手势动作与 WebApp程序提示的手势动作相同, 完成配对。  Pairing method 3: The web server generates a specific set of gesture actions and graphically displays on the WebApp program, and the user promptly holds the reader according to the picture of the WebApp program or the action capsule to perform corresponding gesture actions, if The gesture action of the ffl household is the same as the gesture action prompted by the WebApp program, and the pairing is completed.
所述设备与 WebApp程序配对信息的保存与自动配对方法:第一次配对成功后所述网络 服务器生产一串隨机字节, 同时将该隨机字节与所述设备唯一序列号存入数据库,并将该隨 机字节发送给 WebApp程序, WebApp程序通过 Web浏览器提供的 HTML5的 iocai storage 标准功能将该随机字符串存储在 Web浏览器所在操作系统的文件系统中。 WebApp程序被 关闭后重新打开, WebApp程序加载上次保存的所述随机字节串, 并将该字节串发送给所述 网络服务器,所述网络服务器从数据库检索到对应的所述设备唯一序列号,所述设备开机后 连接到所述网络服务器, 从而实现 WebApp程序与所属设备的自动配对。  The method for saving and automatically pairing the device with the WebApp program pairing information: after the first pairing is successful, the network server generates a string of random bytes, and simultaneously stores the random byte and the unique serial number of the device into the database. And sending the random byte to the WebApp program. The WebApp program stores the random string in the file system of the operating system of the web browser through the HTML5's iocai storage standard function provided by the web browser. After the WebApp program is closed and then reopened, the WebApp program loads the last saved random byte string, and sends the byte string to the network server, and the network server retrieves the corresponding unique sequence of the device from the database. No. The device is connected to the network server after being powered on, thereby realizing automatic matching of the WebApp program and the belonging device.
所述识读器存储有网络参数配置软件, 通过 USB将所述识读器与运行 Windows操作系 统的电脑连接后 Windows操作系统将所述识读器识别为 CD- ROM盘,并自动运行 CD-ROM 盘中的所述网络参数配置软件,用户通过所述网络参数配置软件配置网络参数, 网络参数修 改后自动存储在所述识读器内部私密的非易失存储器中,所述识读器内的通讯软件通过存储 的参数连接网络。  The reader stores a network parameter configuration software, and the USB operating system connects the reader to a computer running a Windows operating system via a USB, and the Windows operating system recognizes the reader as a CD-ROM disc and automatically runs the CD- The network parameter configuration software in the ROM disk, the user configures the network parameter through the network parameter configuration software, and the network parameter is automatically stored in the private non-volatile memory inside the reader, and the reader is in the reader. The communication software connects to the network through stored parameters.
所述识读器具有功能按键, 通过功能按键可以控制所述 WebApp 程序内的视频播放暂 停、 恢复、 退出, 以及所述 WebApp程序内的菜单功能的导航。所述识读器还内置陀螺仪传 感器和加速度传感器, CPU将采集到的陀螺仪传感器参数和加速度传感器参数发送到所述 网络服务器,所述网络服务器再将参数转发给 WebApp程序,实现交互式媒体播放与游戏控 牛 li。  The reader has a function button, and the function button can control the pause, resume, and exit of the video play in the WebApp program, and the navigation of the menu function in the WebApp program. The reader further includes a gyro sensor and an acceleration sensor, and the CPU sends the collected gyro sensor parameters and acceleration sensor parameters to the network server, and the network server forwards the parameters to the WebApp program to implement the interactive media. Play and game control cow li.
以下对用于上述跨平台网络交互的实现方法的系统进行具体的说明,以便更好的理解本 发明。  The system for implementing the cross-platform network interaction described above will be specifically described below for a better understanding of the present invention.
整个系统主要由印有码图的载体、 无线识读器、 网络服务器、 智能显示终端、 网络等五 个部分组成。  The whole system is mainly composed of five parts: a carrier with a code map, a wireless reader, a network server, an intelligent display terminal, and a network.
1、 印有码图的载体: 码图是根据被关联对象的 ID 生成的, 识读器拍摄码图的图像, 运行图像识别算法将对象 ID还原出来。 载体的形态包括所有可以印上所述码图的固体物体 的表面。  1. A carrier with a code map: The code map is generated according to the ID of the associated object, and the image of the code map is taken by the reader, and the image recognition algorithm is run to restore the object ID. The form of the carrier includes all surfaces of solid objects on which the code map can be printed.
2、 无线识读器由图像传感器、 图像识别模块(硬件或软件)、 CPU, 无线发射模块、 加 速度传感器、 重力传感器、 电子罗盘传感器、 震动机构、 功能按键、 USB 接□、 内部私密 的可读写非易失存储器、 外部只读存储器、 电池, 以及外壳等部分组成。 其中:  2, wireless reader by image sensor, image recognition module (hardware or software), CPU, wireless transmitter module, acceleration sensor, gravity sensor, electronic compass sensor, vibration mechanism, function buttons, USB interface, internal private readable Writes parts such as nonvolatile memory, external read-only memory, battery, and housing. among them:
无线发射模块的功能是连接到网络,实现无线识读器与网络服务器的双向通讯,根据应 用场景和硬件成本的不同考量, 无线模块连接到网络有多种实现方式, 包括 2G/3G/4G移动 蜂窝网数据通讯模块直接连接网络、 WiFi模块经 WiFi路由器连接网络、 蓝牙 /ZigBeeZ2.4G 无线模块连接到 TCP/IP网络适配器再经路由器连接网络等等。 The function of the wireless transmitting module is to connect to the network to realize two-way communication between the wireless reader and the network server. With different considerations of scenarios and hardware costs, wireless modules can be connected to the network in various ways, including 2G/3G/4G mobile cellular data communication modules directly connected to the network, WiFi modules connected via WiFi routers, Bluetooth/ZigBeeZ2.4G wireless The module is connected to a TCP/IP network adapter and then connected to the network via a router.
加速度传感器、重力传感器、 电子罗盘传感器产生的传感数据以及功能按键产生的事件 被 CPU采集, 经无线发射模块发送至网络服务器, 网络服务器再将这些传感数据和功能按 键产生的事件发送给 Web浏览器中运行的 WebApp程序, ^于控制媒体播放与游戏的运行。  Acceleration sensors, gravity sensors, sensor data generated by the electronic compass sensor, and events generated by the function buttons are collected by the CPU and sent to the network server via the wireless transmitting module. The network server then sends the events generated by the sensor data and function buttons to the Web. The WebApp program running in the browser, ^ controls the operation of media playback and games.
震动机构用于游戏的反馈, WebApp程序根据游戏的运行状态, 发送控制命令给无线识 读器, 控制震动机构的动诈。  The vibration mechanism is used for feedback of the game, and the WebApp program sends a control command to the wireless reader according to the running state of the game, and controls the fraud of the vibration mechanism.
USB 接口用于给电池充电, 连接电脑后, 外部只读存储器被识别为 CD-ROM 盘, CD-ROM盘存有设备的唯一序列号、 无线网络参数配置软件以及能让电脑自动运行无线网 络参数配置软件的 autorun脚本。 无线网络参数配置软件用于设置 WiFi无线网络参数, 参 数保存在内部私密的非易失存储器中。  The USB interface is used to charge the battery. After connecting to the computer, the external read-only memory is recognized as a CD-ROM disk. The CD-ROM disk has the unique serial number of the device, the wireless network parameter configuration software, and the wireless network parameter configuration that allows the computer to automatically run. The autorun script for the software. The wireless network parameter configuration software is used to set the WiFi wireless network parameters, and the parameters are stored in the internal private non-volatile memory.
内部私密的非易失存储器中还存储了网络服务器分发给无线识读器的私钥和公钥,以及 服务器的公钥。无线识读器登录到网络服务器需要傲双向身份认证,主要过程为服务器生成 "挑战"数据包发送给无线识读器, 无线识读器 J¾私钥对 "挑战"数据包签名后将签名结果 连同自身的设备唯一序列号一并返回给服务器,服务器周设备唯一序列号找到无线识读器的 公钥,并^其对收到的签名数据验签,服务器根据验签成功与否判断无线识读器的身汾是真 是还是伪造。 服务器完成对无线识读器的身汾认证后, 无线识读器生成 "挑战"数据包发送 给服务器, 服务器用自己的私要对"挑战"数据包签名并将结果返回给无线识读器, 无线识 读器 ffl服务器的公钥对收到的签名数据包验签,如果验签通过则无线识读器认为服务器不是 伪造的, 从面实现了双向身汾认 。  The private private non-volatile memory also stores the private and public keys that the web server distributes to the wireless reader, as well as the server's public key. Wireless readers need to be proud of two-way authentication when logging in to the network server. The main process is to send a "challenge" packet to the wireless reader. The wireless reader J3⁄4 private key signs the "challenge" packet and then signs the result together. The unique serial number of the device is returned to the server, the unique serial number of the server device is found to find the public key of the wireless reader, and the signature data is checked by the server, and the server determines the wireless reading according to the success or failure of the verification. Is the body of the device really or fake? After the server completes the authentication of the wireless reader, the wireless reader generates a "challenge" packet and sends it to the server. The server signs the "challenge" packet with its own private information and returns the result to the wireless reader. The public key of the wireless reader ffl server checks the received signature data packet. If the verification pass passes, the wireless reader considers that the server is not forged, and realizes the two-way recognition.
功能按键包括开 /关机键、 播放暂停 /恢复键、 方向导航键、 确认键以及返回键等等, 按 键动作被 CPU 检测到后将代表按键动作的消息转发给服务器, 服务器再将消息转发给 WebApp程序, 从实现对 WebApp程序的控制。  The function buttons include an on/off button, a play pause/resume button, a direction navigation button, a confirmation button, a return button, and the like. After the button is detected by the CPU, the message representing the button action is forwarded to the server, and the server forwards the message to the WebApp. Programs that implement control over WebApp programs.
图像传感器用于拍摄码图获得码图的图像,然后将图像交给图像识别模块(软件或硬件) 识别, 还原对象的 ID, 对象 ID经无线模块发送给服务器, 服务器根据该对象 ID准备好 Web/^pp程序将要获取的内容, 同时服务器将对象 ID转发给 WebApp程序, WebApp程序 的程序逻辑根据对象 iD生成特定的服务器请求, 或是加载媒体内容, 或是加载游戏等等„ 为了减轻用户的记忆负担,外壳上刻有一个 ffl于打开 WebApp程序的 URL地 ¾,该 URL 地址由 HTTP 服务器地址和标识该无线识读器的唯一序列号两部分组成, 例如 http://mprv.so/2013081800001 , 其中 "http://mprv.so/"是服务器的地址, "2013081800001 " 是无线识读器的唯一序列号, 在 Web浏览器中输入该 URL后 Web浏览器向服务器请求加 载网页, 服务器就知道 Web浏览器请求与设备序列号为 " 20i308 j 800001 "的无线识读器配 对。 在没有完成配对和建立连接前, 用于打开 WebApp程序的 URL地址也可以根据识别码 图后得到的网页的索引来获取,譬如:将所述网页的索引传送至识读器的名称空间服务地址 的服务器, 服务器解析所述网页的索引获得用于打开 WebApp程序的 URL地址并反馈给识 读器, 通过识读器的显示屏提示用户在 Web浏览器中手工输入所述 URL地址。采周该技术 方案,因为 WebApp程序需要通过服务器对所述网页的索引解析后才能得到网址面非直接关 联到媒体内容等, 因此能够防止钓鱼网站的欺骗。 当然, 用户也可通过其它方式进入所述 URL地; tiL 例如通过搜索引擎或任何其它网页所提供的链接进入。  The image sensor is used to capture the code image to obtain the image of the code image, and then the image is given to the image recognition module (software or hardware) for identification, the ID of the object is restored, and the object ID is sent to the server via the wireless module, and the server prepares the Web according to the object ID. /^pp program will get the content, and the server forwards the object ID to the WebApp program. The program logic of the WebApp program generates a specific server request according to the object iD, or loads the media content, or loads the game, etc. The memory burden, engraved with a ffl on the shell to open the URL of the WebApp program, the URL address consists of the HTTP server address and the unique serial number identifying the wireless reader, for example http://mprv.so/2013081800001 , where "http://mprv.so/" is the address of the server, and "2013081800001" is the unique serial number of the wireless reader. After entering the URL in the web browser, the web browser requests the server to load the web page, and the server Know that the web browser request is paired with the wireless reader with the device serial number "20i308 j 800001". Before pairing and establishing a connection, the URL address for opening the WebApp program can also be obtained according to the index of the webpage obtained after the identifier map, for example, the index of the webpage is transmitted to the server of the namespace service address of the reader. The server parses the index of the webpage to obtain a URL address for opening the webApp program and feeds back to the reader, and prompts the user to manually input the URL address in the web browser through the display screen of the reader. Because the WebApp program needs to analyze the index of the webpage through the server to obtain the webpage surface, which is not directly related to the media content, etc., thereby preventing fraudulent phishing websites. Of course, the user can also enter the URL by other means; tiL Enter, for example, through a link provided by a search engine or any other web page.
3、 网络服务器包括:  3. The network server includes:
a) 存储无线识读器的 (序列号、 公钥) 数据, 为无线识读器提供身份认证服务; b) 存储 Web页面、 WebApp程序、 媒体内容以及游戏资源, 并响应 Web浏览器对这 些资源的加载请求: 其中, WebAPp程序可存储在前述的 "所述识读器在互联网名称空间有 唯一对应的服务地址"相同的服务地址, 也可存储在网络服务器的其它服务地址, 只要在需 要 能够被智能显示终端的 Web浏览器加载 (或调用) 即可。 WebApp程序可看作是基于 网页技术开发实现特定功能的应用, 其包括但不限于媒体播放应周、游戏应用、在线支付应 用等。 a) storing the wireless reader's (serial number, public key) data, providing identity authentication services for the wireless reader; b) storing web pages, WebApp programs, media content, and game resources, and responding to these resources in response to a web browser Load request: where the WebA P p program can be stored in the aforementioned "The reader has in the Internet namespace" The only corresponding service address "same service address, can also be stored in other service addresses of the web server, as long as it needs to be able to be loaded (or called) by the web browser of the smart display terminal. The WebApp program can be regarded as a web-based page. The technology develops applications that implement specific functions, including but not limited to media playback, gaming applications, online payment applications, and the like.
c) 对 WebApp程序提供双向实时通讯基础服务;  c) provide two-way real-time communication basic services for WebApp programs;
d) 将识读器产生的数据 (包括传感器数据、 按键消息、 对象 iD) 转发给 WebApp程 序;  d) forward the data generated by the reader (including sensor data, button message, object iD) to the WebApp program;
e) 为 WebApp程序与识读器之间的首次配对提供交互操作服务;  e) providing interoperability services for the first pairing between the WebApp program and the reader;
f) 为 WebApp程序与识读器之间提供自动配对服务:  f) Provide automatic matching services between WebApp programs and readers:
g) 为无线识读器创建关联的支付账号,为无线识读器提供点读充值卡密码码图实现充 值的服务, 用户可用无线识读器关联的支付账号进行网上电子支付;  g) Create an associated payment account for the wireless reader, provide the wireless reader with a point-reading recharge card password code map to realize the recharge service, and the user can use the payment account associated with the wireless reader to perform online electronic payment;
h) 4、 智能显示终端:  h) 4, intelligent display terminal:
智能显示终端在系统中的作 ^是提供 Web浏览器的运行环境, 并为 Web浏览器提供连 接到网络的能力。 Web浏览器需支持 HTML5标准的 WebSod et技术, Web浏览器打开识读 器外壳上的 URL, Web浏览器从服务器加载 WebApp程序代码并运行 WebApp程序, WebApp 程序建立与服务器的 We Socket连接, 这样 WebApp程序和无线识读器通过服务器间接的 建立了双向实时通讯连接。  The intelligent display terminal in the system is to provide a running environment for the web browser and to provide the web browser with the ability to connect to the network. The Web browser needs to support the HTML5 standard WebSod et technology. The Web browser opens the URL on the reader shell. The Web browser loads the WebApp program code from the server and runs the WebApp program. The WebApp program establishes a We Socket connection with the server, so the WebApp The program and the wireless reader establish a two-way real-time communication connection indirectly through the server.
为了解决无线识读器与 WebApp程序之间经网络服务器间接通讯带来的延迟,无线识读 器内建一个支持 HTML5 WebSocket技术的轻量级服务, 并将自己在局域网内的 iP地址与 WebSocket服务端口经网络服务器转告 WebApp程序, WebApp程序根据该局域网内的 IP 地址与 WebSocket服务端口尝试新建一个 WebSocket连接, 如果新建 WebSockei连接成功, 则表明智能显示终端与无线识读器处于同一个局域网内,那么 WebApp程序与无线识读器之 间不需要通过服务器中转的数据^此 WebSocket连接传输, 从面减小了数据传输的延迟。  In order to solve the delay caused by the indirect communication between the wireless reader and the WebApp program via the network server, the wireless reader has built a lightweight service that supports HTML5 WebSocket technology, and has its own iP address and WebSocket service in the LAN. The port forwards the WebApp program via the web server, and the WebApp program attempts to create a new WebSocket connection according to the IP address in the local area network and the WebSocket service port. If the new WebSockei connection is successful, it indicates that the intelligent display terminal and the wireless reader are in the same local area network, then There is no need to transfer data between the WebApp program and the wireless reader through the server. This WebSocket connection reduces the delay of data transmission from the surface.
5、 网络  5, the network
连接无线识读器、 网络服务器、 智能显示终端的基础设施, 可以是现有的各种网络, 如 广域网和局域网等。  The infrastructure for connecting wireless readers, network servers, and intelligent display terminals can be existing networks such as wide area networks and local area networks.
需要说明的是, 以上各 i 图中, "服务器"和 "互联网服务器"均对应于各实施例中的 "网络服务器", "设备唯一序列号"对应于实施例中的 "设备序列号", " Web 浏览器"则 是运行于实施例中所述 "智能显示终端" 中的 Web浏览器, "WebApp"对应于实施例中的 "WebApp程序"。 另外, 各附图及实施例中提及的 "URL"是指 "在互联网名称空间的服 务地址" 中的一种, 本发明并不局限于 "URL"这种形式的服务地址。  It should be noted that, in the above i diagrams, the "server" and the "internet server" correspond to the "network server" in each embodiment, and the "device unique serial number" corresponds to the "device serial number" in the embodiment. The "Web browser" is a web browser running in the "smart display terminal" described in the embodiment, and "WebApp" corresponds to the "WebApp program" in the embodiment. Further, the "URL" mentioned in the drawings and the embodiments refers to "one of the service addresses in the Internet namespace", and the present invention is not limited to the service address of the form "URL".
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明, 不能认定本发 明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离 本发明构思的前提下, 做出若千等同替伐或明显变型, 而且性能或用途相同, 都应当视为属 于本发明的保护范围。  The above is a further detailed description of the present invention in conjunction with the specific preferred embodiments. It is not intended that the specific embodiments of the invention are limited to the description. For those skilled in the art to which the present invention pertains, it is considered that the invention is within the scope of protection of the present invention without departing from the spirit and scope of the invention. .

Claims

权 利 要 求 书  Claims
1、 一种跨平台网络交互的实现方法, 其特征在于: 该方法通过识读器读取和识别碼图 并借助于互联网来关联网络服务器中的资源,并在智能显示终端进行资源展示,所述智能显 示终端可通过所述互联网与所述网络服务器进行双向实时通信,所述识读器在互联网名称空 间有唯一对应的服务地址 A method for implementing cross-platform network interaction, characterized in that: the method reads and identifies a code map by a reader and associates resources in a network server by means of the Internet, and displays resources in the smart display terminal. The smart display terminal can perform bidirectional real-time communication with the web server through the internet, and the reader has a unique corresponding service address in the Internet namespace
2、 如权利要求 1所述的跨平台网络交互的实现方法, 其特征在于: 所述智能显示终端 可运行支持 HTML5 We Socket技术的 Web浏览器。  2. The method for implementing cross-platform network interaction according to claim 1, wherein: the smart display terminal can run a web browser supporting HTML5 We Socket technology.
3、 如权利要求 2所述的跨平台网络交互的实现方法, 其特征在于: 所述网络服务器可 提供可供所述智能显示终端加载的 WebApp程序, 该 WebApp程序还可与所述识读器进行 配对操作。  The method for implementing cross-platform network interaction according to claim 2, wherein: the network server can provide a WebApp program that can be loaded by the smart display terminal, and the WebApp program can also be used with the reader. Pairing.
4、 如权利要求 3所述的跨平台网络交互的实现方法, 其特征在 f: 所述 WebApp程序 可自适应不同尺寸.和/或操诈平台的终端类型。  4. The method for implementing cross-platform network interaction according to claim 3, wherein: f: said WebApp program can adapt terminal types of different sizes and/or fraudulent platforms.
5、 如权利要求 ί所述的跨平台网络交互的实现方法, 其特征在于: 所述码图为隐形编 码码图。  The method for implementing cross-platform network interaction according to claim λ, wherein: the code picture is an invisible code code picture.
6、 如权利要求 5所述的跨平台网络交互的实现方法, 其特征在于: 所述隐形编码码图 为 MPR码码图。  The method for implementing cross-platform network interaction according to claim 5, wherein: the invisible code code picture is an MPR code code picture.
7、 如权利要求 1所述的跨平台网络交互的实现方法, 其特征在于: 所述识读器通过移 动 3G网络、 4G网络或 WiFi热点连接至所述互联网。  7. The method for implementing cross-platform network interaction according to claim 1, wherein: the reader is connected to the Internet by using a mobile 3G network, a 4G network, or a WiFi hotspot.
8、 如权利要求〗所述的跨平台网络交互的实现方法, 其特征在于: 所述智能显示终端 还为所述识读器提供周于连接至所述互联网的 WIFI热点, 所述识读器通过该 WIFI热点连 接至所述互联网。  The method for implementing the cross-platform network interaction according to the claim, wherein the smart display terminal further provides the reader with a WIFI hotspot connected to the Internet, the reader Connect to the internet through the WIFI hotspot.
9、 如权利要求 1所述的跨平台网络交互的实现方法, 其特征在于: 所述识读器采用蓝 牙、 ZigBee或 2.4G无线模块与适配器无线连接, 并通过所述适配器连接至所述互联网。  9. The method for implementing cross-platform network interaction according to claim 1, wherein: the reader is wirelessly connected to the adapter by using a Bluetooth, ZigBee or 2.4G wireless module, and is connected to the Internet through the adapter. .
10、如权利要求 6或 7或 8或 9所述的跨平台网络交互的实现方法, 其特征在于: 所述 识读器内建有 WebSockd服务, 所述智能显示终端通过所述 WebApp程序、 所述识读器的 IP地址和 WebSocket服务端口建立 WebSocket连接, 并通过该 WebSocket连接与所述识读 器进行双向通信, 以传递无需经过所述网络服务器处理的数据信息。  The method for implementing cross-platform network interaction according to claim 6 or 7 or 8 or 9, wherein: the reader has a WebSockd service built therein, and the smart display terminal passes the WebApp program and the The IP address of the reader and the WebSocket service port establish a WebSocket connection, and communicate with the reader through the WebSocket connection to transmit data information that does not need to be processed by the network server.
I K如权利要求 2所述的跨平台网络交互的实现方法, 其特征在 f: 在所述识读器与所 述网络服务器中的资源建立关联之前还进行双向身汾验证和设备配对操作。  The method for implementing cross-platform network interaction according to claim 2, wherein f: performing two-way authentication and device pairing operations before the reader establishes association with resources in the web server.
ί2, 如权利要求 U所述的跨平台网络交互的实现方法, 其特征在于, 所述双向身份 iA 证操作具体包括如下步骤 - The method for implementing the cross-platform network interaction according to claim U, wherein the two-way identity iA certificate operation specifically includes the following steps -
1 ) 所述网络服务器对所述识读器进行身粉认 ¾E; 1) the network server performs a body recognition on the reader;
1.1 ) 所述网络服务器接收所述识读器的设备序列号;  1.1) the network server receives a device serial number of the reader;
1.2) 确认所述设备序列号后生成 "挑战"数据包, 并发送至所述识读器;  1.2) After the device serial number is confirmed, a "challenge" data packet is generated and sent to the reader;
1.3 ) 接收来自所述识读器的 "应答"数据包, 并进行验签操作;  1.3) receiving a "response" packet from the reader and performing an inspection operation;
1.4) 返回验签信息至所述识读器, 完成对所述识读器的身份认证;  1.4) returning the verification information to the reader to complete the identity authentication of the reader;
2, ) 所述识读器对所述网络服务器进行身份认证;  2)) the reader performs identity authentication on the network server;
2.1 ) 所述识读器生成 "挑战"数据包, 并发送至所述网络服务器;  2.1) the reader generates a "challenge" data packet and sends it to the network server;
2.2) 接收来自所述网络服务器的 "应答"数据包, 并进行验签操作;  2.2) receiving a "response" packet from the web server and performing an authentication operation;
2.3 ) 返回验签信息至所述网络服务器, 完成对所述网络服务器的身粉认证„  2.3) returning the verification information to the network server, completing the body authentication of the network server
13、 如权利要求 ί ί所述的跨平台网络交互的实现方法, 其特征在于, 所述设备配对操 诈具体包括如下歩骤:  The method for implementing cross-platform network interaction according to claim 355, wherein the device pairing operation specifically includes the following steps:
1 ) 所述智能显示终端通过所述名称空间的服务地 ¾加载所述 WebApp程序;  1) the smart display terminal loads the WebApp program through a service location of the namespace;
2 ) 所述网络服务器自所述名称空间的服务地址提取设备序列号; 3 ) 所述网络服务器通过所述 WebApp程序提示启动所述识读器; 2) the network server extracts a device serial number from a service address of the namespace; 3) the network server prompts to start the reader through the WebApp program prompt;
4) 所述识读器启动并连接至所述网络服务器, 完成双向身粉认证;  4) the reader starts and connects to the network server to complete two-way body powder authentication;
5 ) 所述网络服务器发送配对操作指令至所述 WebApp 程序, 启动所述识读器和所述 WebApp程序之间的配对操作;  5) the network server sends a pairing operation instruction to the WebApp program, and starts a pairing operation between the reader and the WebApp program;
6)所述 WebApp程序通过所述智能显示终端以视觉和 /或听觉方式引导用户完成配对操 作。  6) The WebApp program guides the user through the intelligent display terminal to perform the pairing operation visually and/or audibly.
14、 如权利要求 i i所述的跨平台网络交互的实现方法, 其特征在于, 所述设备配对操 诈具体包括如下歩骤:  The method for implementing cross-platform network interaction according to claim i, wherein the device pairing operation specifically includes the following steps:
1 ) 所述识读器启动并连接至所述网络服务器, 完成双向身汾认证;  1) the reader starts and connects to the network server to complete two-way authentication;
2 )所述智能显示终端的 Web浏览器通过所述名称空间的服务地址加载所述 WebApp程 序- 2) The web browser of the smart display terminal loads the WebApp program by using the service address of the namespace -
3 ) 所述网络服务器自所述名称空间的服务地址提取设备序列号; 3) the network server extracts a device serial number from a service address of the namespace;
4) 并发送配对操作序列至所述 WebApp程序, 启动所述识读器和所述 WebApp程序之 间的配对操作;  4) and sending a pairing operation sequence to the WebApp program, starting a pairing operation between the reader and the WebApp program;
5 )所述 WebApp程序通过所述智能显示终端以视觉和 /或听觉方式引导用户完成配对操 作。  5) The WebApp program guides the user through the intelligent display terminal to perform the pairing operation visually and/or audibly.
15、如权利要求 13或 i4所述的跨平台网络交互的实现方法, 其特征在于, 所述设备配 对操作还包括如下步骤, 用于首次配对之后的自动配对操作:  The method for implementing cross-platform network interaction according to claim 13 or i4, wherein the device matching operation further comprises the following steps, the automatic pairing operation after the first pairing:
1 ) 所述网络服务器为配对成功的所述 WebApp程序和识读器生成用于下次自动配对的 凭证数据,并将所述凭证数据的一部分发送给所述 WebApp程序保存, 另一部分发送给所述 识读器保存, 所述网络服务器保存两部分凭证数据之间的逻辑关系, 用于实现所述 WebApp 程序与识读器之间的自动配对;  1) the network server generates credential data for the next automatic pairing for the successfully paired WebApp program and the reader, and sends a part of the credential data to the WebApp program for saving, and another part to the website The reader saves, the network server saves a logical relationship between the two parts of the voucher data, and is used to implement automatic matching between the WebApp program and the reader;
2 ) 所述 WebApp程序将收到的所述一部分凭证数与所述识读器的设备序列号通过所述 We 浏览器的本地存储功能保存在所述智能显示终端;  2) the part of the voucher received by the WebApp program and the device serial number of the reader are saved in the smart display terminal by using a local storage function of the We browser;
3 ) 所述识读器将收到的所述另一部分凭证数据保存在内部私密的非易失存储器中。  3) The reader saves the received further portion of the voucher data in an internal private non-volatile memory.
16、 如权利要求 15所述的跨平台网络交互的实现方法, 其特征在于, 所述自动配对包 括如下步骤:  The method for implementing cross-platform network interaction according to claim 15, wherein the automatic pairing comprises the following steps:
1 ) 所述智能显示终端通过所述名称空间的服务地址加载所述 WebApp程序;  1) the smart display terminal loads the WebApp program by using a service address of the namespace;
2 )所述网络服务器接收所述 Web浏览器提交的所述名称空间的服务地址请求, ^所述 名称空间的服务地址中提取所述识读器的设备序列号并通过 WebSocket发送给所述 WebApp 程序, 或将所述设备序列号嵌在所述 WebApp程序内;  2) the network server receives a service address request of the namespace submitted by the web browser, and extracts a device serial number of the reader from the service address of the namespace and sends the device serial number to the webApp through a WebSocket a program, or embedding the device serial number in the WebApp program;
3 ) 所述网络服务器通过所述 WebApp程序提醒用户启动所述识读器, 并完成双向身粉 认 ¾E;  3) the web server reminds the user to start the reader through the WebApp program, and completes the two-way body recognition 3⁄4E;
4) 所述识读器将其所保存的所述另一部分凭证数据发送至所述网络服务器;  4) the reader sends the other part of the voucher data saved by the reader to the network server;
5 ) 所述网络服务器利用其所保存的所述两部分凭证数据之间的逻辑关系来验证所述来 自所述 Web浏览器的所述一部分凭 ¾E数和来自所述识读器的所述另一部分凭证数据是否^ 配;  5) the network server verifies the portion of the web browser from the web browser and the other from the reader using a logical relationship between the two portions of credential data held by the web server Whether part of the voucher data is matched;
6) 所述网络服务器通过所述 WebApp程序在所述智能显示终端显示自动配对成功或失 畋提示。  6) The web server displays an automatic pairing success or a failure prompt on the smart display terminal by using the WebApp program.
ί7、 如权利要求 15所述的跨平台网络交互的实现方法, 其特征在于, 所述自动配对包 括如下歩骤:  The method for implementing cross-platform network interaction according to claim 15, wherein the automatic matching comprises the following steps:
1 ) 所述识读器启动并完成与所述网络服务器之间的双向身汾认证;  1) the reader starts and completes two-way authentication with the network server;
2) 所述识读器将其所保存的所述另一部分凭证数据发送至所述网络服务器;  2) the reader sends the other part of the voucher data saved by the reader to the network server;
3 ) 所述智能显示终端通过所述名称空间的服务地 ¾加载所述 WebApp程序, 并解析出 所述识读器的设备序列号;再以该设备序列号为索引读取所述保存在所述智能显示终端的所 述一部分凭证数, 并发送至所述网络服务器; 3) the smart display terminal loads the WebApp program through the service area of the namespace, and parses out The device serial number of the reader; the part of the number of the voucher stored in the smart display terminal is read by the device serial number as an index, and sent to the network server;
4) 所述网络服务器利用其所保存的所述两部分凭证数据之间的逻辑关系来验证所述来 自所述 Web浏览器的所述一部分凭证数和来自所述识读器的所述另一部分凭证数据是否匹 配;  4) the network server verifies the portion of the number of credentials from the web browser and the other portion from the reader using a logical relationship between the two portions of credential data held by the web server Whether the voucher data matches;
5 ) 所述网络服务器通过所述 WebApp程序在所述智能显示终端显示自动配对成功或失 败提示。  5) The network server displays an automatic pairing success or failure prompt on the smart display terminal by using the WebApp program.
18、 如权利要求 U所述的跨平台网络交互的实现方法, 其特征在于, 所述设备配对操 作包括如下步骤:  18. The method for implementing cross-platform network interaction according to claim U, wherein the device pairing operation comprises the following steps:
1 ) 所述网络服务器为配对成功的所述 WebApp程序和识读器生成用于下次自动配对的 凭证数据, 并将该凭 ¾E数据连同所述识读器的设备序列号保存在所述网络服务器的数据库 中, 同 将所述凭证数据发给所述 WebApp程序;  1) the network server generates credential data for the next automatic pairing for the successfully paired WebApp program and the reader, and saves the GUI data along with the device serial number of the reader in the network Sending the voucher data to the WebApp program in the database of the server;
2 )所述 ebApp程序将收到的所述凭证数据与所述识读器的设备序列号通过所述 Web 浏览器的本地存储功能保存在所述智能显示终端;  2) the ebApp program saves the received credential data and the device serial number of the reader to the smart display terminal through a local storage function of the web browser;
3 ) 再次启动所述 WebApp程序 , 加载本地存储的所述识读器的设备序列号与凭证数 据, 并将它们发送给所述网络服务器;  3) restarting the WebApp program, loading the device serial number and the credential data of the locally stored reader, and transmitting them to the web server;
4) 所述网络服务器将收到的所述识读器的设备序列号与凭证数据和所述网络服务器所 保存的凭证数据连同所述识读器的设备序列号匹配;  4) the network server matches the received device serial number of the reader with the credential data and the credential data saved by the web server together with the device serial number of the reader;
5 ) 如果找到了匹配的数据库记录, 同时相同序列号的识读器又与服务器建立了连接, 则服务器通知 WebApp程序和识读器自动配对成功。  5) If a matching database record is found and the reader of the same serial number establishes a connection with the server, the server notifies the WebApp program and the reader that the pairing is successful.
19、 如权利要求 i2或 13或 14所述的跨平台网络交互的实现方法, 其特征在于包括如 下歩骤:  19. The method for implementing cross-platform network interaction according to claim i2 or 13 or 14, wherein the method comprises the following steps:
1 ) 在所述网络服务器的数据库中生成充值 ΡίΝ码与充值金额;  1) generating a recharge value and a recharge amount in a database of the web server;
2 ) 所述识读器启动, 完成其与所述网络服务器之间的双向身份确认, 以及其与所述 WebApp程序的配对;  2) the reader is activated to complete its two-way identity confirmation with the web server, and its pairing with the web application program;
3 ) 所述识读器识读 ^于提示充值的码图, 并将消息发送给所述网络服务器;  3) the reader reads the code map of the prompt recharge, and sends the message to the network server;
4)所述网络服务器通过所述 WebApp程序或所述识读器自身的显示器识读充值 PIN码 码图的提示;  4) the network server reads a prompt for recharging the PIN code pattern through the WebApp program or the display of the reader itself;
5 )所述识读器顺序识读所述充值 PIN码码图, 并将识别到的 PIN码发送给所述网络服 务器, 通过所述 WebApp程序显示 PIN码输入进度;  5) the reader sequentially reads the refill PIN code code map, and sends the identified PIN code to the network server, and displays the PIN code input progress by using the WebApp program;
6)所述网络服务器收到足够长度的 PIN码或所述识读器识读了表示 PIN码输入完毕的 码图后, 在数据库中查找对应的数据库充值 ΡίΝ码记录;  6) The network server receives a PIN code of sufficient length or the reader reads a code pattern indicating that the PIN code is input, and searches for a corresponding database recharge Ρ Ν code record in the database;
7) 确认数据库充值 PIN码记录是否存在并且未被充值过, 如是, 则修改该数据库充值 PIN码记录的状态, 标识其已经被充值, 同^, 将数据库充值 PIN码记录的充值金额加入所 述识读器绑定的充值账号, 并通过 WebApp程序显示充值成功信息; 如否, 则通过 WebAPp 程序显示充值失败并报告原因。 7) Confirm whether the database refill PIN code record exists and has not been recharged. If yes, modify the status of the database refill PIN code record, identify that it has been recharged, and add the recharge amount of the database refill PIN code record. The recharge account bound to the reader, and the refill success message is displayed through the WebApp program; if not, the recharge failure is displayed and the reason is reported through the WebA P p program.
20、如权利要求 7或 8所述的跨平台网络交互的实现方法, 其特征在 f, 所述识读器通 过 WIFI热点连接至所述互联网时的 WiFi网络参数配置包括如下步骤:  The method for implementing cross-platform network interaction according to claim 7 or 8, wherein the configuration of the WiFi network parameter when the reader is connected to the Internet via the WIFI hotspot comprises the following steps:
1 ) 所述识读器具有 WiFi功能, 可通过 USB连接电脑, 并被识别成一个 "光盘"; 1) The reader has a WiFi function, can be connected to a computer via USB, and is recognized as a "disc";
2) 所述 "光盘" 中的 automn脚本启动 WiK网络参数配置程序, 完成 WiFi网络参数 配置; 2) The automn script in the "disc" starts the WiK network parameter configuration program to complete the WiFi network parameter configuration;
3 ) 保存所述己配置的 WiFi网络参数到所述识读器内部私密的非易失存储器中。  3) Saving the configured WiFi network parameters into a private non-volatile memory inside the reader.
21、 一种识读器, ^于如权利要求 1-20任一项所述的跨平台网络交互的实现方法中, 其特征在于包括: 图像读取和识别模块, 用于读取和识别码图: A method for implementing cross-platform network interaction according to any one of claims 1 to 20, characterized in that it comprises: An image reading and recognition module for reading and identifying code patterns:
通讯模块, ^于与所述网络服务器和 /或所述智能显示终端的 Web 浏览器所加载的 WebApp程序之间进行双向通信:  a communication module, wherein two-way communication is performed between the web application loaded by the web server and/or the web browser of the smart display terminal:
信息处理模块, ^于处理来自所述图像读取和识别模块和通¾模块的信息; 电源模块, 用于提供电能。  An information processing module, ^ for processing information from the image reading and recognition module and the communication module; and a power module for providing electrical energy.
22、 如权利要求 2 所述的识读器, 其特征在于: 所述图像读取和识别模块可读取和识 别隐形编码码图。  22. The reader of claim 2 wherein: said image reading and recognition module reads and identifies the invisible code pattern.
23、 如权利要求 2i所述的识读器, 其特征在于: 所述识读器还包括存储模块, ^于存 储认 ffi信息和设备配对信息,所述认 ffi信息用于所述识读器与所要连接的网络服务器之间的 双向认证, 所述设备配对信息用于所述识读器与所述所要连接的网络服务器之间的配对 The reader according to claim 2, wherein: the reader further comprises a storage module, wherein the ffi information and the device pairing information are stored, and the ffi information is used for the reader. Two-way authentication with a network server to be connected, the device pairing information being used for pairing between the reader and the network server to be connected
24、 如权利耍求 23所述的识读器, 其特征在于: 所述认证信息包括所述识读器的设备 序列号、 私钥和公钥, 以及所述网络服务器的公钥。 24. The reader of claim 23, wherein: said authentication information comprises a device serial number of said reader, a private key and a public key, and a public key of said network server.
25、 如权利要求 21所述的识读器, 其特征在于: 所述识读器还包括控制模块、 传感器 模块和功能按键,所述控制模块用于将所述传感器模块采集到的信息经所述通讯模块发送至 所要连接的所述网络服务器,将所述功能按键的信息经所述控制模块发送至所要连接的所述 网络服务器或直接发送至所述 WebApp程序。  The reader of claim 21, wherein: the reader further comprises a control module, a sensor module and a function button, wherein the control module is configured to collect information collected by the sensor module. The communication module is sent to the network server to be connected, and the information of the function button is sent to the network server to be connected via the control module or directly to the WebApp program.
26、 一种网络服务器, ^于如权利要求 任一项所述的跨平台网络交互的实现方法 中, 其特征在于包括: 资源存储模块、 资源数据交换模块和信息转发模块; 所述资源存储模 块 ^于存储媒体资源、游戏资源和 WebApp程序,所述资源交换模块 ^于与第三方数据库系 统进行资源数据交换,所述信息转发模块用于将接收到的数据信息转发至 WebApp程序, 以 实现对 WebApp程序的控制。  A network server, the method for implementing a cross-platform network interaction according to any one of the preceding claims, comprising: a resource storage module, a resource data exchange module, and an information forwarding module; In the storage media resource, the game resource, and the WebApp program, the resource exchange module performs resource data exchange with a third-party database system, and the information forwarding module is configured to forward the received data information to the WebApp program to implement Control of the WebApp program.
27、 如权利要求 26所述的网络服务器, 其特征在于: 所述资源存储模块还存储有用于 对欲连接至该网络服务器的设备进行身份认证的身份认证数据。  27. The network server according to claim 26, wherein: said resource storage module further stores identity authentication data for authenticating a device to be connected to the network server.
28、 如权利要求 27所述的网络服务器, 其特征在 f : 所述身份认证数据包括所述欲连 接至该网络服务器的所述识读器的设备序列号及其公钥。  28. The network server of claim 27, wherein: said identity authentication data comprises a device serial number of said reader to be connected to said network server and a public key thereof.
29、 如权利要求 26所述的网络服务器, 其特征在于: 所述 WebApp程序还 ^于和欲连 接至所述网络服务器的所述识读器进行配对。  29. The network server of claim 26, wherein: said WebApp program is further paired with said reader to be connected to said network server.
-; 5 - -; 5 -
PCT/CN2014/081670 2013-07-05 2014-07-04 Cross-platform network interaction method, reader, and network server therefor WO2015000439A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310282622.3A CN103414746B (en) 2013-07-05 2013-07-05 Realization method of cross-platform network interaction, reader and network server
CN201310282622.3 2013-07-05

Publications (1)

Publication Number Publication Date
WO2015000439A1 true WO2015000439A1 (en) 2015-01-08

Family

ID=49607732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081670 WO2015000439A1 (en) 2013-07-05 2014-07-04 Cross-platform network interaction method, reader, and network server therefor

Country Status (2)

Country Link
CN (1) CN103414746B (en)
WO (1) WO2015000439A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105142011A (en) * 2015-08-12 2015-12-09 青岛海信电器股份有限公司 Web-based television terminal multi-screen interaction method and device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228080B (en) * 2014-06-27 2018-12-07 上海视九信息科技有限公司 Multi-screen interaction method, system and browser
KR102335007B1 (en) * 2015-04-01 2021-12-06 삼성전자주식회사 Method and device for transmitting/receiving information in a broadcating system
US9967244B2 (en) * 2015-10-14 2018-05-08 Microsoft Technology Licensing, Llc Multi-factor user authentication framework using asymmetric key
CN105554148A (en) * 2015-12-30 2016-05-04 上海爱阅家教育科技有限公司 Automatic program updating device and method of wireless reading pen
US10573144B2 (en) 2016-10-10 2020-02-25 Netgear, Inc. Changing topology in a wireless network
CN106657370B (en) * 2017-01-03 2019-08-30 腾讯科技(深圳)有限公司 Data transmission method and device
KR20180081390A (en) * 2017-01-06 2018-07-16 삼성전자주식회사 Image display device and operating method for the same
CN108877327A (en) * 2018-06-29 2018-11-23 胡张容 A kind of intelligent point-reading identifying system
CN111352890A (en) * 2018-12-20 2020-06-30 安徽蓁叶文化科技有限公司 Touch reader based on optical image recognition technology
CN112395588A (en) * 2020-11-11 2021-02-23 惠州市森叶五金电子有限公司 Bidirectional identification solution and system based on network identification

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005332353A (en) * 2004-05-21 2005-12-02 P S P:Kk System for connecting to home page from bar code reader attached to cellular phone
CN101714154A (en) * 2009-08-14 2010-05-26 中电天讯信息技术(北京)有限公司 Method and system for carrying out interactive operation on server by utilizing comprehensive identification equipment
CN102568268A (en) * 2012-01-16 2012-07-11 南京鑫岳教育软件有限公司 Interaction system based on click-reading technology, and implementation method for interaction system
CN103136344A (en) * 2013-02-05 2013-06-05 天津瑞德电子有限公司 Multi-dimensional fast and high-reliability redundancy search method based on massive short videos of paper publications
CN103824209A (en) * 2014-02-10 2014-05-28 深圳市天朗时代科技有限公司 Charging processing method and system for internet sales

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075874B (en) * 2007-06-28 2010-06-02 腾讯科技(深圳)有限公司 Certifying method and system
JP2011243075A (en) * 2010-05-20 2011-12-01 Ssd Co Ltd Code reader, code processing method and computer program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005332353A (en) * 2004-05-21 2005-12-02 P S P:Kk System for connecting to home page from bar code reader attached to cellular phone
CN101714154A (en) * 2009-08-14 2010-05-26 中电天讯信息技术(北京)有限公司 Method and system for carrying out interactive operation on server by utilizing comprehensive identification equipment
CN102568268A (en) * 2012-01-16 2012-07-11 南京鑫岳教育软件有限公司 Interaction system based on click-reading technology, and implementation method for interaction system
CN103136344A (en) * 2013-02-05 2013-06-05 天津瑞德电子有限公司 Multi-dimensional fast and high-reliability redundancy search method based on massive short videos of paper publications
CN103824209A (en) * 2014-02-10 2014-05-28 深圳市天朗时代科技有限公司 Charging processing method and system for internet sales

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105142011A (en) * 2015-08-12 2015-12-09 青岛海信电器股份有限公司 Web-based television terminal multi-screen interaction method and device

Also Published As

Publication number Publication date
CN103414746B (en) 2017-04-12
CN103414746A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
WO2015000439A1 (en) Cross-platform network interaction method, reader, and network server therefor
CN104040521B (en) Biological characteristic cloud communication and data move
JP6122028B2 (en) Controlling public display with personal devices
US20180262388A1 (en) Remote device deployment
JP6064050B2 (en) Router access control method, router access control apparatus, and network system
CN103155513B (en) Accelerate the method and apparatus of certification
WO2017193741A1 (en) Payment authentication method, apparatus and system for onboard terminal
US9635018B2 (en) User identity verification method and system, password protection apparatus and storage medium
US20150319173A1 (en) Co-verification method, two dimensional code generation method, and device and system therefor
EP3401864A1 (en) Method for selecting transaction application, and terminal
CN104903880A (en) Unified communications with a cloud client device
CN102870101A (en) Concurrent access to memory pool shared between block access device and graph access device
WO2017185610A1 (en) Intelligent terminal, remote controller and payment method for intelligent terminal
CN106534072A (en) User information authorization method, apparatus, equipment and system
CN101640010A (en) LED display screen system based on mobile device remote control and communication method thereof
TW201101192A (en) Method and system for smart card virtualization
US20230353555A1 (en) Iot device and method for onboarding iot device to server
CN105657468A (en) FIDO remote controller, television payment system and television payment method
JP2008146363A (en) Authentication method in computer network
US20100248841A1 (en) System and device enabling pc-specific online games on mobile phones
CN107909682A (en) A kind of access control method, device and antitheft door
WO2015070593A1 (en) Method, device and system for on-line payment information transmission
WO2019153975A1 (en) Resource transfer method based on near field communication
JP5265658B2 (en) Login authentication apparatus, login authentication method and program
KR101215927B1 (en) Apparatus and method for electronic signature

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14819976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14819976

Country of ref document: EP

Kind code of ref document: A1