This application claims priority to Japanese Patent Application No. 2020-036252 filed on Mar. 3, 2020, incorporated herein by reference in its entirety.
The present disclosure relates to a transmitter, a receiver, and a data distribution system.
Japanese Unexamined Patent Application Publication No. 2017-191968 (JP 2017-191968 A) discloses an on-board device including a wireless communication unit and serving as a component of a network built by multi-hop communication. The on-board device transmits generated information to an external device when the number of hops does not reach a maximum number of hops preset in the generated information. The generated information is generated by an on-board device of a transmission source. The number of hops is the number of other on-board devices that have relayed the generated information.
In the technology described in JP 2017-191968 A in which the number of hops is used for determining whether to transmit transmission target data to an external device, information effective in a specific area cannot be distributed.
The present disclosure achieves distribution of information effective in a specific area.
A transmitter according to a first aspect of the present disclosure includes a processor configured to: acquire positional information indicating a position of the transmitter; and transmit, to a receiver, first transmission target data out of transmission target data retained by the transmitter and including a data body and effective range information indicating an effective range of the data body, the first transmission target data including the effective range information indicating a first effective range that covers the position of the transmitter that is indicated by the positional information.
According to the aspect described above, the first transmission target data out of the transmission target data retained by the transmitter is transmitted to the receiver. The first transmission target data includes the effective range information indicating the effective range that covers the position of the transmitter. Thus, information effective in a specific area can be distributed.
In the aspect described above, the processor may be configured to discard second transmission target data including the effective range information indicating a second effective range that does not cover the position of the transmitter that is indicated by the positional information.
According to the configuration described above, the second transmission target data including the effective range information indicating the effective range that does not cover the position of the transmitter is discarded. Thus, information effective in a specific area can be distributed.
In the aspect described above, the data body may include at least one of data indicating a discount coupon available in a shop located in the effective range indicated by the effective range information, advertisement information of the shop, or disaster information related to a disaster in the effective range.
With the configuration described above, information effective in a specific area can be distributed.
In the configuration described above, the processor may be configured to transmit, when communication is established with the receiver, the first transmission target data to the receiver.
A receiver according to a second aspect of the present disclosure includes a processor configured to: receive transmission target data transmitted by a transmitter and including a data body and effective range information indicating an effective range of the data body; acquire positional information indicating a position of the receiver; and control a storage device to store third transmission target data out of the transmission target data received by the processor, the third transmission target data including the effective range information indicating a third effective range that covers the position of the receiver that is indicated by the positional information.
According to the aspect described above, the third transmission target data out of the received transmission target data is stored in the storage device. The third transmission target data includes the effective range information indicating the effective range that covers the position of the receiver. Thus, information effective in a specific area can be distributed.
In the aspect described above, the processor may be configured to discard fourth transmission target data out of the transmission target data received by the processor, the fourth transmission target data including the effective range information indicating a fourth effective range that does not cover the position of the receiver that is indicated by the positional information.
According to the configuration described above, the fourth transmission target data including the effective range information indicating the effective range that does not cover the position of the receiver is discarded. Thus, information effective in a specific area can be distributed.
In the aspect described above, the data body may include at least one of data indicating a discount coupon available in a shop located in the effective range, advertisement information of the shop, and disaster information related to a disaster in the effective range.
With the configuration described above, information effective in a specific area is stored. Thus, information effective in a specific area can be distributed.
A data distribution system according to a third aspect of the present disclosure includes the transmitter according to the first aspect, and the receiver according to the second aspect. In the data distribution system according to the third aspect, information effective in a specific area can be distributed.
The present disclosure attains an effect that information effective in a specific area can be distributed.
Features, advantages, and technical and industrial significance of exemplary embodiments of the disclosure will be described below with reference to the accompanying drawings, in which like signs denote like elements, and wherein:
An exemplary embodiment of the present disclosure is described below in detail with reference to the drawings.
First, the configuration of a data distribution system 10 according to this embodiment is described with reference to
Next, the hardware configuration of the terminal device 12 according to this embodiment is described with reference to
The storage unit 22 is implemented by, for example, a hard disk drive (HDD), a solid state drive (SSD), or a flash memory. The storage unit 22 serving as a storage medium stores a transmission program 30 and a reception program 32. The CPU 20 reads the transmission program 30 from the storage unit 22, loads the transmission program 30 on the memory 21, and executes the loaded transmission program 30. The CPU 20 reads the reception program 32 from the storage unit 22, loads the reception program 32 on the memory 21, and executes the loaded reception program 32. The storage unit 22 also stores transmission target data 34.
The network I/F 23 performs ad hoc communication with other terminal devices 12 in accordance with a predetermined wireless communication scheme such as Institute of Electrical and Electronics Engineers (IEEE) 802.11ac. The ad hoc communication herein refers to direct communication between terminal devices 12 without intervention of a base station or a server device. That is, the terminal device 12 according to this embodiment can transmit and receive data by establishing communication when a distance from another terminal device 12 falls within a range in which wireless communication can be performed in accordance with the communication scheme.
The GPS device 26 measures a position of the terminal device 12 by receiving GPS signals from a plurality of GPS satellites, and outputs, to the CPU 20, positional information indicating the measured position of the terminal device 12. This embodiment is directed to an example in which a latitude and a longitude are applied as the positional information.
Next, the transmission target data 34 is described with reference to
As illustrated in
Next, the functional configuration of the terminal device 12 according to this embodiment when the terminal device 12 functions as a transmitter configured to transmit data is described with reference to
The acquisition unit 40 acquires, via the input/output I/F 24, positional information indicating a position of the terminal device 12 that is measured by the GPS device 26.
When communication is established with another terminal device 12 that functions as a receiver, the transmission unit 42 transmits, to the other terminal device 12 via the network I/F 23, first transmission target data 34 out of transmission target data 34 retained by the terminal device 12 including the transmission unit 42. The first transmission target data 34 includes effective range information indicating an effective range that covers the position of the terminal device 12 that is indicated by the positional information acquired by the acquisition unit 40. The transmission target data 34 retained by the terminal device 12 herein refers to the transmission target data 34 stored in the storage unit 22.
When communication is established with the other terminal device 12 that functions as the receiver, the transmission unit 42 discards second transmission target data 34 out of the transmission target data 34 retained by the terminal device 12 including the transmission unit 42. The second transmission target data 34 includes effective range information indicating an effective range that does not cover the position of the terminal device 12 that is indicated by the positional information acquired by the acquisition unit 40. The term “discard” herein means deletion from the storage unit 22.
Next, the functional configuration of the terminal device 12 according to this embodiment when the terminal device 12 functions as a receiver configured to receive data is described with reference to
The acquisition unit 50 acquires, via the input/output I/F 24, positional information indicating a position of the terminal device 12 that is measured by the GPS device 26. The reception unit 52 receives, via the network I/F 23, transmission target data 34 transmitted by another terminal device 12 that functions as a transmitter.
The storage control unit 54 controls the storage unit 22 being an example of a storage device to store third transmission target data 34 out of the transmission target data 34 received by the reception unit 52. The third transmission target data 34 includes effective range information indicating an effective range that covers the position of the terminal device 12 that is indicated by the positional information acquired by the acquisition unit 50. The storage control unit 54 discards fourth transmission target data out of the transmission target data 34 received by the reception unit 52. The fourth transmission target data includes effective range information indicating an effective range that does not cover the position of the terminal device 12 that is indicated by the positional information acquired by the acquisition unit 50.
Next, actions of the terminal device 12 according to this embodiment are described with reference to
In Step S10 of
In Step S12, the transmission unit 42 determines whether the position of the terminal device 12 that is indicated by the positional information acquired in Step S10 falls within an effective range indicated by effective range information of transmission target data 34 being a processing target. When the result of the determination is negative, the process proceeds to Step S16. When the result of the determination is positive, the process proceeds to Step S14.
In Step S14, the transmission unit 42 transmits the transmission target data 34 being the processing target via the network I/F 23 to the other terminal device 12 that establishes communication. In Step S16, the transmission unit 42 discards the transmission target data 34 being the processing target.
In Step S18, the transmission unit 42 determines whether the processes of Step S12 to Step S16 are completed for all of the transmission target data 34 stored in the storage unit 22. When the result of the determination is negative, the process returns to Step S12. When the result of the determination is positive, the data transmitting process is terminated.
In Step S30 of
In Step S34, the acquisition unit 50 acquires, via the input/output I/F 24, positional information indicating a position of the terminal device 12 that is measured by the GPS device 26. In Step S36, the storage control unit 54 determines whether the position of the terminal device 12 that is indicated by the positional information acquired in Step S34 falls within the effective range indicated by the effective range information of the transmission target data 34 received in Step S30. When the result of the determination is negative, the process proceeds to Step S42. When the result of the determination is positive, the process proceeds to Step S38.
In Step S38, the storage control unit 54 outputs a data body of the transmission target data 34 received in Step S30 to an application program for processing the data body. The application program performs a predetermined process for the data body of the transmission target data 34 received in Step S30. In Step S40, the storage control unit 54 controls the storage unit 22 to store the transmission target data 34 received in Step S30. When the process of Step S40 is completed, the data receiving process is terminated.
In Step S42, the storage control unit 54 discards the transmission target data 34 received in Step S30. When the process of Step S42 is completed, the data receiving process is terminated.
Next, specific examples of the data transmitting process and the data receiving process are described with reference to
Referring to
In this example, a position indicated by positional information of the terminal device 12A falls within the range A, effective range information of the transmission target data 34A indicates the range A, and effective range information of the transmission target data 34B indicates the range B different from the range A. Thus, the result of the determination in Step S12 is positive for the transmission target data 34A, and the transmission target data 34A is transmitted from the terminal device 12A to the terminal device 12B in Step S14. The result of the determination in Step S12 is negative for the transmission target data 34B, and the transmission target data 34B is deleted from the storage unit 22 of the terminal device 12A in Step S16.
In this example, the terminal device 12B executes the data receiving process for the transmission target data 34A transmitted from the terminal device 12A. In this case, the transmission target data 34A is not stored in the storage unit 22 of the terminal device 12B, and a position indicated by positional information of the terminal device 12B falls within the range A. That is, the result of the determination in Step S32 is negative, and the result of the determination in Step S36 is positive. Therefore, Step S38 and Step S40 are executed. Thus, the transmission target data 34A is stored in the storage unit 22 of the terminal device 12B.
Referring to
In this example, the position indicated by the positional information of the terminal device 12A falls within the range B, the effective range information of the transmission target data 34B indicates the range B, and the effective range information of the transmission target data 34A indicates the range A different from the range B. Thus, the result of the determination in Step S12 is positive for the transmission target data 34B, and the transmission target data 34B is transmitted from the terminal device 12A to the terminal device 12B in Step S14. The result of the determination in Step S12 is negative for the transmission target data 34A, and the transmission target data 34A is deleted from the storage unit 22 of the terminal device 12A in Step S16.
In this example, the terminal device 12B executes the data receiving process for the transmission target data 34B transmitted from the terminal device 12A. In this case, the transmission target data 34B is stored in the storage unit 22 of the terminal device 12B, and the result of the determination in Step S32 is positive. Therefore, Step S42 is executed. Thus, the transmission target data 34B received by the terminal device 12B is discarded.
Referring to
In this example, the position indicated by the positional information of the terminal device 12A falls within the range A, and the effective range information of the transmission target data 34A indicates the range A. Thus, the result of the determination in Step S12 is positive, and the transmission target data 34A is transmitted from the terminal device 12A to the terminal device 12B in Step S14.
In this example, the terminal device 12B executes the data receiving process for the transmission target data 34A transmitted from the terminal device 12A. In this case, the transmission target data 34A is not stored in the storage unit 22 of the terminal device 12B, and the position indicated by the positional information of the terminal device 12B falls within the range C. That is, the result of the determination in Step S32 is negative, and the result of the determination in Step S36 is negative. Therefore, Step S42 is executed. Thus, the transmission target data 34A received by the terminal device 12B is discarded.
As described above, according to this embodiment, transmission target data including effective range information indicating an effective range that covers the position of the transmitter out of the transmission target data retained by the transmitter is transmitted to the receiver. Thus, information effective in a specific area can be distributed. In a method in which transmission target data is stored in a server device and terminal devices acquire the transmission target data from the server device, some terminal devices may fail to acquire the transmission target data from the server device due to access concentration. In this embodiment, the transmission target data is distributed through the ad hoc communication among the terminal devices. Thus, it is possible to reduce the number of terminal devices that may fail to acquire the transmission target data. As a result, it is possible to distribute the transmission target data to more terminal devices.
The embodiment described above is directed to the case where the terminal device 12 is provided in the vehicle, but the present disclosure is not limited to this case. For example, the terminal device 12 may be provided in a moving object other than the vehicle. For example, the terminal device 12 that functions as the transmitter or the terminal device 12 that functions as the receiver may be fixed at a predetermined position in a specific shop.
The processes to be performed by the CPU 20 of the embodiment are described as software processes to be performed by executing the programs, but may be processes to be performed by hardware such as an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). Alternatively, the processes to be performed by the CPU 20 may be performed by software and hardware in combination. The transmission program 30 and the reception program 32 to be stored in the storage unit 22 may be distributed by being stored in various storage media.
The present disclosure is not limited to the exemplary embodiment described above, but various modifications other than the exemplary embodiment may be made without departing from the spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2020-036252 | Mar 2020 | JP | national |