Wireless communication system, wireless communication method, wireless communication device, and program
The wireless communication system resolves conflicts among multiple data transfer applications by using communication arbitration to manage rights acquisition, ensuring reliable and stable data transfer.
Patent Information
- Application Number
- JP2021025101
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-02-19
AI Technical Summary
Conventional data transfer methods in wireless communication systems face conflicts when multiple data transfer applications on an information terminal send communication rights acquisition requests simultaneously, leading to unintended data access and potential data corruption.
A wireless communication system with a first device that performs communication arbitration processing based on unique identification information and preset conditions, determining whether to grant communication rights to each application, and a second device that executes data transfer only by applications that successfully acquire rights, avoiding conflicts and ensuring reliable data transfer.
The system effectively prevents communication conflicts and data corruption by ensuring only authorized applications transfer data, maintaining system reliability and stability.
Smart Images

Figure 0007543942000009 
Figure 0007543942000007 
Figure 0007543942000008
Abstract
Description
[Technical field]
[0001] The present invention relates to a wireless communication system for transmitting data between a plurality of wireless communication devices, and a wireless communication method, wireless communication device, and program used in the system. [Background technology]
[0002] For example, one method for transferring sensing data measured by a sensing device such as a blood pressure monitor to a management device such as a server device is to transmit the sensing data from the sensing device to an information terminal such as a smartphone using a short-range wireless communication technology such as Bluetooth (registered trademark), and the information terminal then transfers the sensing data to a management device such as a server via a mobile communication network (see, for example, Patent Document 1).
[0003] This type of data transfer method is realized, for example, by having the OS (Operating System) of the information terminal send a communication right acquisition request generated by a data transfer application provided in the information terminal to a sensing device, and the OS receives the response returned from the sensing device and notifies the data transfer application, after which the data transfer application executes a process for receiving sensing data between the information terminal and the sensing device. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2017-123144 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, conventional data transfer methods have had the following problems. In recent years, various services that manage the user's health have appeared, and there are an increasing number of cases where users select the service they want and send their own sensing data to the management server to request health management. When using this service, the user installs a data transfer application provided by the service on their own information terminal, enabling the transfer of sensing data.
[0006] However, when multiple data transfer applications are installed in an information terminal, for example when a user selects multiple services, the following problem may occur. That is, when communication right acquisition requests are generated from the multiple data transfer applications during the same period, these communication right acquisition requests are sent directly from the OS of the information terminal to the sensing device, and each response returned from the sensing device is received by the OS of the information terminal and notified directly to the data transfer application that made the request. At this time, each data transfer application cannot determine whether the notified response is a response to itself or not, so each tries to execute a process to receive sensing data, and as a result, a communication conflict occurs in the sensing device. For this reason, in some cases, unintended data access is executed in the sensing device, which may cause data corruption or the like.
[0007] The present invention provides a technique for preventing communication contention from occurring when a plurality of data transfer applications are installed in an information terminal. [Means for solving the problem]
[0008] In order to solve the above problem, a first aspect of the present invention relates to a wireless communication system comprising a first device that generates data to be transmitted, and a second device that has a plurality of applications that perform data transfer processing and performs transfer processing of the data to be transmitted between the first device and the second device under the control of the plurality of applications, wherein the first device comprises a communication arbitration processing unit and a response processing unit, and the second device comprises a request transmission processing unit, a success / failure determination processing unit, and a data transfer processing unit.
[0009] The request transmission processing unit generates and transmits a communication right acquisition request including unique identification information of each of the multiple applications when each of the multiple applications requests communication with the first device. When the communication arbitration processing unit receives the multiple communication right acquisition requests from the second device, it determines whether or not to permit communication for the multiple requesting applications based on the unique identification information included in each communication right acquisition request and a preset arbitration condition. The response processing unit generates a response including information indicating the result of the permission / rejection determination and the corresponding unique identification information, and returns the response to the second device. The success / rejection determination processing unit determines whether or not communication right acquisition has been successful for each of the multiple applications based on the information indicating the result of the permission / rejection determination and the unique identification information included in the response returned from the first device. The data transfer processing unit executes the transfer process of the transmission target data by an application that has successfully acquired communication right among the multiple applications based on the result of the success / rejection determination.
[0010] According to a first aspect of the present invention, when a plurality of applications transmit requests for communication rights acquisition in the second device, the first device judges whether or not communication is permitted for each of the requesting applications based on the application-specific identification information and arbitration conditions included in each of the communication rights acquisition requests, and returns a response including the judgment result and the application-specific identification information to the second device. In response, the second device judges whether or not communication rights have been acquired for each application based on the judgment result of whether or not communication is permitted included in the response, and transfer processing of the data to be transmitted is performed by the application that has succeeded in acquiring the communication rights.
[0011] Therefore, even if multiple applications in the second device transmit requests to acquire communication rights during the same period, the first device determines whether or not to permit communication for each application that transmitted the requests to acquire communication rights based on the arbitration conditions, and responds with the result of the determination. Therefore, in accordance with the contents of the response, each requesting application will only transfer data to be transmitted if the application is permitted to communicate, thereby avoiding communication contention in the first device. Therefore, there is no risk of data corruption or the like due to unintended data access in the first device, and this can increase the reliability of the system.
[0012] A second aspect of the present invention relates to a wireless communication device used as a first device in a wireless communication system including a first device that generates data to be transmitted and a second device that has a plurality of applications that perform a data transfer process and transfers the data to be transmitted between the first device and the first device under the control of the plurality of applications, the wireless communication device including a communication arbitration processing unit and a response processing unit. When the communication arbitration processing unit receives a plurality of communication right acquisition requests from the second device, the communication arbitration processing unit determines whether or not to permit communication for the plurality of requesting applications based on unique identification information of each of the plurality of applications included in each of the communication right acquisition requests and a preset arbitration condition. The response processing unit generates a response including information representing the result of the determination of whether or not to permit communication and the corresponding unique identification information, and returns the response to the second device.
[0013] According to the second aspect of the present invention, even if multiple applications of the second device transmit requests to acquire communication rights during the same period, the first device performs arbitration processing for the multiple requests to acquire communication rights, and notifies each application of the result. Therefore, in the second device, only applications that are permitted to communicate perform transfer processing of the data to be transmitted. Therefore, the occurrence of communication conflicts in the first device is avoided, and there is no need to worry about data corruption due to unintended data access, and the first device can perform highly stable data transfer processing.
[0014] A third aspect of the present invention is such that the communication arbitration processing unit defines first come, first served as the arbitration condition, and when multiple requests to acquire communication rights are received from the second device, the communication arbitration processing unit allows communication for the application corresponding to the communication right acquisition request that was received earliest.
[0015] According to a third aspect of the present invention, when a plurality of applications of the second device transmit requests for communication rights during the same period, the applications are permitted to communicate on a first-come, first-served basis. Therefore, when a plurality of applications are installed in the second device, it is possible to fairly grant communication rights to these applications.
[0016] A fourth aspect of the present invention is such that the communication arbitration processing unit defines priorities for the multiple applications as the arbitration conditions, and when the multiple communication right acquisition requests are received from the second device, the application with the highest priority is allowed to communicate.
[0017] According to a fourth aspect of the present invention, when a communication right acquisition request is sent from a plurality of applications of the second device during the same period, the application with a high priority is preferentially permitted to communicate. Therefore, for example, it becomes possible to give priority to data transfer by an application with a high priority designated by a user.
[0018] A fifth aspect of the device according to the present invention is such that the first device further includes a display processing unit, which generates display information for displaying the result of the permission / rejection judgment and displays it on the display unit.
[0019] According to the fifth aspect of the present invention, for example, a user can check, on a first device, which application on a second device is performing data transfer.
[0020] A sixth aspect of the device according to the present invention relates to a wireless communication device used as the second device in a wireless communication system including a first device that generates data to be transmitted, and a second device that has a plurality of applications that perform data transfer processing and transfers the data to be transmitted between the first device and the first device under the control of the plurality of applications, and when the first device receives a plurality of communication right acquisition requests from the second device, the first device has a function of determining whether or not to permit communication for the plurality of requesting applications based on unique identification information of each of the plurality of applications included in the communication right acquisition requests and a preset arbitration condition, and generating a response including information indicating the result of the determination of the permission or refusal and corresponding unique identification information and returning the response to the second device, the wireless communication device includes a success / failure determination processing unit and a data transfer processing unit. The success / failure determination processing unit determines whether or not communication rights have been obtained for each of the plurality of applications based on the information indicating the result of the determination of the permission or refusal included in the response returned from the first device in response to the transmission of the communication right acquisition request. The data transfer processing unit executes a transfer process of the data to be transmitted by an application that has succeeded in acquiring the communication right among the plurality of applications based on the result of the success / failure determination.
[0021] According to the sixth aspect of the present invention, in each application of the second device, the success or failure of acquiring the communication right is judged based on the contents of the response returned from the first device in response to the request for acquiring the communication right, and the data transfer process is executed only by the application that has succeeded in acquiring the communication right. This avoids the occurrence of communication conflicts in the first device, which eliminates the risk of data corruption and realizes highly stable data transfer process.
[0022] A seventh aspect of the present invention is such that the second device further comprises a display processing unit, which generates display information indicating the success / failure judgment result and displays it on the display unit.
[0023] According to the seventh aspect of the present invention, the user can confirm which application is selected from among a plurality of applications on the second device. Effect of the Invention
[0024] That is, according to the present invention, it is possible to provide a technique for preventing communication contention from occurring when a plurality of data transfer applications are installed in an information terminal. [Brief description of the drawings]
[0025] [Figure 1] FIG. 1 is a diagram showing the overall configuration of a wireless communication system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a block diagram showing a hardware configuration of a sensing device used as a first device in the system shown in FIG. [Diagram 3] FIG. 3 is a block diagram showing a software configuration of a sensing device used as a first device in the system shown in FIG. [Figure 4] FIG. 4 is a block diagram showing a hardware configuration of an information terminal used as the second device in the system shown in FIG. [Diagram 5]FIG. 5 is a block diagram showing a software configuration of an information terminal used as the second device in the system shown in FIG. [Figure 6] FIG. 6 is a flowchart showing the procedure and contents of the sensing data transmission process executed by the control unit of the sensing device shown in FIG. [Figure 7] FIG. 7 is a flowchart showing the procedure and contents of the arbitration process among the procedures shown in FIG. [Figure 8] FIG. 8 is a flowchart showing the procedure and contents of the sensing data receiving process executed by the control unit of the information terminal shown in FIG. [Figure 9A] FIG. 9A is a sequence diagram showing the procedure of the first half of the data transfer process executed between the sensing device and the information terminal shown in FIGS. [Figure 9B] FIG. 9B is a sequence diagram showing the procedure of the latter half of the data transfer process executed between the sensing device and the information terminal shown in FIGS. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0027] [One embodiment] (Configuration example) (1) System FIG. 1 is a diagram showing the overall configuration of a wireless communication system according to an embodiment of the present invention. A wireless communication system according to an embodiment includes a sensing device SD functioning as a first device and an information terminal UT functioning as a second device. Then, sensing data measured by the sensing device SD is transferred to the information terminal UT using, for example, Bluetooth (registered trademark), which is one of short-distance wireless communication technologies. The information terminal UT transfers the sensing data to a server device SV via a network NW.
[0028] In this example, BLE (Bluetooth Low Energy), defined by version 4.0 of Bluetooth, is used as the wireless communication method between the sensing device SD and the information terminal UT. By using BLE, it is possible to further reduce power consumption compared to previous specifications, and even greater power consumption reductions can be expected by using one-way communication called BLE advertising in particular.
[0029] The network NW includes, for example, the Internet and an access network for accessing the Internet. As the access network, for example, a mobile wireless communication network adopting the 4G or 5G standard or a wireless LAN (Local Area Network) is used, but is not limited thereto.
[0030] The server device SV is, for example, a cloud computer or a Web computer operated by a medical health institution or a health information service provider, and collects sensor data of the user to manage the user's health. For simplicity, only one server device SV is shown in Fig. 1, but if there are multiple service providers that manage the user's health, multiple server devices operated by each service provider are provided.
[0031] (2) Equipment (2-1) Sensing device SD 2 and 3 are block diagrams showing the hardware and software configurations, respectively, of the sensing device SD.
[0032] The sensing device SD is, for example, a blood pressure monitor, and includes a control unit 1, a sensing unit 2, a BLE communication module 3, an input unit 4a, and a display unit 4b.
[0033] The sensing unit 2 performs an operation of measuring sensing data including, for example, blood pressure data under the control of the control unit 1, and outputs the measured sensing data to the control unit 1. Note that the sensing unit 2 may be a device that measures other vital data related to, in addition to blood pressure data, pulse rate, electrocardiogram waveform, blood sugar level, activity level, stress level, etc., either alone or in combination.
[0034] The BLE communication module 3 transmits and receives wireless control signals and data to and from the information terminal UT in accordance with a communication protocol defined by the BLE standard. The BLE communication module 3 is not limited to being built into the sensing device SD, but may be an externally installed module as an accessory communication adapter, or may be a communication module provided in an independently used IoT device, router, or set-top box (STB).
[0035] The control unit 1 includes a control unit 11 using a hardware processor such as a central processing unit (CPU). The control unit 11 may include a digital signal processor (DSP) for performing encryption processing and the like.
[0036] The control unit 11 is connected via a bus 17 to a memory unit having a program memory unit 12 and a data memory unit 13, a sensor interface (hereinafter, the interface will be referred to as I / F) 14, a communication I / F 15, and an input / output I / F 16.
[0037] The sensor I / F 14, under the control of the control unit 11, performs a process of sending and receiving various control signals related to the operation of the sensing unit 2, and receiving sensing data output from the sensing unit 2 and passing it to the control unit 11. The communication I / F 15, under the control of the control unit 11, performs a process of sending and receiving various control signals related to the operation of the BLE communication module 3, and outputting packets generated by the control unit 11 to the BLE communication module 3.
[0038] The program storage unit 12 is configured by combining, for example, a non-volatile memory such as an HDD (Hard Disk Drive) or SSD (Solid State Drive) as a storage medium that can be written to and read at any time, and a non-volatile memory such as a ROM (Read Only Memory), and stores programs necessary for executing various control processes according to one embodiment, in addition to middleware such as an OS (Operating System).
[0039] The data storage unit 13 is, for example, a combination of a non-volatile memory such as an SSD that can be written to and read from at any time as a storage medium, and a volatile memory such as a RAM (Random Access Memory), and is equipped with a sensing data storage unit 131 and an arbitration information storage unit 132 as the main storage units required to implement one embodiment.
[0040] The sensing data storage unit 131 is used to store the sensing data measured by the sensing unit 2 in a state where the data is linked to information indicating the date and time of measurement, etc.
[0041] When multiple communication right acquisition requests are sent from the information terminal UT in the process of connecting a BLE wireless link, the arbitration information storage unit 132 stores arbitration conditions for arbitrating communications for these requests. In this example, the arbitration conditions are defined as "first come, first served" or "priority," but are not limited to these. The arbitration information storage unit 132 also saves information indicating the arbitration results for the multiple communication right acquisition requests.
[0042] The data storage unit 13 also includes a storage area for temporarily storing data generated during various processes performed by the control unit 11.
[0043] The control unit 11 includes, as main functions necessary for implementing one embodiment, a sensing control unit 111, a BLE communication control unit 112, a communication arbitration processing unit 113, and a sensing data transmission processing unit 114. All of these control units and processing units 111 to 114 are realized by causing a hardware processor of the control unit 11 to execute a program stored in the program storage unit 12.
[0044] When an operation that triggers a measurement operation of vital data including blood pressure data is performed on the input unit 4a, the sensing control unit 111 starts the sensing unit 2 via the sensor I / F 14. Then, the sensing control unit 111 performs a process of importing sensing data measured by the sensing unit 2 via the sensor I / F 14, and storing the imported sensing data in the sensing data storage unit 131 in association with information indicating the measurement date and time.
[0045] The BLE communication control unit 112 executes a series of processes to establish a BLE wireless link with the information terminal UT by executing BLE advertising and connection sequences with the information terminal UT in accordance with the communication protocol defined by the BLE communication method.
[0046] When a plurality of communication right acquisition requests by a plurality of data transfer applications described later are sent from the information terminal UT during the BLE advertising process, the communication arbitration processing unit 113 arbitrates communication for each of the applications that sent the plurality of communication right acquisition requests based on the arbitration conditions stored in the arbitration information storage unit 132. Then, the communication arbitration processing unit 113 generates response information including information indicating the arbitration result and unique identification information (hereinafter referred to as application ID) of the requesting data transfer application included in the communication right acquisition request, and performs processing to return the generated response information from the BLE communication control unit 112. The communication arbitration processing unit 113 also causes the arbitration information storage unit 132 to store the information indicating the arbitration result.
[0047] When a BLE wireless link is established between the information terminal UT and the BLE communication control unit 112, the sensing data transmission processing unit 114 reads untransmitted sensing data from the sensing data storage unit 131, outputs the sensing data to the BLE communication module 3 via the communication I / F 15, and transmits the sensing data from the BLE communication module 3.
[0048] (2-2) Information terminal UT 4 and 5 are block diagrams showing the hardware and software configurations, respectively, of the information terminal UT.
[0049] The information terminal UT is, for example, a smartphone owned by the user. Note that the information terminal UT may also be a tablet terminal, a wearable terminal, a notebook personal computer, or the like, as long as it is owned by the user.
[0050] The information terminal UT includes a control unit 5, a BLE communication module 6, a mobile wireless communication module 7, and an input / output device 8.
[0051] The BLE communication module 6 transmits and receives wireless control signals and data to and from the sensing device SD in accordance with a communication protocol defined by the BLE standard.
[0052] The mobile wireless communication module 7 transmits and receives data to and from the server device SV via the network NW using a wireless access method and a communication protocol defined by the mobile communication network. Term Evolution (LTE), 4G or 5G is used.
[0053] The input / output device 8 is, for example, a touch-type input sheet employing a pressure-sensitive or capacitive touch sensor placed on top of the display screen of a display device using liquid crystal or organic electroluminescence (EL), and is used for inputting various operational data and displaying display data.
[0054] The control unit 5 includes a control unit 51 that uses a hardware processor such as a central processing unit. A storage unit having a program storage unit 52 and a data storage unit 53, communication I / Fs 54 and 55, and an input / output I / F 56 are connected to the control unit 51 via a bus 57.
[0055] The communication I / F 54 performs processes such as delivery or conversion of various signals exchanged between the control unit 51 and the BLE communication module 6 in the process of establishing a BLE wireless link with the sensing device SD.
[0056] The input / output I / F 56 takes in operation data inputted at the input / output device 8 and passes it to the control unit 51, and also outputs various display information outputted from the control unit 51 to the input / output device 8 for display.
[0057] The program storage unit 52 is configured, for example, by combining a non-volatile memory such as an SSD as a storage medium that can be written to and read from at any time, and a non-volatile memory such as a ROM, and stores, in addition to middleware such as an OS, programs necessary for executing various control processes according to one embodiment.
[0058] This program includes multiple applications for data transfer provided by multiple businesses that provide health management services (which may include the manufacturer of the sensing device SD, etc.) In this example, the explanation will be given assuming that two data transfer applications (hereinafter referred to as application A and application B) are installed.
[0059] The data storage unit 53 is, for example, a combination of a non-volatile memory such as an SSD that can be written and read at any time as a storage medium, and a volatile memory such as a RAM, and includes a sensing data storage unit 531 as a main storage unit required to implement one embodiment. The sensing data storage unit 531 is used to store sensing data sent from the sensing device SD. The sensing data storage unit 531 may be provided for each of the application A and the application B. The data storage unit 53 also includes a storage area for temporarily storing data generated during various processes of the control unit 51.
[0060] The control unit 51 includes a platform 511, a first data transfer processing unit 512, and a second data transfer processing unit 513. All of these processing units 511 to 513 are realized by causing a hardware processor of the control unit 51 to execute an OS and application programs stored in the program storage unit 52.
[0061] The platform 511 is executed by the OS, and performs a series of processes such as scanning the sensing device SD, receiving BLE advertisements from the sensing device SD, and transmitting and receiving various requests and responses related to the BLE connection sequence in accordance with the communication protocol defined in the BLE communication method, until a BLE wireless link is established with the sensing device SD.
[0062] The first data transfer processing unit 512 operates by executing the application A, and performs a series of data transfer processes for acquiring sensing data from the sensing device SD. For example, it causes the platform 511 to perform scanning, receive advertisements, transmit a connection request, execute a connection sequence, transmit a request to obtain communication rights, and receive response information thereto. At this time, the application ID of the application A is inserted into the connection request.
[0063] Next, the first data transfer processing unit 512 judges whether the acquisition of the communication right for the application A has been successful based on the arbitration result and the application ID included in the received response information. If the acquisition of the communication right has been successful, the first data transfer processing unit 512 receives sensing data via a wireless link established with the sensing device SD, and stores the received sensing data in the sensing data storage unit 531.
[0064] Furthermore, the first data transfer processing unit 512 monitors the timing of transferring the stored sensing data to the server device SV, and when the transfer timing arrives, reads out untransmitted sensing data from the sensing data storage unit 531, and outputs the read out sensing data to the mobile wireless communication module 7 via the communication I / F 55. Then, the first data transfer processing unit 512 performs a process of transmitting the sensing data from the mobile wireless communication module 7 to the server device SV via the network NW in accordance with a communication protocol defined in the mobile communication network.
[0065] The second data transfer processing unit 513 operates by executing the above-mentioned application B, and performs a series of data transfer processes for acquiring sensing data from the sensing device SD. The processing procedure and contents are the same as those of the above-mentioned first data transfer processing unit 512 that executes the application A.
[0066] (Example of operation) Next, an example of the operation of the wireless communication system configured as above will be described. Figures 6 and 7 are flow charts showing the processing procedure and processing contents by the control unit 11 of the sensing device SD, and Figure 8 is a flow chart showing the processing procedure and processing contents by the control unit 51 of the information terminal UT. Also, Figures 9A and 9B are sequence diagrams showing the operation procedure of data transfer processing between the sensing device SD and the information terminal UT.
[0067] (1) Starting up the data transfer application on the information terminal UT The control unit 51 of the information terminal UT monitors the startup of applications in step S30 shown in Fig. 8. In this state, for example, when the user performs an operation to start up application A and application B on the input / output device 8, or when a request to start up applications A and B is received from the server device SV of the service provider, the control unit 51 of the information terminal UT starts up applications A and B. Thereafter, applications A and B operate in the background in relation to various other applications installed in the information terminal UT.
[0068] When the data transfer processing units 512 and 513 that execute the apps A and B are started, first in step S31, they issue a scan request to the platform 511. As a result, the platform 511 thereafter starts an intermittent scan operation for advertising BLE to the sensing device SD. At this time, the platform 511 receives scan requests from both the apps A and B, but executes the scan operation in response to the scan request that was received first, as shown in FIG. 9A.
[0069] (2) Sensing operation of the sensing device SD Suppose that a user, who is a subject, performs an operation for sensing in the sensing device SD. The operation at this time may be, for example, pressing a measurement button provided on the input unit 4a, but may also be an operation in which the user attaches a cuff to a part to be measured such as an arm or a wrist.
[0070] When the control unit 11 of the sensing device SD detects the above operation in step S10, it starts the sensing unit 2 in step S11 under the control of the sensing control unit 111. Then, it acquires the sensing data measured and output by the sensing unit 2 via the sensor I / F 14 in step S12, and stores the acquired sensing data in the sensing data storage unit 131 after adding information indicating the measurement date and time. When one sensing operation is completed, the sensing control unit 111 determines whether the sensing operation is completed in step S13. Then, if the person being measured presses the measurement button again, it returns to step S11 and repeats the above sensing operation.
[0071] In this example, data representing systolic blood pressure, diastolic blood pressure, and pulse rate is acquired as sensing data, but the sensing data may also include other vital data relating to pulse rate, electrocardiogram waveform, blood glucose level, activity level, stress level, etc., either alone or in combination.
[0072] (3) Transmission of sensing data (3-1) BLE advertising and connection sequence execution When the control unit 11 of the sensing device SD determines in step S13 that the sensing operation has ended, under the control of the BLE communication control unit 112, in step S14, it starts transmitting BLE advertisements intermittently, for example at regular time intervals.
[0073] In response to this, when the control unit 51 of the information terminal UT receives the above-mentioned BLE advertisement from the platform 511 in step S32, the first data transfer processing unit 512 and the second data transfer processing unit 513 each generate a connection request in step S33 and output them to the platform 511.
[0074] The platform 511 outputs the connection request to the BLE communication module 6 via the communication I / F 54. As a result, the connection request is transmitted from the BLE communication module 6 to the sensing device SD. At this time, when a connection request is generated from each of the first data transfer processing unit 512 and the second data transfer processing unit 513, the platform 511 transmits only the connection request that was generated first to the sensing device SD.
[0075] When the control unit 11 of the sensing device SD receives the connection request from the information terminal UT in step S15 during the advertisement transmission period, the control unit 11 executes a BLE connection sequence in step S16 under the control of the BLE communication control unit 112.
[0076] At this time, the platform 511 of the information terminal UT also executes a BLE connection sequence with the sensing device SD in step S34 after transmitting the connection request. Then, when a connection is established with the sensing device SD by the BLE connection sequence, the platform 511 notifies each of the first data transfer processing unit 512 and the second data transfer processing unit 513, which are the transmission sources of the connection request, of the completion of the connection.
[0077] (3-2) Sending a request to acquire communication rights Upon receiving the connection completion notification in step S35, the first data transfer processing unit 512 and the second data transfer processing unit 513 generate a communication right acquisition request in step S36. At this time, the application IDs of the requesting applications A and B are inserted into each of the communication right acquisition requests.
[0078] Then, the first data transfer processing unit 512 and the second data transfer processing unit 513 pass the generated communication right acquisition requests to the platform 511. The platform 511 transmits each of the communication right acquisition requests from the BLE communication module 6 to the sensing device SD.
[0079] (3-3) Communication arbitration In response to this, when the control unit 11 of the sensing device SD receives the communication right acquisition request in step S17, the process proceeds to step S18. Then, under the control of the communication arbitration processing unit 113, the control unit 11 executes communication arbitration processing for the communication right acquisition request as follows.
[0080] 7 is a flowchart showing the procedure and contents of this communication arbitration process. That is, the communication arbitration processing unit 113 first determines in step S181 whether the number of communication right acquisition requests sent from the information terminal UT within a certain time period (for example, one second or less) is one or multiple. If the result of this determination is one, communication is unconditionally permitted for that request. Then, in step S182, response information is generated that includes information to the effect that the communication is permitted and the application ID included in the received communication right acquisition request, and the generated response information is transmitted from the BLE communication module 3 to the information terminal UT in step S186.
[0081] On the other hand, suppose that two communication right acquisition requests are received from the information terminal UT within the certain period of time as described above. In this case, the communication arbitration processing unit 113 reads out the arbitration conditions from the arbitration information storage unit 132. Then, based on the read arbitration conditions, it determines whether or not to permit communication for each of the two communication right acquisition requests.
[0082] There are two methods for determining whether or not to allow communication: "first come, first served" and "priority order." Both of these are defined by arbitration conditions.
[0083] First, the "first come, first served" method allows communication for the request for the communication right that was received first, and for the request for the communication right that was received last, rejectionIn this case, as shown in FIG. 7, the communication arbitration processing unit 113 selects the communication right acquisition request that was received earlier in step S183, and generates response information for this selected communication right acquisition request in step S184 by inserting flag information indicating permission (OK) for communication and the application ID. On the other hand, for the communication right acquisition request that was received later, in step S185, rejection Response information is generated by inserting flag information indicating (NG) and the application ID. Then, in step S186, each of the generated response information is transmitted from the BLE communication module 3 to the information terminal UT.
[0084] In contrast, the "order of priority" is determined according to the priorities that the user has preset for applications A and B in the information terminal UT, and allows communication in response to a request for communication rights corresponding to the application with the higher priority, and temporarily denies a request for communication rights corresponding to the application with the lower priority. rejection Note that the determination as to whether the sender of the communication right acquisition request is application A or B is made based on the application ID included in the communication right acquisition request.
[0085] In this case, the communication arbitration processing unit 113 also determines whether the communication is permitted (OK) or not. rejection Response information including flag information indicating (NG) and the application ID of the requesting application is generated for each communication right acquisition request, and each generated response information is transmitted from the BLE communication module 3 to the information terminal UT.
[0086] The platform 511 of the information terminal UT transmits the response information transmitted from the sensing device SD to a BLE communication module. 6 When the response information is received via the data transfer processing unit 512, the platform 511 passes each received response information to the first data transfer processing unit 512 and the second data transfer processing unit 513. At this time, the platform 511 does not have a function of identifying the destination of each response information, so it notifies both the first data transfer processing unit 512 and the second data transfer processing unit 513 of each received response information.
[0087] When the first data transfer processing unit 512 and the second data transfer processing unit 513 of the information terminal UT receive the above response information, in step S38, they determine which response information is addressed to their own application based on the application ID contained in the response information. Then, they determine whether the communication right was acquired based on the flag information contained in the response information addressed to themselves. Thereafter, the first data transfer processing unit 512 or the second data transfer processing unit 513 that has successfully acquired the communication right executes the operation of receiving the sensing data.
[0088] (3-4) Transfer of sensing data When the control unit 11 of the sensing device SD finishes the arbitration process, in step S19, under the control of the sensing data transmission processing unit 114, the control unit 11 reads out the sensing data from the sensing data storage unit 131. Then, the control unit 11 transfers the read out sensing data to the information terminal UT via the wireless link established between the BLE communication module 3 and the information terminal UT.
[0089] In response to this, of the first and second data transfer processing units 512, 513 of the information terminal UT, a data transfer processing unit that has succeeded in acquiring the communication right, for example, the first data transfer processing unit 512 corresponding to application A, receives sensing data from the sensing device SD via the BLE wireless link established with the sensing device SD, and stores the received sensing data in the sensing data storage unit 531. Then, upon detecting the completion of reception of the sensing data in step S40, the first data transfer processing unit 512 transmits a disconnection request to the sensing device SD in step S41, and ends the process.
[0090] (3-5) If there is an application waiting for communication The control unit 11 of the sensing device SD stores information indicating the result of the decision made by the communication arbitration processing unit 113 as to whether or not to permit communication, for example, a communication right acquisition request for which communication has been rejected, as communication standby information in the arbitration information storage unit 132. After transmitting the sensing data, when the BLE communication control unit 112 receives a disconnection request transmitted from the information terminal UT in step S20, it subsequently determines in step S21 whether or not there is a communication right acquisition request waiting, based on the communication standby information stored in the arbitration information storage unit 132. Then, if there is a communication right acquisition request waiting, the process returns to step S14, and the process is executed again in steps S14 to S20.
[0091] On the other hand, when the first data transfer processing unit 512 of the information terminal UT transmits a disconnection request in step S41 to end the data transfer process, the control unit 51 of the information terminal UT subsequently executes step S42 In step S31, it is determined whether or not there is a data transfer application on standby. If it is determined that there is a data transfer application on standby, the control unit 51 of the information terminal UT returns to step S31 and repeats steps S31 to S32. S42 Then, execute the process again.
[0092] For example, in the example described above, since the application B is on standby for communication, the process for receiving sensing data from the sensing device SD is executed in the above steps S31 to S41 under the control of the second data transfer processing unit 513. Fig. 9B is a diagram showing the process sequence.
[0093] (Action and effect) As described above, in one embodiment, when performing a process of transferring sensing data from the sensing device SD to the information terminal UT under the control of two applications A and B for data transfer installed in the information terminal UT, the applications A and B transmit a communication right acquisition request including their application IDs to the sensing device SD. In response to this, when the sensing device SD receives a communication right acquisition request by each of the applications A and B from the information terminal UT, it determines whether or not to permit communication for each of the applications A and B based on the arbitration conditions stored in advance. Then, it generates response information including information indicating the determination result and the application ID included in the communication right acquisition request and returns it to the information terminal UT. Based on the received response information, each of the applications A and B of the information terminal UT determines whether or not the communication right has been acquired, and the application A or B that has successfully acquired the communication right performs a process of receiving sensing data from the sensing device SD.
[0094] Therefore, for example, even if applications A and B transmit requests to acquire communication rights during the same period in the information terminal UT, the sensing device SD performs arbitration processing for each of the requests to acquire communication rights, and the result is notified to the information terminal UT by response information. As a result, only the application that succeeds in acquiring communication rights among the requesting applications A and B performs the transfer processing of sensing data, and communication conflicts in the sensing device SD are avoided. Therefore, there is no risk of data corruption due to unintended data access in the sensing device SD, and this can increase the reliability of the data transfer processing.
[0095] In one embodiment, the arbitration condition is defined as first-come-first-served, and communication is permitted for the request for communication rights that is received first. This makes it possible to fairly grant communication rights to applications A and B installed in the information terminal UT.
[0096] On the other hand, priorities may be defined for the applications A and B as arbitration conditions. In this case, for example, it becomes possible to give priority to data transfer by an application with a high priority designated by the user.
[0097] Furthermore, in one embodiment, the sensing device SD stores a request to acquire communication rights from application B, which has rejected communication, as arbitration information representing the arbitration result, and the information terminal UT stores information representing the determination result of whether the acquisition of communication rights was successful. After the data transfer by application A, which has been permitted to communicate, is completed, BLE advertising and connection sequences are continued based on the above stored information, and further, data transfer processing is executed by application B. Therefore, after the data transfer processing by application A is completed, data transfer processing by application B is automatically executed, and data transfer processing by all running applications can be completed.
[0098] [Variations] In the sensing device SD, display information showing the result of arbitration for the communication right acquisition request may be generated and displayed on the display unit 4b. Also, in the information terminal UT, display information showing whether the communication right was acquired or not may be generated and displayed on the display unit of the input / output device 8. In this way, the user can check the application that is currently processing the sensing data transfer in both the sensing device SD and the information terminal UT.
[0099] Also, in the above example, the information terminal UT transmits a disconnection request when one of the applications A and B finishes data transfer. However, in another example, the information terminal UT can have a waiting application perform communication processing by the following communication processing without transmitting a disconnection request.
[0100] That is, for example, suppose that applications A and B now transmit a communication right acquisition request, and in response, the sensing device SD returns a communication right acquisition response to application A (OK) and to application B (NG). In this case, application A of the information terminal UT executes data transfer, and application B goes into standby mode. Then, when application A finishes the data transfer, the information terminal UT transmits a communication right release request. At this time, the ID of application A is inserted in the communication right release request.
[0101] In response to this, when the sensing device SD receives the communication right release request with the ID of application A inserted, it returns a communication right release response including the ID of application A. When the information terminal UT confirms from the communication right release response including the ID of application A that application A has released the communication right, it again transmits a communication right acquisition request to the sensing device SD. With this processing procedure, both applications A and B can complete their data transfers.
[0102] [Other embodiments] In one embodiment, a blood pressure monitor is used as the first device, but the first device may be a device that measures vital data other than blood pressure data, or may be a device that measures environmental data such as temperature, humidity, and air pressure other than vital data, or a device that measures substances related to air pollution such as exhaust gases, water quality, vibrations, noise, etc.
[0103] In addition, the number of data transfer applications, the type and configuration of the first device and second device, the processing procedure and processing content, the type and data structure of the data to be transmitted, etc. can be modified in various ways without departing from the spirit of the present invention.
[0104] Although the embodiment of the present invention has been described in detail above, the above description is merely an example of the present invention in every respect. It goes without saying that various improvements and modifications can be made without departing from the scope of the present invention. In other words, in implementing the present invention, a specific configuration according to the embodiment may be appropriately adopted.
[0105] In short, this invention is not limited to the above-mentioned embodiment as it is, and in the implementation stage, the components can be modified and embodied without departing from the gist of the invention. In addition, various inventions can be formed by appropriately combining multiple components disclosed in the above-mentioned embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, components from different embodiments may be appropriately combined. [Explanation of symbols]
[0106] SD: Sensing device UT: Information terminal NW…Network SV: Server device 1,5…Control unit 2. Sensing unit 3,6…BLE communication module 4a…Input section 4b…Display section 7...Mobile wireless communication module 8…Input / output devices 11,51...Control unit 12,52…Program memory section 13,53…Data storage section 14...Sensor I / F 15, 54, 55...Communication I / F 16,56... Input / Output I / F 111...Sensing control unit 112…BLE communication control unit 113...Communication arbitration processing unit 114...Sensing data transmission processing unit 13 1… Sensing data storage unit 132…Arbitration information storage unit 511…Platform (OS) 512...first data transfer processing unit (application A) 513: Second data transfer processing unit (application B) 531...Sensing data storage unit
Claims
1. A wireless communication system comprising: a first device that generates data to be transmitted; and a second device that has a plurality of applications that perform a data transfer process and transfers the data to be transmitted between the first device and the second device under control of the plurality of applications, The second device comprises: a request transmission processing unit that generates and transmits a communication right acquisition request including unique identification information of each of the plurality of applications when each of the plurality of applications makes a communication request to the first device; The first device comprises: a communication arbitration processing unit that, when receiving a plurality of the communication right acquisition requests from the second device, determines whether or not to permit communication for the plurality of requesting applications based on the unique identification information included in each of the communication right acquisition requests and a preset arbitration condition; a response processing unit that generates a response including information representing the result of the determination of permission or denial and the corresponding unique identification information, and returns the response to the second device; Equipped with The second device comprises: a determination processing unit that determines whether or not a communication right has been acquired for each of the plurality of applications based on information indicating a result of the determination of permission or denial included in the response returned from the first device and the unique identification information; a data transfer processing unit that executes the transfer process of the data to be transmitted by an application that has succeeded in acquiring the communication right among the plurality of applications based on a result of the determination of success or failure; A wireless communication system comprising:
2. In a wireless communication system including a first device that generates data to be transmitted, and a second device that has a plurality of applications that perform a data transfer process and transfers the data to be transmitted between the first device and the second device under the control of the plurality of applications, a wireless communication device used as the first device, a communication arbitration processing unit that, when receiving a plurality of communication right acquisition requests from the second device, determines whether or not to permit communication for the plurality of requesting applications based on unique identification information of each of the plurality of applications included in each of the communication right acquisition requests and a preset arbitration condition; a response processing unit that generates a response including information representing the result of the determination of permission or denial and the corresponding unique identification information, and returns the response to the second device; A wireless communication device comprising:
3. The wireless communication device of claim 2, wherein the communication arbitration processing unit defines a first-come, first-served basis as the arbitration condition, and when the multiple communication right acquisition requests are received from the second device, allows communication for the application corresponding to the communication right acquisition request that was received earliest.
4. 3. The wireless communication device according to claim 2, wherein the communication arbitration processing unit defines priorities for the multiple applications as the arbitration condition, and when the multiple communication right acquisition requests are received from the second device, allows communication for the application with the highest priority.
5. The wireless communication device according to claim 2 , further comprising a display processing unit that generates display information of the judgment result based on information representing the judgment result of whether or not the permission is granted, and displays the display information on a display unit provided in the wireless communication device.
6. In a wireless communication system comprising a first device that generates data to be transmitted, and a second device that has a plurality of applications that perform a data transfer process and transfers the data to be transmitted between the first device and the second device under the control of the plurality of applications, the first device having a function of determining whether or not to permit communication for the plurality of requesting applications based on unique identification information of each of the plurality of applications included in each of the communication right acquisition requests and a preset arbitration condition when the first device receives a plurality of communication right acquisition requests from the second device, and generating a response including information indicating the result of the permission / denial determination and the corresponding unique identification information and returning the response to the second device, the wireless communication device being used as the second device, a success / failure determination processing unit that determines whether or not the acquisition of the communication right for each of the plurality of applications has been successful, based on information indicating a result of the determination of whether or not the permission has been granted, which is included in the response returned from the first device in response to the transmission of the communication right acquisition request; a data transfer processing unit that executes the transfer process of the data to be transmitted by an application that has successfully acquired a communication right among the plurality of applications based on a result of the success / failure determination; A wireless communication device comprising:
7. The wireless communication device according to claim 6, further comprising a display processing unit that generates display information for displaying the judgment result based on information representing the success / failure judgment result, and displays the display information on a display unit provided in the wireless communication device.
8. A wireless communication method executed by a wireless communication system including a first device that generates data to be transmitted, and a second device that has a plurality of applications that perform a data transfer process and transfers the data to be transmitted between the first device and the second device under control of the plurality of applications, a step of the second device generating and transmitting a communication right acquisition request including unique identification information of each of the plurality of applications when each of the plurality of applications requests communication with the first device; a step of determining whether or not to permit communication for the plurality of applications that have made the requests, based on the unique identification information included in each of the communication right acquisition requests and a preset arbitration condition, when the first device receives a plurality of communication right acquisition requests from the second device; a step of the first device generating a response including information representing the result of the permission / rejection determination and the corresponding unique identification information, and returning the response to the second device; a step of determining whether or not the second device has successfully acquired a communication right for each of the plurality of applications based on information indicating a result of the determination of permission or denial contained in the response returned from the first device and the unique identification information; a step of executing the transfer process of the data to be transmitted by an application that has succeeded in acquiring the communication right among the plurality of applications based on the result of the success / failure determination by the second device; A wireless communication method comprising:
9. 6. A program for causing a processor included in the wireless communication device to execute processing by each of the processing units included in the wireless communication device according to claim 2.
10. A program for causing a processor included in the wireless communication device to execute the processes performed by the processing units included in the wireless communication device according to claim 6 or 7.
Citation Information
Patent Citations
Multi-application execution device, multi-application execution support method and program
JP2009146206A
Management system, registration method, and biological data transfer device
JP2017123144A
ic radio equipment
JP2017506009A
User terminal, server device, and method for setting communication parameter
JP2019033401A
