Abstract:
An electronic device is provided. The electronic device comprises a display unit and a processing unit. The processing unit is electrically connected to the display unit and is configured to perform steps including: obtaining signal strength of connections between a plurality of nodes; and controlling the display unit to display the connections graphically according to the signal strength. An operation method adapted to an electronic device, and a non-transitory computer readable storage medium is also provided.

Description:
CROSS-REFERENCE TO RELATED APPLICATION 
       [0001]    This application claims the priority benefit of U.S. provisional application Ser. No. 62/365,566, filed on Jul. 22, 2016 and Chinese application serial No. 201710444993.5, filed on Jun. 12, 2017. The entirety of the above-mentioned patent applications are hereby incorporated by references herein and made a part of specification. 
     
    
     BACKGROUND OF THE INVENTION 
     Field of the Invention 
       [0002]    The disclosure relates to an electronic device, an operation method of an electronic device and a non-transitory computer readable storage medium. 
       Description of the Related Art 
       [0003]    With the development of technology, electronic devices, such as, tablet computers and smartphones, are widely used in daily life. 
         [0004]    The electronic device can be connected to a network (such as, a wireless network and an internet of things). The network includes a plurality of network nodes. Knowing the connection condition between each node shows the quality of the connection between the electronic device and the network. 
       BRIEF SUMMARY OF THE INVENTION 
       [0005]    According to an aspect of the disclosure, an electronic device is provided. The electronic device comprises a display unit and a processing unit. The processing unit is electrically connected to the display unit and is configured to perform steps including: obtaining signal strength of connections between a plurality of nodes; and displaying the connections graphically on the display unit according to the signal strength. 
         [0006]    According to another aspect of the disclosure, an operation method adapted to an electronic device is provided. The operation method comprises: obtaining signal strength of connections between a plurality of nodes; and displaying the connections graphically according to the signal strength. 
         [0007]    According to another aspect of the disclosure, a non-transitory computer readable storage medium is provided. The non-transitory computer readable storage medium is configured to store a program command After the program command is loaded on an electronic device, the electronic device performs steps including: obtaining signal strength of connections between a plurality of nodes; and displaying the connections graphically according to the signal strength. 
         [0008]    In the disclosure, the signal strength of the connection between the nodes can be quickly obtained. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0009]    These and other features, aspects and advantages of the disclosure will become better understood with regard to the following embodiments and accompanying drawings. 
           [0010]      FIG. 1  is a schematic diagram showing an electronic device in an embodiment; 
           [0011]      FIG. 2A  and  FIG. 2B  are schematic diagrams showing operations of an electronic device in an embodiment; 
           [0012]      FIG. 3A  and  FIG. 3B  are schematic diagrams showing operations of an electronic device in an embodiment; 
           [0013]      FIG. 4  is a schematic diagram showing an operation of an electronic device in an embodiment; 
           [0014]      FIG. 5  is a schematic diagram showing an operation of an electronic device in an embodiment; and 
           [0015]      FIG. 6  is a flow chart of an operation method of an electronic device in an embodiment. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0016]    These and other features, aspects, and advantages of the disclosure will become better understood with regard to the following description, appended claims, and accompanying drawings. However, the embodiments are not limited herein. The description of the operation of components is not used for limiting the execution sequence. Any equivalent device with the combination according to the disclosure is in the scope of the disclosure. The components shown in figures are not used for limit the size or the proportion. 
         [0017]      FIG. 1  is a schematic diagram showing an electronic device  100  in an embodiment. In an embodiment, an electronic device  100  includes a processing unit  110  and a display unit  120 . In the embodiment, the processing unit  110  is electrically connected to the display unit  120 . 
         [0018]    In the embodiment, the processing unit  110  is a central processing unit (CPU) or a microprocessor. The display unit  120  is a liquid crystal display (LCD), an active matrix organic LED display, or other display units. 
         [0019]    In an embodiment, the electronic device  100  is connected to a network  10  (such as a wireless network, an internet of things). In an embodiment, the network  10  includes a plurality of nodes. In an embodiment, the nodes in the network  10  are interconnected with each other wirelessly. In an embodiment. the electronic device  100  is connected with one or more node(s) in the network  10 . 
         [0020]    In an embodiment, the processing unit  110  is configured to obtain signal strength of the connections between the nodes in the network  10 . In an embodiment, the signal strength of the connection between the nodes is a received signal strength indicator (RSSI), which is not limited herein. In an embodiment, the processing unit  110  obtains the signal strength of the connection between the nodes in the network  10  via the node connected to the electronic device  100 , which is not limited herein. In an embodiment, the processing unit  110  obtains the signal strength of the connection between the nodes in the network  10  via a remote server or a CPU of the network  10 . 
         [0021]    In an embodiment, after obtaining the signal strength of the connection between the nodes in the network  10 , the processing unit  110  displays the connection between the nodes graphically on the display unit  120  according to the signal strength. 
         [0022]    In an embodiment, the processing unit  110  controls the display unit  120  to display a different graphic for different connections according to the signal strength of the different connections between the nodes in the network  10 . In an embodiment, the processing unit  110  controls displays a first graphic on the display unit  120  to represent a first connection that corresponds to a first signal strength according to the first signal strength. The processing unit  110  displays a second graphic on the display unit  120  to represent a second connection that corresponds to a second signal strength according to the second signal strength. The first signal strength is different from the second signal strength, and the first graphic is different from the second graphic. 
         [0023]    In an embodiment, the processing unit  110  controls the display unit  120  to display different graphics according to different ranges of the signal strength for different connections between the nodes in the network  10 . 
         [0024]    Please refer to table 1. 
         [0000]    
       
         
               
               
               
             
           
               
                 TABLE 1 
               
               
                   
               
               
                 received signal strength  
                   
                   
               
               
                 indicator (RSSI) 
                 signal strength 
                 graphic 
               
               
                   
               
             
             
               
                 −30 dBm~−50 dBm 
                 strong 
                 three straight lines 
               
               
                 −50 dBm~−70 dBm 
                 medium 
                 two straight lines 
               
               
                 −70 dBm~−90 dBm 
                 weak 
                 one straight line 
               
               
                   
               
             
          
         
       
     
         [0025]    In the embodiment, when the RSSI of the connection in the network  10  is in the range of −30 dBm to −50 dBm, the processing unit  110  determines that the signal strength corresponding to the connection is strong. The processing unit  110  controls the display unit  120  to display three straight lines for the connection. When the RSSI of the connection in the network  10  is in the range of −50 dBm to −70 dBm, the processing unit  110  determines that the signal strength of the connection is medium. The processing unit  110  controls the display unit  120  to display two straight lines for the connection. When the RSSI of the connection in the network  10  is in the range of −70 dBm to −90 dBm, the processing unit  110  determines that the signal strength of the connection is weak. The processing unit  110  controls the display unit  120  to display one straight line for the connection. The ranges of the signal strength mentioned above are exemplified only for description, which are not used to limit the disclosure. In an embodiment, a thick straight line represents a connection by a strong signal strength, a straight line of a medium width represents a connection by a medium signal strength, and a thin straight line represents a connection by a weak signal strength. 
         [0026]    In an embodiment, an operation of the electronic device is described hereinafter by referring to  FIG. 2A . 
         [0027]    In the embodiment, the processing unit  110  controls the display unit  120  to display a first graphic F 1  (such as three straight lines) for the connection between the nodes N 1  and N 2  according to a first signal strength (such as, −40 dBm) between the nodes N 1  and N 2 . The processing unit  110  controls the display unit  120  to display a second graphic F 2  (such as one straight line) for the connection between the nodes N 2  and N 3  according to a second signal strength (such as −80 dBm) between the nodes N 2  and N 3 . 
         [0028]    In an embodiment, an operation of the electronic device is described hereinafter by referring to  FIG. 2B . 
         [0029]    In the embodiment, the processing unit  110  controls the display unit  120  to display the first graphic F 1  (such as three straight lines) for the connection between the nodes N 1  and N 2  according to the first signal strength (such as, −40 dBm) between the nodes N 1  and N 2 . The processing unit  110  controls the display unit  120  to display the second graphic F 2  (such as one dashed line, which represents the connection by little signal strength) for the connection between the nodes N 2  and N 3  according to the second signal strength (such as −120dBm) between the nodes N 2  and N 3 . The processing unit  110  controls the display unit  120  to display a third graphic F 3  (such as two straight lines) for the connection between the nodes N 2  and N 4  according to a third signal strength (such as, −60 dBm) between the nodes N 2  and N 4 . 
         [0030]    In such a way, the signal strength of the connection between the nodes are intuitively known via the electronic device  100 . 
         [0031]    In an embodiment, the processing unit  110  obtains a bandwidth usage rate of the connection between the nodes in the network  10 . In an embodiment, the processing unit  110  obtains a bandwidth and traffic of the connection between the nodes in the network  10 . Then, the processing unit  110  obtains the bandwidth usage rate of the connection between the nodes in the network  10  according to the bandwidth and the traffic of the connection between the nodes in the network  10 . 
         [0032]    In an embodiment, the processing unit  110  obtains the bandwidth usage rate (or the bandwidth and the traffic) of the connection between the nodes in the network  10  via the node connected to the electronic device  100 . In an embodiment, the processing unit  110  obtains the bandwidth usage rate (or the bandwidth and the traffic) of the connection between the nodes in the network  10  via the remote server or the CPU of the network  10 . 
         [0033]    In an embodiment, after obtaining the bandwidth usage rate of the connection between the nodes in the network  10 , the processing unit  110  displays the connection between the nodes in different colors on the display unit  120  according to the bandwidth usage rate. 
         [0034]    In an embodiment, the processing unit  110  controls the display unit  120  to display the connections with different colors according to the different bandwidth usage rate corresponding to the different connections between the nodes in the network  10 . In an embodiment, the processing unit  110  controls the display unit  120  to diaplay the first connection (that corresponds to the first bandwidth usage rate) in a first color according to the first bandwidth usage rate. The processing unit  110  controls the display unit  120  to display the second connection (that corresponds to the second bandwidth usage rate) in a second color according to the second bandwidth usage rate. The first bandwidth usage rate is different from the second bandwidth usage rate. The first color is different from the second color. 
         [0035]    In an embodiment, the processing unit  110  controls the display unit  120  to show the connections in different colors according to the ranges of the bandwidth usage rate of the connections between the nodes in the network  10 . 
         [0036]    Please refer to table 2. 
         [0000]    
       
         
               
               
               
             
           
               
                 TABLE 2 
               
               
                   
               
               
                 bandwidth usage rate 
                 bandwidth usage rate 
                 color 
               
               
                   
               
             
             
               
                 &lt;40% 
                 low 
                 green 
               
               
                 40%-70% 
                 medium 
                 orange 
               
               
                 &gt;70% 
                 high 
                 red 
               
               
                   
               
             
          
         
       
     
         [0037]    In the embodiment, when the bandwidth usage rate corresponding to the connection in the network  10  is less than 40%, the processing unit  110  determines that the bandwidth usage rate corresponding to the connection is “low”. The processing unit  110  controls the display unit  120  to display the connection in green. When the bandwidth usage rate corresponding to the connection in the network  10  is between 40% and 70%, the processing unit  110  determines that the bandwidth usage rate corresponding to the connection is “medium”. The processing unit  110  controls the display unit  120  to display the connection in orange. When the bandwidth usage rate corresponding to the connection in the network  10  is more than 70%, the processing unit  110  determines that the bandwidth usage rate corresponding to the connection is “high”. The processing unit  110  controls the display unit  120  to display the connection in red. The above embodiments are exemplified only for description, which are not used to limit the disclosure. 
         [0038]    In an embodiment, according to signal strengths and bandwidth usage rate corresponding to the different connections in the network  10 , the processing unit  110  controls the display unit  120  to display the different connections between the nodes graphically and colourably. For example, different graphics in different color are displayed to represent different connections, respectively. In an embodiment, the processing unit  110  displays the first graphic in the first color on the display unit  120  to represent the first connection that corresponds to the first signal strength and the first bandwidth usage rate according to the first signal strength and the first bandwidth usage rate. The processing unit  110  displays the second graphic in the second color on the display unit  120  to represent the second connection that corresponds to the second signal strength and the second bandwidth usage rate according to the second signal strength and the second bandwidth usage rate. The first signal strength is different from the second signal strength, and the first graphic is different from the second graphic. Or the first bandwidth usage rate is different from the second bandwidth usage rate, and the first color is different from the second color. 
         [0039]    In an embodiment, an operation of the electronic device is described hereinafter by referring to  FIG. 3A . 
         [0040]    In the embodiment, the processing unit  110  controls the display unit  120  to display the first graphic F 1  (such as three straight lines) in the first color (such as red) for the connection between the nodes N 1  and N 2  according to the first signal strength (such as −40 dBm) and the first bandwidth usage rate (such as 80%) of the connection between the nodes N 1  and N 2 . The processing unit  110  controls the display unit  120  to display the second graphic F 2  (such as one straight line) in the second color (such as green) to for the connection between the nodes N 2  and N 3  according to the second signal strength (such as −80 dBm) and the second bandwidth usage rate (such as 30%) of the connection between the nodes N 2  and N 3 . 
         [0041]    In such a way, the signal strength and the bandwidth usage rate of the connection between the nodes are intuitively known via the electronic device  100 . 
         [0042]    In an embodiment, the processing unit  110  obtains a state (such as, in a normal service state, in a firmware updating process state or in an abnormal service state) of the nodes in the network  10 . In an embodiment, the processing unit  110  obtains the states of the nodes in the network  10  via the node connected to the electronic device  100 . In an embodiment, the processing unit  110  obtains the state of the nodes in the network  10  via the remote server or the CPU of the network  10 . 
         [0043]    In an embodiment, after obtaining the state of the node in the network  10 , the processing unit  110  displays the state of the node on the display unit  120  graphically or colourably. In an embodiment, a circle is displayed to represent the state of the node when the node is in normal service state, and a triangle is displayed for the node when the node is in an abnormal service state. In an embodiment, the node is represented in green when the node is in a normal service state, and the node is represented in red when the node is in an abnormal service state. 
         [0044]    In an embodiment, an operation of the electronic device is described hereinafter by referring to  FIG. 3B . 
         [0045]    In the embodiment, the processing unit  110  controls the display unit  120  to display the nodes N 1  and N 3  in green according to the states (such as in the normal service state) of the nodes N 1  and N 3 . The processing unit  110  controls the display unit  120  to display the node N 2  in red according to the state (such as in the abnormal service state) of the node N 2 . Additionally, the processing unit  110  controls the display unit  120  to display the first graphic F 1  (such as three straight lines) for the connection between the nodes N 1  and N 2  according to the first signal strength (such as −40 dBm) of the connection between the nodes N 1  and N 2 . The processing unit  110  controls the display unit  120  to display the second graphic F 2  (such as one dashed line, which represents the connection by little signal strength) for the connection between the nodes N 2  and N 3  according to the second signal strength (such as −120 dBm) of the connection between the nodes N 2  and N 3 . The processing unit  110  controls the display unit  120  to display the third graphic (such as one straight line) for the connection between the nodes N 1  and N 3  according to the third signal strength (such as −60 dBm) of the connection between the nodes N 1  and N 3 . 
         [0046]    In such a way, the signal strength and the bandwidth usage rate of the connection between the nodes would be intuitively known via the electronic device  100 . 
         [0047]    In an embodiment, the embodiment shown in  FIG. 3B  can be combined with the embodiment shown in  FIG. 3A . That is, the processing unit  110  controls the display unit  120  to display different graphics and colors for the different connections and the different nodes according to the signal strength and bandwidth usage rate of the different connections between the nodes in the network  10  and the states of the different nodes in the network  10 . Details can refer to related paragraphs mentioned above, which are not described repeatedly. 
         [0048]    In an embodiment, in addition to show the states of the nodes in the network  10 , and the signal strength and the bandwidth usage rate of the connections between the nodes, the processing unit  110  controls the display unit  120  to further display a network topology of the nodes in the network  10  graphically according to the signal strength of the connections between the nodes in the network  10 . 
         [0049]    In an embodiment, the processing unit  110  obtains a plurality of signal strength comparison values that correspond to the connections between the nodes in the network  10  respectively. In an embodiment, the node in the network  10  compares the signal strength of the corresponding connections to generate the signal strength comparison value. In an embodiment, the processing unit  110  obtains the signal strength comparison value of each node in the network  10  via the node connected to the electronic device  100 . In an embodiment, the processing unit  110  obtains the signal strength comparison value of each node in the network  10  via the remote server or the CPU of the network  10 . 
         [0050]    In an embodiment, the processing unit  110  obtains the signal strength of the connections between the nodes in the network  10 , and then compares the signal strength to obtain the signal strength comparison value for each node in the network  10 . 
         [0051]    In an embodiment, after the processing unit  110  obtains the signal strength comparison values that correspond to the nodes in the network  10 , respectively, the processing unit  110  obtains the network topology of the nodes in the network  10  according to the signal strength comparison values. Then, processing unit  110  controls the display unit  120  to display the network topology of the nodes in the network  10  graphically according to the network topology. 
         [0052]    An embodiment is described hereinafter by referring to  FIG. 4  and  FIG. 5 . 
         [0053]    In an embodiment, the network  10  includes the nodes N 1 -N 3 . The electronic device  100  is connected to the nodes N 1  (which is represented by a rectangle). The network topology of the nodes N 1 -N 3  can be one of the network topologies TP 1 -TP 3  shown in  FIG. 4 . An arrangement and connection relationship of the nodes N 1 , N 2  and N 3  are indicated in the network topologies TP 1 -TP 3 . In the network topology TP 1 , the node N 2  is located between the nodes N 1  and N 3 . In the network topology TP 2 , the node N 3  is located between the nodes N 1  and N 2 . In the network topology TP 3 , the node N 1  is located between the nodes N 2  and N 3 . 
         [0054]    In the embodiment, each of the nodes N 1 -N 3  compares the signal strength of the corresponding connections to generate the signal strength comparison value. In an embodiment, the node N 1  compares the signal strength of the connection between the node N 1  and node N 3  with the signal strength of the connection between the node N 1  and node N 2  to determine which one of them is stronger. When the signal strength of the connection between the node N 1  and node N 3  is stronger than the signal strength of the connection between the node N 1  and node N 2 , the signal strength comparison value CMPA “1” is provided to the electronic device  100 . When the signal strength of the connection between the node N 1  and node N 3  is not stronger than the signal strength of the connection between the node N 1  and node N 2 , the signal strength comparison value CMPA “0” is provided to the electronic device  100 . The node N 2  compares the signal strength between the node N 2  and the node N 3  with the signal strength between the node N 2  and the node N 1  to determine which one of them is stronger. When the signal strength between the node N 2  and the node N 3  is stronger than the signal strength between the node N 2  and the node N 1 , the signal strength comparison value CMPB “1” is provided to the electronic device  100 . When the signal strength between the node N 2  and the node N 3  is not stronger than the signal strength between the node N 2  and the node N 1 , the signal strength comparison value CMPB “0” is provided to the electronic device  100 . The node N 3  compares the signal strength between the nodes N 3  and N 1  with the signal strength between the nodes N 3  and N 2  to determine whether which one of them is stronger. When the signal strength between the nodes N 3  and N 1  is stronger than the signal strength between the nodes N 3  and N 2 , the signal strength comparison value CMPC “1” is provided to the electronic device  100 . When the signal strength between the nodes N 3  and N 1  is not stronger than the signal strength between the nodes N 3  and N 2 , the signal strength comparison value CMPC “0” is provided to the electronic device  100 . 
         [0055]    In step S 1 , the processing unit  110  determines whether the signal strength comparison value CMPA corresponding to the node N 1  is 1. When the signal strength comparison value CMPA corresponding to the node N 1  is 1, then step S 2  is performed. When the signal strength comparison value CMPA corresponding to the node N 1  is not 1, step S 4  is performed. 
         [0056]    In step S 2 , the processing unit  110  determines whether the signal strength comparison value CMPA corresponding to the node N 2  is 0. When the signal strength comparison value CMPA corresponding to the node N 2  is 0, the processing unit  110  determines that the network topology of the nodes N 1 -N 3  is the network topology TP 3 . When the signal strength comparison value CMPA corresponding to the node N 2  is not 0, step S 3  is performed. 
         [0057]    In step S 3 , the processing unit  110  determines whether the signal strength comparison value CMPA corresponding to the node N 3  is 0. When the signal strength comparison value CMPA corresponding to the node N 3  is 0, the processing unit  110  determines that the network topology of the nodes N 1 -N 3  is the network topology TP 2 . When the signal strength comparison value CMPA corresponding to the node N 3  is not 0, the processing unit  110  determines that the network topology of the nodes N 1 -N 3  is the network topology TP 3 . 
         [0058]    In step S 4 , the processing unit  110  determines whether the signal strength comparison value CMPA corresponding to the node N 2  is 1 When the signal strength comparison value CMPA corresponding to the node N 2  is 1, the processing unit  110  determines that the network topology of the nodes N 1 -N 3  is the network topology TP 1 . When the signal strength comparison value CMPA corresponding to the node N 2  is not 1, step S 5  is performed. 
         [0059]    In step S 5 , the processing unit  110  determines whether the signal strength comparison value CMPA corresponding to the node N 3  is 0. When the signal strength comparison value CMPA corresponding to the node N 3  is 0, the processing unit  110  determines that the network topology of the nodes N 1 -N 3  is the network topology TP 1 . When the signal strength comparison value CMPA corresponding to the node N 3  is not 0, the processing unit  110  determines that the network topology of the nodes N 1 -N 3  is the network topology TP 3 . 
         [0060]    In such a way, the processing unit  110  determines the network topology of the nodes N 1 -N 3  is which of the network topologies TP 1 -TP 3  according to the signal strength between the nodes N 1 -N 3 . Then, the processing unit  110  controls the display unit  120  to display the network topology of the nodes N 1 -N 3 . 
         [0061]    The values and the comparison method are exemplified only for description. In an embodiment, the values and the comparison method are changed according to the requirements. 
         [0062]    Details of the disclosure are further described by referring to  FIG. 6  where an operation method of an electronic device is provided in an embodiment. 
         [0063]      FIG. 6  is a flow chart of an operation method  200  of an electronic device in an embodiment. In an embodiment, an operation method  200  is implemented via a non-transitory computer readable storage medium. At least a program command is stored in the non-transitory computer readable storage medium. After the program command is loaded on an electronic device, following steps are performed (by the electronic device). In an embodiment, the non-transitory computer readable storage medium is a read-only memory, a flash memory, a soft disk, a hard disk, a compact disk, a mobile storage device, a tape, a database that can be accessed via the network, or another non-transitory computer readable storage mediums. In an embodiment, the operation method  200  is applied in an electronic device similar to the electronic device in  FIG. 1 . In the following embodiment, the method is performed by the electronic device  100  shown in  FIG. 1 , which is not limited herein. 
         [0064]    It should be noted that unless mentioned otherwise, the sequence of the steps of the operation method  200  can be changed according to the requirements. In an embodiment, all/part of the steps are performed simultaneously. 
         [0065]    In embodiments, some steps can be added, replaced or cancelled according to requirements. 
         [0066]    In the embodiment, the operation method  200  includes following steps. 
         [0067]    In step T 1 , the processing unit  110  obtains the signal strength between the nodes of the network  10 . 
         [0068]    In step T 2 , the processing unit  110  controls the display unit  120  to graphically display the connection between the nodes in the network  10  according to the signal strength. 
         [0069]    Details for the method  200  can refer to the related paragraphs mentioned above, which are not repeated herein. 
         [0070]    In such a way, the signal strength of the connection between the nodes would be intuitively known to the user via the electronic device. 
         [0071]    Although the disclosure has been disclosed with reference to certain embodiments thereof, the disclosure is not for limiting the scope. Persons having ordinary skill in the art may make various modifications and changes without departing from the scope of the disclosure. Therefore, the scope of the appended claims should not be limited to the description of the embodiments described above.