1. Field of the Invention
The present invention relates to a wireless communication terminal. Priority is claimed on Japanese Patent Application No. 2008-298165, filed Nov. 21, 2008, the content of which is incorporated herein by reference.
2. Description of Related Art
As a wireless communication protocol to be used in a wireless communication system, a protocol for transmitting data after performing a procedure of identifying whether or not a wireless link is in use has been disclosed in Japanese Unexamined Patent Application, First Publication No. 2005-130479 (particularly, FIG. 3). In this protocol, the data transmission is performed after exchanging messages between terminals at a data transmitting side and a data receiving side according to a predetermined procedure.
In one aspect of the present invention, there is provided a wireless communication terminal that includes at least: a wireless communication unit which directly performs one-to-one wireless communication with an external terminal requiring a first time at shortest before a radio frame is transmitted to a communication counterpart after transmitting a radio frame to the communication counterpart of wireless communication or receiving a radio frame from the communication counterpart, and transmits a radio frame to the external terminal when a predetermined time has elapsed after a radio frame has been transmitted to the external terminal or a radio frame has been received from the external terminal; and a setting unit which sets a second time different from the first time to the predetermined time, establishes wireless communication with the external terminal for the wireless communication unit, and sets at least one of “a third time which is equal to or shorter than the shorter of the first and second times” and “a fourth time which is equal to or longer than the longer of the first and second times” to the predetermined time based on the second time.
Preferably, in the wireless communication terminal of the aspect, the setting unit may set the fourth time to the predetermined time when a predetermined radio frame has been transmitted to the external terminal.
More preferably, in the wireless communication terminal of the aspect, the wireless communication unit may transmit the predetermined radio frame to the external terminal at a predetermined interval.
Preferably, in the wireless communication terminal of the aspect, the predetermined radio frame may be a probe message frame.
More preferably, in the wireless communication terminal of the aspect, the setting unit may set the fourth time to the predetermined time when a radio frame for changing the second time to the fourth time has been received from the external terminal.
Preferably, in the wireless communication terminal of the aspect, the setting unit may set the third time to the predetermined time when a radio frame for changing the second time to the third time has been received from the external terminal.
More preferably, in the wireless communication terminal of the aspect, the setting unit may set the third time to the predetermined time when a predetermined radio frame has been transmitted to the external terminal.
Moreover, in another aspect of the present invention, there is provided a wireless communication terminal that includes at least: a wireless communication unit which directly performs one-to-one wireless communication with an external terminal requiring a first time at shortest before a radio frame is transmitted to a communication counterpart after transmitting a radio frame to the communication counterpart of wireless communication or receiving a radio frame from the communication counterpart, and transmits a radio frame to the external terminal when a predetermined time has elapsed after a radio frame has been transmitted to the external terminal or a radio frame has been received from the external terminal; and a setting unit which sets a second time different from the first time to the predetermined time, establishes wireless communication with the external terminal for the wireless communication unit, and lets the wireless communication unit transmit a predetermined radio frame for changing the first time of the external terminal to one of “a third time which is equal to or shorter than the shorter of the first and second times” and “a fourth time which is equal to or longer than the longer of the first and second times” from the wireless communication unit to the external terminal based on the second time.
Preferably, in the wireless communication terminal of the aspect, the wireless communication unit may transmit the predetermined radio frame to the external terminal at a predetermined interval.
More preferably, in the wireless communication terminal of the aspect, the predetermined radio frame may be a probe message frame.
Preferably, in the wireless communication terminal of the aspect, the wireless communication unit may transmit the predetermined radio frame to the external terminal when a response for a radio frame received from the external terminal is returned to the external terminal.
In addition, in still another aspect of the present invention, there is provided a wireless communication terminal that includes at least: a wireless communication unit which directly performs one-to-one wireless communication with an external terminal requiring a first time at shortest before a radio frame is transmitted to a communication counterpart after transmitting a radio frame to the communication counterpart of wireless communication or receiving a radio frame from the communication counterpart, and transmits a radio frame to the external terminal when a predetermined time has elapsed after a radio frame has been transmitted to the external terminal or a radio frame has been received from the external terminal; and a setting unit which sets a second time different from the first time to the predetermined time, establishes wireless communication with the external terminal for the wireless communication unit, and sets at least one of “a third time which is equal to or shorter than the shorter of the first and second times” to be set in a terminal to receive a connection request from a communication counterpart and “a fourth time which is equal to or longer than the longer of the first and second times” to be set in a terminal to transmit a connection request to a communication counterpart, to the predetermined time.
In still another aspect of the present invention, there is provided a wireless communication terminal that includes at least: a wireless communication unit which directly performs one-to-one wireless communication with an external terminal requiring a first time at shortest before a radio frame is transmitted to a communication counterpart after transmitting a radio frame to the communication counterpart of wireless communication or receiving a radio frame from the communication counterpart, and transmits a radio frame to the external terminal when a predetermined time has elapsed after a radio frame has been transmitted to the external terminal or a radio frame has been received from the external terminal; and a setting unit which sets a second time different from the first time to the predetermined time, establishes wireless communication with the external terminal for the wireless communication unit, and lets the wireless communication unit transmit a predetermined radio frame for changing the first time of the external terminal to one of “a third time which is equal to or shorter than the shorter of the first and second times” to be set in a terminal to receive a connection request from a communication counterpart and “a fourth time which is equal to or longer than the longer of the first and second times” to be set in a terminal to transmit a connection request to a communication counterpart, from the wireless communication unit to the external terminal.
The above features and advantages of the present invention will be more apparent from the following detailed description of certain preferred embodiments taken in conjunction with the accompanying drawings, in which:
The invention will be now described herein with reference to illustrative embodiments. Those skilled in the art will recognize that many alternative embodiments can be accomplished using the teachings of the present invention and that the invention is not limited to the embodiments illustrated for explanatory purposes.
Hereinafter, the embodiments of the present invention will be described with reference to the drawings.
In a data link layer, the electronic camera 10 serves as a host and the printer 20 serves as a target. The host is a device which transmits a wireless communication connection request to a connection counterpart, and the target is a device which receives the wireless communication connection request from a connection counterpart. As shown in
The CPU 100 controls the overall operation of each section of the electronic camera 10 by reading and running a control program recorded in the flash memory 107 and reading and writing various data from and to the RAM 106. Besides the control program, image pickup parameters or communication parameters (data transmission protocol information and the like) are recorded in the flash memory 107.
The image pickup section 101 generates an image pickup signal by photographing an object, and creates image data by performing various image processing operations. The created image data is recorded in the recording medium 102. A memory card attachable to, or detachable from, the electronic camera 10 or a hard disk fixed to the electronic camera 10 is used in the recording medium 102.
The communication control section 103 is a wireless communication interface which exchanges captured image data or the like with an external device (a PC, a printer, an external recording device, or the like). The wireless communication interface is an interface which performs wireless data communication, such as WLAN, Bluetooth™, IrDA™, TransferJET™, or WiMedia™. The communication control section 103 has a setting section 103a which sets a frame transmission interval to be described later.
The operation section 104 has an operation switch or the like for allowing the user to input an instruction regarding the operation of the electronic camera 10. The display section 105 displays an image based on image data read from the recording medium 102, a user interface screen, or the like.
The CPU 200 controls the overall operation of each section of the printer 20 by reading and running a control program recorded in the flash memory 205 and reading and writing various data from and to the RAM 204. Besides the control program, print parameters or communication setting parameters (data transmission protocol information and the like) are recorded in the flash memory 205.
The print section 201 prints on paper based on print data received by the communication control section 202 from an external device (an electronic camera, a PC, or the like). The communication control section 202 is a wireless communication interface which exchanges print data or the like with an external device. The communication control section 202 has a setting section 202a which sets a frame transmission interval to be described later. The operation section 203 has an operation switch or the like for allowing the user to input an instruction regarding the operation of the printer 20.
When the printer 20 performs printing based on image data kept in the electronic camera 10, data is transmitted in a communication sequence shown in
After the connection to the printer 20 is established, the electronic camera 10 transmits a probe message to the printer 20 at a predetermined transmission interval (Tprb) as shown in
In this embodiment, the wireless communication is performed in a communication sequence in which both the communication sequence shown in
Next, the structures of various radio frames to be used in this embodiment will be described.
Next, the priority of data transmission under an assumption of this embodiment will be described.
As shown in
Next, the operation of the wireless communication system according to this embodiment will be described.
First, a first operation example will be described.
When the probe message frame 420 is received, the printer 20 transmits an ACK frame 430 to the electronic camera 10. When the ACK frame 430 as a reception response corresponding to the probe message frame 420 is received, the electronic camera 10 changes the frame transmission interval from IFSh to IFSt. In the printer 20, a data frame to be transmitted to the electronic camera 10 is generated at a transmission time of the ACK frame 430. When IFSt has elapsed after transmitting the ACK frame 430, the printer 20 transmits the data frame 440 to the electronic camera 10.
When IFSt has elapsed after receiving the ACK frame 430, the electronic camera 10 may not transmit a data frame 450 since the data frame 440 is received. If the printer 20 does not transmit the data frame 440, the electronic camera 10 is able to transmit the data frame 450. When the data frame 440 is received, the electronic camera 10 transmits an ACK frame 460 as a reception response to the printer 20. When IFSh has elapsed after transmitting the ACK frame 460, the electronic camera 10 transmits a data frame 470 to the printer 20.
According to the above operation, when an ACK frame for a probe message frame has been received, the electronic camera 10 changes the frame transmission interval from IFSh to IFSt, so that the printer 20 is able to transmit a data frame by taking an opportunity to transmit data. The electronic camera 10 may change the frame transmission interval to a longer time interval than IFSt. Thereby, the data transmission collision between the electronic camera 10 and the printer 20 may be avoided more reliably. As another method of providing the data transmission opportunity for the printer 20, the electronic camera 10 may change the frame transmission interval from IFSh to IFSt at an arbitrary timing without receiving the ACK frame for the probe message frame. In the case where it is not desirable for the electronic camera 10 to provide the data transmission opportunity for the printer 20, the frame transmission interval may be set to IFSh even when the ACK frame for the probe message frame has been received.
Hereinafter, the detailed operations of the electronic camera 10 and the printer 20 will be described. In the electronic camera 10, the CPU 100 instructs the communication control section 103 to serve as the host before the connection to the printer 20 is established, and the setting section 103a of the communication control section 103 sets a predetermined frame transmission interval (IFSh). In the printer 20, the CPU 200 instructs the communication control section 202 to serve as the target before the connection to the electronic camera 10 is established, and the setting section 202a of the communication control section 202 sets a predetermined frame transmission interval (IFSt).
When a radio frame is received from the printer 20 during the operation shown in
When IFSh has not elapsed, the communication control section 103 repeats the determination of step S100. When IFSh has elapsed, the communication control section 103 transmits a data frame to the printer 20 by wireless communication (step S101). Subsequently, the communication control section 103 determines whether or not an ACK frame has been received (step S102).
When the ACK frame has not been received, the communication control section 103 repeats the determination of step S102. When the ACK frame has been received, the communication control section 103 determines whether or not the transmission of all data frames has been completed (step S103). When the ACK frame could not have been received even when a predetermined time has elapsed, the process may be terminated due to communication error. When the transmission of all data frames has been completed, a series of processes related to the data transmission ends. When a non-transmitted data frame remains, the communication control section 103 determines whether or not Tprb has elapsed after the transmission of a previous probe message frame (step S104). The transmission interval Tprb of the probe message frame to be used for the determination of step S104 is set by the setting section 103a.
When Tprb has not elapsed, the communication control section 103 repeats the determination of step S100. When Tprb has elapsed, the communication control section 103 transmits the probe message frame to the printer 20 by wireless communication (step S105). Subsequently, the communication control section 103 determines whether or not an ACK frame has been received (step S106).
When the ACK frame has not been received, the communication control section 103 repeats the determination of step S106. When the ACK frame could not have been received even when a predetermined time has elapsed, the process may be terminated due to communication error. When the ACK frame has been received, the communication control section 103 determines whether or not a data frame has been received (step S107). When the data frame has been received, the communication control section 103 transmits the ACK frame to the printer 20 by wireless communication (step S109). Subsequently, the communication control section 103 repeats the determination of step S100. When the data frame has not been received, the communication control section 103 determines whether or not IFSt has elapsed after receiving the ACK frame (step S108). The frame transmission interval IFSt to be used for the determination of step S108 is set by the setting section 103a.
When IFSt has not elapsed, the communication control section 103 repeats the determination of step S107. When IFSt has elapsed, the communication control section 103 performs step S101 to transmit the next data frame.
As described above, when the electronic camera 10 transmits a probe message frame (step S105) and receives an ACK frame (step S106), the frame transmission interval is changed from IFSh to IFSt (step S108). Thereby, it is possible to provide an opportunity to transmit data for the printer 20.
When a radio frame is received from the electronic camera 10 during the operation shown in
When the radio frame has not been received, the communication control section 202 repeats the determination of step S200. When the radio frame has been received, the communication control section 202 transmits an ACK frame to the electronic camera 10 by wireless communication (step S201). Subsequently, the communication control section 202 determines whether or not a data frame intended to be transmitted to the electronic camera 10 exists (step S202).
When a data frame intended to be transmitted does not exist, the communication control section 202 repeats the determination of step S200. When the data frame intended to be transmitted exists, the communication control section 202 determines whether or not the received radio frame is a probe message frame (step S203).
When the received radio frame is not the probe message frame, the communication control section 202 repeats the determination of step S200. When the received radio frame is the probe message frame, the communication control section 202 determines whether or not IFSt has elapsed after transmitting the ACK frame in step S201 (step S204). The frame transmission interval IFSt to be used for the determination of step S204 is set by the setting section 202a.
When IFSt has not elapsed, the communication control section 202 repeats the determination of step S204. When IFSt has elapsed, the communication control section 202 transmits a data frame to the electronic camera 10 by wireless communication (step S205). Subsequently, the communication control section 202 determines whether or not the ACK frame has been received (step S206).
When the ACK frame has not been received, the communication control section 202 repeats the determination of step S206. When the ACK frame has been received, the communication controls section 202 repeats the determination of step S200. When the ACK frame could not have been received even when a predetermined time has elapsed, the process may be terminated due to communication error.
As described above, when IFSt has elapsed after transmitting the ACK frame for the probe message frame (step S204), the printer 20 is able to transmit a data frame (step S205).
Next, a second operation example will be described.
When IFSh has elapsed after transmitting the ACK frame 510, the printer 20 transmits the data frame 520 to the electronic camera 10. Since the data frame 520 is received before IFSt has elapsed after receiving the ACK frame 510, the electronic camera 10 may not transmit a data frame 530. If the printer 20 does not transmit the data frame 520, the electronic camera 10 is able to transmit the data frame 530.
According to the above operation, when an ACK frame for a probe message frame has been received, the printer 20 changes the frame transmission interval from IFSt to IFSh, so that the printer 20 is able to transmit a data frame by taking an opportunity to transmit data. The printer 20 may change the frame transmission interval to a shorter time interval than IFSh. Thereby, the data transmission collision between the electronic camera 10 and the printer 20 may be avoided more reliably. As another method of providing the data transmission opportunity for the printer 20, the printer 20 may change the frame transmission interval from IFSt to IFSh at an arbitrary timing without transmitting the ACK frame for the probe message frame.
The detailed operation of the electronic camera 10 is the same as the operation shown in
Next, a third operation example will be described. The structure of an ACK frame in the third operation example is different from those of the first and second operation examples.
When IFSt has elapsed after transmitting the ACK frame 610, the printer 20 transmits the data frame 620 to the electronic camera 10. Since the data frame 620 is received when IFSt has elapsed after transmitting the ACK frame 610, the electronic camera 10 may not transmit a data frame 630. If the printer 20 does not transmit the data frame 620, the electronic camera 10 is able to transmit the data frame 630. When the data frame 620 is received, the electronic camera 10 transmits an ACK frame 640 as a reception response to the printer 20. When IFSh has elapsed after transmitting the ACK frame 640, the electronic camera 10 transmits a data frame 650 to the printer 20.
According to the above operation, when an ACK frame indicating a transmission right request has been received, the electronic camera 10 changes the frame transmission interval from IFSh to IFSt, so that the printer 20 is able to transmit a data frame by taking an opportunity to transmit data. The electronic camera 10 may change the frame transmission interval to a longer time interval than IFSt. Thereby, the data transmission collision between the electronic camera 10 and the printer 20 may be avoided more reliably. As another method of providing the data transmission opportunity for the printer 20, the electronic camera 10 may change the frame transmission interval from IFSh to IFSt at an arbitrary timing without receiving the ACK frame indicating the transmission right request. In the case where it is not desirable for the electronic camera 10 to provide the data transmission opportunity for the printer 20, the frame transmission interval may be set to IFSh even when the ACK frame indicating the transmission right request has been received.
Hereinafter, the detailed operations of the electronic camera 10 and the printer 20 will be described. In the electronic camera 10, the CPU 100 instructs the communication control section 103 to serve as the host before the connection to the printer 20 is established, and the communication control section 103 (the setting section 103a) sets a predetermined frame transmission interval (IFSh). In the printer 20, the CPU 200 instructs the communication control section 202 to serve as the target before the connection to the electronic camera 10 is established, and the communication control section 202 sets a predetermined frame transmission interval (IFSt).
When a radio frame is received from the printer 20 during the operation shown in
When a non-transmitted data frame remains in the determination of step S303, the communication control section 103 determines whether or not transmission right request information indicates a transmission right request by referring to the transmission right request information among control data of a received ACK frame (step S304).
When a value set in the transmission right request information is “0”, the transmission right request information indicates that the transmission right is not requested. In this case, the communication control section 103 repeats the determination of step S300. When a value set in the transmission right request information is “1”, the transmission right request information indicates that the transmission right is requested. In this case, the process proceeds to step S305. Since the process of steps S305 to S307 is the same as the process of steps S107 to S109 of
As described above, when an ACK frame indicating the transmission right request is received (step S304), the electronic camera 10 changes the frame transmission interval from IFSh to IFSt (step S306).
Thereby, it is possible to provide an opportunity to transmit data for the printer 20.
When a radio frame is received from the electronic camera 10 during the operation shown in
When the radio frame has not been received, the communication control section 202 repeats the determination of step S400. When the radio frame has been received, the communication control section 202 determines whether or not a data frame intended to be transmitted to the electronic camera 10 exists (step S401).
When a data frame intended to be transmitted to the electronic camera 10 does not exist, the communication control section 202 transmits an ACK frame, in which “0” is set in the transmission right request information, to the electronic camera 10 by wireless communication (step S403). Subsequently, the communication control section 202 repeats the determination of step S400.
When the data frame intended to be transmitted exists, the communication control section 202 transmits an ACK frame, in which “1” is set to the transmission right request information to the electronic camera 10, by wireless communication (step S402). Subsequently, the process proceeds to step S404. Since the process of steps S404 to S406 is the same as the process of steps S204 to S206 of
As described above, when IFSt has elapsed after transmitting the ACK frame indicating the transmission right request information (step S404), the printer 20 is able to transmit a data frame (step S405).
Next, a fourth operation example will be described.
When IFSh has elapsed after transmitting the ACK frame 700, the printer 20 transmits the data frame 710 to the electronic camera 10. Since the data frame 710 is received before IFSt has elapsed after receiving the ACK frame 700, the electronic camera 10 may not transmit a data frame 720. If the printer 20 does not transmit the data frame 710, the electronic camera 10 is able to transmit the data frame 720.
According to the above operation, when an ACK frame indicating a transmission right request has been transmitted, the printer 20 changes the frame transmission interval from IFSt to IFSh, so that the printer 20 is able to transmit a data frame by taking an opportunity to transmit data. The printer 20 may change the frame transmission interval to a shorter time interval than IFSh. Thereby, the data transmission collision between the electronic camera 10 and the printer 20 may be avoided more reliably. As another method of providing the data transmission opportunity for the printer 20, the printer 20 may change the frame transmission interval from IFSt to IFSh at an arbitrary timing without transmitting the ACK frame indicating the transmission right request.
The detailed operation of the electronic camera 10 is the same as the operation shown in
According to this embodiment as described above, since at least one of the electronic camera 10 and the printer 20 is able to change a frame transmission interval and change the priority of data transmission, the printer 20 is able to transmit data to the electronic camera 10 even when data is continuously transmitted from the electronic camera 10 to the printer 20. In the case where the printer 20 must transmit an ACK frame so as to take an opportunity to transmit data, the priority relationship between data transmission by the electronic camera 10 and data transmission by the printer 20 is not reversed all in all, since the printer 20 does not have a larger number of data transmission opportunities than the electronic camera 10.
That is, the present invention is able to change a required time before a radio frame is transmitted to a communication counterpart after transmitting a radio frame to the communication counterpart of wireless communication or receiving a radio frame from the communication counterpart. Consequently, even when data transmission is continuously performed in one direction, it is possible to transmit data in a reverse direction to the data transmission.
The embodiments of the present invention have been described in detail with reference to the drawings. However, specific configurations are not limited to the embodiments and may include any design change in the scope without departing from the subject matter of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2008-298165 | Nov 2008 | JP | national |