Modem and communication method
11349742 ยท 2022-05-31
Assignee
Inventors
Cpc classification
H04L43/10
ELECTRICITY
H04L12/12
ELECTRICITY
Y02D30/70
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
H04L43/10
ELECTRICITY
H04L49/552
ELECTRICITY
H04L12/12
ELECTRICITY
Abstract
The present disclosure provides a modem and a communication method. The modem includes a processor. The processor scans a first network channel of a plurality of network channels provided by the modem. The processor enters an idle scan time period and performs a packet forwarding operation during the idle scan period upon completion of scanning the first network channel. The processor scans a second network channel of the plurality of the network channels after the scanning idle period.
Claims
1. A modem, comprising: a processor configured to: perform a downstream scan operation to scan a first network channel of a plurality of network channels via a cable interface; enter a scanning idle period upon completion of scanning the first network channel and perform a packet forwarding operation via a wired interface or a wireless interface during the scanning idle period, wherein the packet forwarding operation comprising responding to a ping packet from a client; and perform the downstream scan operation to scan a second network channel of the plurality of the network channels via the cable interface after the scanning idle period.
2. The modem according to claim 1, further comprising a buffer, wherein the processor receives the ping packet when scanning the first network channel, the ping packet is temporarily stored in the buffer, and the processor performs the packet forwarding operation corresponding to the ping packet during the scanning idle period.
3. The modem according to claim 1, wherein the processor executes a sleep command within the downstream scan operation to enter the scanning idle period.
4. The modem according to claim 3, wherein after the processor executes the sleep command, execution data of the downstream scan operation is retained in an operating system, and the processor stops performing the downstream scan operation.
5. The modem according to claim 1, wherein a length of the scanning idle period is between 0.01 second and 0.05 seconds.
6. The modem according to claim 1, wherein the network channels are located at different frequency bands.
7. A communication method suitable for a modem, the modem comprising a processor, and the communication method comprising: performing, by the processor, a downstream scan operation to scan a first network channel of a plurality of network channels via a cable interface; entering, by the processor, a scanning idle period upon completion of scanning the first network channel, and performing a packet forwarding operation via a wired interface or a wireless interface during the scanning idle period, wherein the packet forwarding operation comprising responding to a ping packet from a client; and performing, by the processor, the downstream scan operation to scan a second network channel of the plurality of the network channels via the cable interface after the scanning idle period.
8. The communication method according to claim 7, further comprising: receiving, by the processor, the ping packet when the first network channel is scanned, and temporarily storing the ping packet in a buffer; and performing, by the processor, the packet forwarding operation corresponding to the ping packet during the scanning idle period.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION
(7)
(8) As shown in
(9) In an embodiment, the processor 110 is configured to scan the plurality of the network channels (e.g. wired or wireless network channels) provided by the modem 100 and perform a packet forwarding operation. The packet forwarding operation includes responding to a packet from the client, in which the packet may include a ping packet, but the present disclosure is not limited thereto.
(10) In some embodiments, if the modem 100 receives a packet when the processor 110 performs scanning the network channels, the packet may be temporarily stored in the buffer 120, and the processor 110 performs the packet forwarding operation with the received packet in a scanning idle period. In this way, even if a user transmits a packet to the modem 100 by the electronic device 150 when the processor 110 of the modem 100 scans the network channel, the processor 110 of the modem 100 may also first temporarily store the received packet in the buffer 120, and respond to the received packet until a calculation resource of the processor 110 is used for the packet forwarding operation (that is, in the scanning idle period).
(11)
(12) References are made to
(13) Next, in step S202, whether a current scan frequency is greater than a maximum frequency is determined.
(14) If the current scan frequency is greater than the maximum frequency, step S203 is performed to end the downstream scan operation.
(15) If the current scan frequency is less than or equal to the maximum frequency, step S204 is performed to lock a downstream channel (e.g. a scan channel 210 in
(16) In this embodiment, the processor 110 stops the downstream scan operation when the current scan frequency is greater than the maximum frequency. In another embodiment, the processor 110 may also stop the downstream scan operation when an available downstream channel is found.
(17) Next, in step S205, a sleep command (e.g. a sleep 220 in
(18) In step S206, the current scan frequency is updated by adding a specific frequency to the current scan frequency. That is, moving to the next downstream channel. The foregoing specific frequency is, for example, 6 MHz, but the present disclosure is not limited thereto.
(19) It should be noted that the packet forwarding operation (e.g. packet forwarding 240 in
(20) Referring to
(21) In step S212, a packet from a user or a client is received through a wireless network, that is, the packet is received during the period of the packet forwarding 240 in
(22) In step S213, the user is responded with the foregoing packet, that is, a packet response is performed during the period of the packet forwarding 240 in
(23) Referring to
(24) In other words, in
(25) It should be noted that after the processor 110 executes the sleep command, execution data (e.g. the current scan frequency) of the downstream scan operation may be retained in an operating system of the modem 100, and the processor 110 stops executing the downstream scan operation.
(26) Although packet receiving and forwarding performed during the packet forwarding 240 is described in the foregoing embodiment, the present disclosure is not limited thereto. In another embodiment, the packet can be also received and temporarily stored in the buffer 120 during the sleep 230, and the packet forwarding operation is performed using resources of the processor 110 during the packet forwarding 240.
(27)
(28) In step S302, when the processor 110 finishes scanning the first network channel, the processor 110 enters a scanning idle period and performs a packet forwarding operation during the scanning idle period.
(29) In step S303, the processor 110 of the modem 100 scans a second network channel after the scanning idle period.
(30)
(31) In summary, according to the modem and the communication method of the present disclosure, the packet forwarding operation may be performed during the scanning idle period between scanning of the first network channel and scanning of the second network channel by the processor of the modem, so that the client does not receive a message for a packet loss when the processor scans the channel. In addition, the packet received by the modem when scanning the network channel may also be first temporarily stored in the buffer, and a packet response operation is performed until during the scanning idle period.
(32) Although the present disclosure has been disclosed above through the embodiments, the embodiments are not intended to limit the present disclosure. Any person of ordinary skill in the art can make some variations or modifications without departing from the spirit and scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the appended claims.