Networking identification method and device, electronic equipment and medium
By acquiring and analyzing network port information and identifying the point-to-point networking method in the LAN network, the problem of poor point-to-point network stability in the LAN network is solved, and the determination and stable transmission of service communication methods are realized.
Patent Information
- Application Number
- CN202311394922.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2025-04-25
AI Technical Summary
When forming a local area network, there may be a point-to-point network, which has poor stability and is difficult to determine whether the current networking method is suitable for the current service, making it difficult to determine the service communication method.
After forming a networking between the first terminal device and the second terminal device, network port information is obtained and networking methods are identified based on network port information, including point-to-point networking and local area networking, thereby determining the service communication method.
It realizes the identification of networking methods, determines service communication methods, improves the stability of service transmission, facilitates understanding of the current networking methods, and adapts to different business needs.
Smart Images

Figure CN119893757A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of networking technology, and in particular to a networking identification method, device, electronic device and medium. Background Art
[0002] The networking is a trusted device network topology based on technologies such as low-power, non-sensing connections, which facilitates the construction of distributed scenarios for businesses more conveniently and timely perception of peer device information, services, and status. When networking in a LAN, the type of network port connected is not distinguished. Therefore, when networking in a LAN, there may be a peer-to-peer (P2P) network, and peer-to-peer networks are usually less stable. If the current networking method is not clear, there are many problems. For example, it is difficult to determine whether the current networking method is suitable for the current business. Therefore, a method for identifying networking is urgently needed. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a networking identification method, device, electronic device and medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a networking identification method is provided, the method comprising: after a first terminal device and a second terminal device form a network, obtaining network port information of the first terminal device and / or network port information of the second terminal device in the network; based on the network port information, identifying a networking mode between the first terminal device and the second terminal device in the network, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode.
[0005] Optionally, the identifying the networking mode between the first terminal device and the second terminal device in the networking based on the network port information includes: if the network port information is information about networking through a point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking is through point-to-point networking; if the network port information includes information about networking through a non-point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking includes networking through a local area network.
[0006] Optionally, if the network port information includes information on networking through a non-point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking includes networking through a local area network, includes: if the network port information is information on networking through a non-point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking is networking through a local area network; if the network port information includes information on networking through a non-point-to-point network port and information on networking through a point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking includes networking through a local area network and networking through a point-to-point network port.
[0007] Optionally, the method further includes: determining a service communication mode between the first terminal device and the second terminal device in the networking according to the networking mode; and controlling the first terminal device and the second terminal device to perform service transmission through the service communication mode.
[0008] Optionally, determining the service communication mode between the first terminal device and the second terminal device in the networking according to the networking mode includes: if the networking mode includes networking through a local area network, determining that the service communication mode between the first terminal device and the second terminal device in the networking is a mode of communicating through a local area network.
[0009] Optionally, determining the service communication mode between the first terminal device and the second terminal device in the networking according to the networking mode includes: if the networking mode is through point-to-point networking, determining the service communication mode between the first terminal device and the second terminal device in the networking according to the service type of the transmitted service.
[0010] Optionally, the service communication mode between the first terminal device and the second terminal device in the network is determined based on the service type of the transmitted service, including: if the service type of the transmitted service is a long connection type, determining that the service communication mode between the first terminal device and the second terminal device in the network is through point-to-point communication.
[0011] Optionally, determining the service communication mode between the first terminal device and the second terminal device in the networking based on the service type of the transmitted service includes: if the service type of the transmitted service is a non-long connection type, determining that the service communication mode between the first terminal device and the second terminal device in the networking is a mode of communication through a local area network; controlling the first terminal device and the second terminal device to perform service transmission through the service communication mode includes: controlling the first terminal device and the second terminal device to perform service transmission through a channel of a multiplexed point-to-point networking mode using a local area network communication mode.
[0012] According to a second aspect of an embodiment of the present disclosure, a networking identification device is provided, the device comprising: a networking module, for obtaining, after a first terminal device and a second terminal device form a network, network port information of the first terminal device and / or network port information of the second terminal device in the network; an identification module, for identifying a networking mode between the first terminal device and the second terminal device in the network according to the network port information, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode.
[0013] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps of the networking identification method provided in the first aspect of the present disclosure when executing the instructions.
[0014] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the networking identification method provided in the first aspect of the present disclosure are implemented.
[0015] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: after the first terminal device and the second terminal device form a network, the network port information of the first terminal device and / or the network port information of the second terminal device in the network are obtained; based on the network port information, the specific networking mode between the first terminal device and the second terminal device in the network is identified, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode, so as to facilitate understanding of the current networking mode.
[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0018] Figure 1 is a schematic diagram of a network formed by a first terminal device and a second terminal device according to an exemplary embodiment;
[0019] Figure 2 is a flow chart of a networking identification method according to an exemplary embodiment;
[0020] Figure 3 is a flow chart of a networking identification method according to another exemplary embodiment;
[0021] Figure 4 is a schematic diagram of a network formed by a first terminal device and a second terminal device according to an exemplary embodiment;
[0022] Figure 5 is a schematic diagram of a network formed by a first terminal device and a second terminal device according to an exemplary embodiment;
[0023] Figure 6 is a schematic diagram of a network formed by a first terminal device and a second terminal device according to an exemplary embodiment;
[0024] Figure 7 is a schematic diagram of a network formed by a first terminal device and a second terminal device according to an exemplary embodiment;
[0025] Figure 8 is a schematic diagram of a network formed by a first terminal device and a second terminal device according to an exemplary embodiment;
[0026] Fig. 9 is a schematic diagram of a network formed by a first terminal device and a second terminal device according to an exemplary embodiment;
[0027] Fig.10 is a block diagram of a networking identification device according to an exemplary embodiment;
[0028] Fig.11 The invention is a block diagram of an electronic device applied to a networking identification method according to an exemplary embodiment. DETAILED DESCRIPTION
[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0030] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0031] Networking is a trusted device network topology based on technologies such as low-power, non-sensing connections, which facilitates the business to build distributed scenarios more conveniently and perceive the information, services and status of the peer devices in a timely manner. Networking provides external interfaces to provide upper-layer services and peripheral modules with notifications of device online, offline, and status changes. One of the media types supported by networking is the local area network. When networking a local area network, the type of the connected network port is not distinguished. Therefore, when networking a local area network, there may be a point-to-point network, that is, the real link is a point-to-point connection. The point-to-point connection is only established when it is needed, and it is more inclined to be closed when not in use. Therefore, the network formed by the point-to-point connection is not stable. Therefore, in the scenario of connection reuse, especially when it is necessary to maintain a long-term connection state, the point-to-point network is usually less stable. Therefore, when the current networking method is not clear, it is difficult to determine whether the current networking method is suitable for the current business. Therefore, a method for identifying networking is urgently needed.
[0032] In order to better understand a network identification method, device, electronic device and medium provided by the embodiments of the present disclosure, the following first describes the network involved in the embodiments of the present disclosure. Figure 1 The first terminal device 110 and the second terminal device 120 are both terminal devices that are not networked but have networking needs. On this basis, the first terminal device 110 and the second terminal device 120 both start the self-organizing network function, that is, the first terminal device 110 broadcasts a broadcast message and scans the broadcast messages of other terminal devices. Similarly, the second terminal device 120 broadcasts a broadcast message and scans the broadcast messages of other terminal devices.
[0033] The first terminal device 110 may be a mobile phone, a tablet computer, a computer, a smart watch, a television, etc. The second terminal device 120 may be a mobile phone, a tablet computer, a computer, a smart watch, a television, etc.
[0034] In one case, the broadcast signal broadcast by the first terminal device 110 is scanned by the second terminal device 120. At this time, the second terminal device 120 that scans the broadcast signal serves as the discovery end, and the first terminal device 110 that broadcasts the broadcast signal serves as the broadcast end. In this case, the second terminal device 120 actively initiates networking with the first terminal device 110, that is, the second terminal device 120 establishes a connection with the first terminal device 110 based on the address information of the first terminal device 110 carried in the broadcast signal broadcast by the first terminal device 110, and the first terminal device 110 and the second terminal device 120 are networked. Exemplarily, the second terminal device 120 stores the device address of the terminal device that has been networked with the second terminal device 120, as well as the networking method of networking with the terminal device. The second terminal device 120 compares the address information of the first terminal device 110 with the stored device address. If the address information of the first terminal device 110 is any one of the stored device addresses, the second terminal device 120 obtains the networking mode corresponding to the device address of the first terminal device 110, and the second terminal device 120 establishes a connection with the first terminal device 110 according to the networking mode. If the device address of the first terminal device 110 is different from the stored device address, the second terminal device 120 selects a network port according to the networking strategy, and establishes a connection with the first terminal device 110 through the network port.
[0035] In another case, the broadcast signal broadcast by the second terminal device 120 is scanned by the first terminal device 110. At this time, the first terminal device 110 that scans the broadcast signal serves as the discovery end, and the second terminal device 120 that broadcasts the broadcast signal serves as the broadcast end. In this case, the first terminal device 110 actively initiates networking with the second terminal device 120, that is, the first terminal device 110 establishes a connection with the second terminal device 120 according to the address information of the second terminal device 120 carried in the broadcast signal broadcast by the second terminal device 120, thereby realizing networking between the first terminal device 110 and the second terminal device 120. Exemplarily, the first terminal device 110 stores the device address of the terminal device that has been networked with the first terminal device 110, as well as the networking method of networking with the terminal device. The first terminal device 110 compares the device address of the second terminal device 120 with the stored device address. If the device address of the second terminal device 120 is any one of the stored device addresses, the first terminal device 110 obtains the networking mode corresponding to the device address of the second terminal device 120, and the first terminal device 110 establishes a connection with the second terminal device 120 according to the networking mode. If the device address of the second terminal device 120 is different from the stored device address, the first terminal device 110 selects a network port according to the networking strategy, and establishes a connection with the second terminal device 120 through the network port.
[0036] Optionally, the above broadcast information may be an mDNS (multicast Domain Name System, multicast domain name resolution protocol) broadcast.
[0037] When the first terminal device 110 and the second terminal device 120 are networked using a local area network, point-to-point networking may be mixed therein. Therefore, the first terminal device 110 and the second terminal device 120 may be networked via a local area network, may be networked via a point-to-point network, or may be networked via a local area network combined with a point-to-point network. The specific networking method is identified through a networking identification method provided in the present disclosure.
[0038] This disclosure provides a networking identification method, see Figure 2 The networking identification method can be applied to Figure 1 The first terminal device 110, the second terminal device 120, Fig.10 The network identification device 500 shown, Fig.11 The electronic device 800 and the computer readable storage medium shown in FIG. Figure 2 The process shown is described in detail, and the network identification method may specifically include the following steps:
[0039] Step S210: After the first terminal device and the second terminal device form a network, obtain the network port information of the first terminal device and / or the network port information of the second terminal device in the network.
[0040] The networking of the first terminal device and the second terminal device will be applied to their respective network ports. After the first terminal device and the second terminal device form a network in the manner of the above embodiment, the network port information of the first terminal device and / or the network port information of the second terminal device in the network is obtained.
[0041] It is understandable that the first terminal device and the second terminal device are networked, and the two terminal devices correspond to the same networking mode. Then, the two terminal devices use the same type of network ports to network with each other. Therefore, the network port information of any one of the two terminal devices can be obtained for subsequent identification of the networking mode, that is, the network port information of the first terminal device or the network port information of the second terminal device. Optionally, in order to improve the accuracy of identifying the networking mode, the network port information of the two terminal devices can also be obtained, that is, the network port information of the first terminal device and the network port information of the second terminal device. In this embodiment, the first terminal device and the second terminal device can exchange network port information with each other, which solves the problem in the existing solution that the terminal devices at both ends cannot obtain each other's network card information.
[0042] Step S220: Identify the networking mode between the first terminal device and the second terminal device in the networking according to the network port information, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode.
[0043] The network port information can reflect the networking mode between the first terminal device and the second terminal device. For example, the network port information represents information about networking using a point-to-point network port. Then, the networking mode between the first terminal device and the second terminal device includes a point-to-point networking mode. According to the network port information, the networking mode between the first terminal device and the second terminal device in the networking is identified.
[0044] Optionally, after identifying the networking mode, the networking mode can be displayed on a display screen to facilitate the user to understand the current networking mode. If the current networking mode is not what the user expects, the user can also switch the networking mode between the first terminal device and the second terminal device based on the content displayed on the display screen.
[0045] In this embodiment, a networking identification method is provided. After the first terminal device and the second terminal device form a network, the network port information of the first terminal device and / or the network port information of the second terminal device in the network is obtained; based on the network port information, the specific networking mode between the first terminal device and the second terminal device in the network is identified, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode, so as to facilitate the acquisition of the current networking mode.
[0046] In one embodiment, step S220 includes the following method: if the network port information is information about networking through a point-to-point network port, identifying that the networking method between the first terminal device and the second terminal device in the networking is a point-to-point networking method. For example, in a scenario where both the first terminal device and the second terminal device are mobile phones, refer to Figure 4 and Figure 5 , the first terminal device 410 and the second terminal device 420 are networked through a point-to-point network port, and there is no router coverage device. Therefore, the networking method between the first terminal device and the second terminal device in the network is through a point-to-point networking method, and there is no networking method through a local area network. Among them, the GO (Group Owner) in the figure is a device in the network formed by the point-to-point networking method, responsible for organizing and managing members connected to other devices. GO (GroupOwner) refers to the role of the device connection point in the group formed by the point-to-point networking method.
[0047] If the network port information includes information about networking through a non-point-to-point network port, identifying the networking method between the first terminal device and the second terminal device in the networking includes networking through a local area network. Optionally, the non-point-to-point network port information may be network port information of a router in the local area network, or may be information of an AP (Access Point, wireless access node) hotspot. Exemplarily, if the network port information is information about networking through a non-point-to-point network port, identifying the networking method between the first terminal device and the second terminal device in the networking is networking through a local area network. For example, refer to Figure 6 , the network port information is the information of networking through the network port of the router 430, and there is no information of networking through the point-to-point network port. Therefore, the networking method between the first terminal device 410 and the second terminal device 420 in the networking is the networking method through the local area network, and there is no networking method through the point-to-point network. For another example, please refer to Figure 7 and Figure 8 , the network port information is the information of hotspot networking, and there is no information of point-to-point network port networking. Therefore, the networking mode between the first terminal device 410 and the second terminal device 420 in the networking is the networking mode through the local area network, and there is no point-to-point networking mode. Figure 7 and Figure 8 The Sta (Station) in it refers to the site or client.
[0048] If the network port information includes information about networking through non-point-to-point network ports and information about networking through point-to-point network ports, identifying the networking mode between the first terminal device and the second terminal device in the network includes networking through a local area network and networking through a point-to-point network. Fig. 9 The network port information is the information for networking through the network port of the router 430, and the information for networking through the point-to-point network port. Therefore, the networking method between the first terminal device and the second terminal device in the networking is the networking method through the local area network, and the networking method through the point-to-point network.
[0049] The present disclosure provides a network identification method, referring to Figure 3 , the networking identification method may specifically include the following steps:
[0050] Step S310: After the first terminal device and the second terminal device form a network, obtain the network port information of the first terminal device and / or the network port information of the second terminal device in the network.
[0051] Step S320: Identify the networking mode between the first terminal device and the second terminal device in the networking according to the network port information, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode.
[0052] For the detailed description of steps S310 to S320, please refer to steps S210 to S220, which will not be repeated here.
[0053] Step S330: Determine a service communication mode between the first terminal device and the second terminal device in the network according to the networking mode.
[0054] Optionally, after identifying the networking mode, the terminal device can send the networking mode to the upper layer service, and the upper layer service determines which service communication mode to use for service communication with the opposite terminal device. It should be noted that when the terminal device is the first terminal device, the opposite terminal device is the second terminal device. Alternatively, when the terminal device is the second terminal device, the opposite terminal device is the first terminal device.
[0055] If the networking mode includes networking via a local area network, it is determined that the service communication mode between the first terminal device and the second terminal device in the networking is a communication mode via a local area network.
[0056] If the networking mode is a point-to-point networking mode, the service communication mode between the first terminal device and the second terminal device in the networking is determined according to the service type of the transmitted service. For example, if the service type of the transmitted service is a long connection type, the service communication mode between the first terminal device and the second terminal device in the networking is determined to be a point-to-point communication mode. Alternatively, if the service type of the transmitted service is a non-long connection type, the service communication mode between the first terminal device and the second terminal device in the networking is determined to be a local area network communication mode.
[0057] Step S340: Control the first terminal device and the second terminal device to perform service transmission through the service communication method.
[0058] In particular, if the service type of the transmitted service is a non-long connection type, determine that the service communication method between the first terminal device and the second terminal device in the networking is through a local area network communication method, and control the first terminal device and the second terminal device to use the local area network communication method to transmit the service through a channel of multiplexing point-to-point networking method.
[0059] The networking identification method provided in this embodiment selects a suitable networking type for service transmission after identifying the networking type, thereby improving the stability of service transmission.
[0060] Optionally, when the first terminal device and the second terminal device are neither networked by a LAN nor by a point-to-point network, the network port information can be displayed on the first terminal device and / or the second terminal device. In one method, the user can manually control the first terminal device to input the network port information of the second terminal device to network, or the user can also manually control the second terminal device to input the network port information of the first terminal device to network. In another method, the user holds the first terminal device to scan the network port information of the second terminal device to network, or the user holds the second terminal device to scan the network port information of the first terminal device to network.
[0061] Based on the same inventive concept, the present disclosure also provides a network identification device, see Fig.10 , the networking identification device 500 includes:
[0062] The networking module 510 is used to obtain the network port information of the first terminal device and / or the network port information of the second terminal device in the network after the first terminal device and the second terminal device form a network;
[0063] The identification module 520 is used to identify the networking mode between the first terminal device and the second terminal device in the networking according to the network port information, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode.
[0064] Optionally, the identification module 520 includes:
[0065] A first identification module is used to identify that the networking mode between the first terminal device and the second terminal device in the networking is a point-to-point networking mode if the network port information is information about networking through a point-to-point network port;
[0066] The second identification module is used to identify that the networking method between the first terminal device and the second terminal device in the networking includes networking through a local area network if the network port information includes information about networking through a non-point-to-point network port.
[0067] Optionally, the second identification module includes:
[0068] A third identification module is used to identify that the networking mode between the first terminal device and the second terminal device in the networking is a networking mode through a local area network if the network port information is information about networking through a non-point-to-point network port;
[0069] The fourth identification module is used to identify that the networking method between the first terminal device and the second terminal device in the networking includes a method of networking through a local area network and a method of networking through a point-to-point network port if the network port information includes information on networking through a non-point-to-point network port and information on networking through a point-to-point network port.
[0070] Optionally, the networking identification device 500 further includes:
[0071] A determination module, configured to determine, according to the networking mode, a service communication mode between the first terminal device and the second terminal device in the networking;
[0072] The transmission module is used to control the first terminal device and the second terminal device to perform service transmission via the service communication method.
[0073] Optionally, the determination module includes:
[0074] The first determination module is used to determine that the service communication mode between the first terminal device and the second terminal device in the networking is a mode of communicating through a local area network if the networking mode includes a mode of networking through a local area network.
[0075] Optionally, the determination module includes:
[0076] The second determination module is used to determine the service communication mode between the first terminal device and the second terminal device in the networking according to the service type of the transmitted service if the networking mode is a point-to-point networking mode.
[0077] Optionally, the second determining module includes:
[0078] The third determination module is used to determine that the service communication mode between the first terminal device and the second terminal device in the network is through point-to-point communication if the service type of the transmitted service is a long connection type.
[0079] Optionally, the second determining module includes:
[0080] a fourth determination module, configured to determine, if the service type of the transmitted service is a non-long connection type, that the service communication mode between the first terminal device and the second terminal device in the network is a mode of communicating through a local area network;
[0081] Optionally, the transmission module includes:
[0082] The service transmission module is used to control the first terminal device and the second terminal device to perform service transmission by using a local area network communication method through a channel multiplexing a point-to-point networking method.
[0083] Regarding the networking identification device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0084] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the networking identification method provided by the present disclosure are implemented.
[0085] Fig.11 8 is a block diagram of an electronic device applied to a networking identification method according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0086] Reference Fig.11 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .
[0087] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0088] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0089] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0090] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0091] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0092] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0093] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0094] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0095] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0096] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0097] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC, system on chip or system-level chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned networking identification method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, such as the integrated circuit or chip including a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned networking identification method is implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned networking identification method.
[0098] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above networking identification method when executed by the programmable device.
[0099] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0100] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A network identification method, characterized in that: The method comprises: After the first terminal device and the second terminal device form a network, obtaining network port information of the first terminal device and / or network port information of the second terminal device in the network; According to the network port information, a networking mode between the first terminal device and the second terminal device in the networking is identified, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode.
2. The method according to claim 1, characterized in that The identifying, according to the network port information, a networking mode between the first terminal device and the second terminal device in the networking includes: If the network port information is information about networking through a point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking is through a point-to-point networking mode; If the network port information includes information about networking through a non-point-to-point network port, identifying the networking method between the first terminal device and the second terminal device in the networking includes networking through a local area network.
3. The method according to claim 2, characterized in that If the network port information includes information about networking through a non-point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking includes networking through a local area network, includes: If the network port information is information about networking through a non-point-to-point network port, identifying that the networking mode between the first terminal device and the second terminal device in the networking is a networking mode through a local area network; If the network port information includes information on networking through a non-point-to-point network port and information on networking through a point-to-point network port, identifying the networking method between the first terminal device and the second terminal device in the networking includes networking through a local area network and networking through a point-to-point network.
4. The method according to claim 1, characterized in that: Also includes: Determining, according to the networking mode, a service communication mode between the first terminal device and the second terminal device in the networking; Control the first terminal device and the second terminal device to perform service transmission through the service communication method.
5. The method according to claim 4, characterized in that The determining, according to the networking mode, a service communication mode between the first terminal device and the second terminal device in the networking includes: If the networking mode includes networking via a local area network, it is determined that the service communication mode between the first terminal device and the second terminal device in the networking is a communication mode via a local area network.
6. The method according to claim 4, characterized in that The determining, according to the networking mode, a service communication mode between the first terminal device and the second terminal device in the networking includes: If the networking mode is a point-to-point networking mode, the service communication mode between the first terminal device and the second terminal device in the networking is determined according to the service type of the transmitted service.
7. The method according to claim 6, characterized in that The determining, according to the service type of the transmitted service, a service communication mode between the first terminal device and the second terminal device in the network includes: If the service type of the transmitted service is a long connection type, it is determined that the service communication mode between the first terminal device and the second terminal device in the network is through a point-to-point communication mode.
8. The method according to claim 6, characterized in that The determining, according to the service type of the transmitted service, a service communication mode between the first terminal device and the second terminal device in the network includes: If the service type of the transmitted service is a non-long connection type, determining that the service communication mode between the first terminal device and the second terminal device in the network is a mode of communicating through a local area network; The controlling the first terminal device and the second terminal device to perform service transmission through the service communication mode includes: Control the first terminal device and the second terminal device to perform service transmission using a local area network communication method by multiplexing a point-to-point networking channel.
9. A network identification device, characterized in that: include: A networking module, used to obtain the network port information of the first terminal device and / or the network port information of the second terminal device in the network after the first terminal device and the second terminal device form a network; An identification module is used to identify the networking mode between the first terminal device and the second terminal device in the networking according to the network port information, wherein the networking mode includes a point-to-point networking mode and / or a local area network networking mode.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the steps of the method in any one of claims 1 to 8 when executing the instructions.
11. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.