WO2024067385A1 - 局域网通信方法、电子设备、车辆、系统及介质 - Google Patents
局域网通信方法、电子设备、车辆、系统及介质 Download PDFInfo
- Publication number
- WO2024067385A1 WO2024067385A1 PCT/CN2023/120601 CN2023120601W WO2024067385A1 WO 2024067385 A1 WO2024067385 A1 WO 2024067385A1 CN 2023120601 W CN2023120601 W CN 2023120601W WO 2024067385 A1 WO2024067385 A1 WO 2024067385A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- lan
- hotspot
- local area
- area network
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 224
- 238000004891 communication Methods 0.000 title claims abstract description 201
- 230000004048 modification Effects 0.000 claims description 70
- 238000012986 modification Methods 0.000 claims description 70
- 230000008859 change Effects 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012544 monitoring process Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 abstract description 16
- 230000005540 biological transmission Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W16/00—Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
- H04W16/18—Network planning tools
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
- H04W12/062—Pre-authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- Y—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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to a local area network communication method, electronic equipment, vehicle, system and medium.
- devices can be automatically added to a wireless network through WPS (Wi-Fi Protected Setup), thereby achieving the establishment and access of a wireless LAN.
- WPS Wi-Fi Protected Setup
- the embodiments of the present application provide a local area network communication method, electronic equipment, vehicle, system and medium, which can solve the problems such as great security risks in the wireless local area network connection process in the prior art.
- a local area network communication method applied to a first device, comprising:
- Acquire at least one second device connected to the first device through a preset wired communication method, wherein the first device is used to provide a wireless access hotspot to any second device;
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information.
- a local area network communication method, applied to the second device, includes:
- the second device establishes a wireless local area network connection with the first device according to the initial hotspot information.
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information, including:
- the first device establishes a wireless local area network connection with the second device that sends the first hotspot connection request or the second device that responds to the initial hotspot information according to the initial hotspot information.
- the method further includes:
- the hotspot information modification request includes at least one of user name modification information, password modification information, and wireless network encryption mode modification information;
- the initial hotspot information is modified to updated hotspot information according to the hotspot information modification request;
- the first device and the second device re-establish the wireless local area network connection according to the updated hotspot information.
- the method further includes:
- the first central control message includes first UDP data and first device information of the first device; the first UDP data is used to trigger any second device to send a LAN broadcast message to the wireless LAN;
- Execute LAN device identification measures based on the monitored LAN broadcast messages.
- the local area network broadcast message includes a first device message that the second device broadcasts in reply after receiving the first central control message; the first device message includes second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the first LAN device list includes first device information of the first device and second device information of all second devices that establish wireless LAN connection with the first device.
- the LAN broadcast message includes a second device message broadcasted for the first time after the second device establishes a wireless LAN connection with the first device;
- the second device message includes second UDP data and second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the second device information included in the second device message is added to the first LAN device list, and at the same time, a second central control message is broadcasted to the second device that broadcasts the second device message, so that the second device can add the first device information of the first device included in the second central control message to the second LAN device list;
- the first LAN device list and the second LAN device list both include the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the method further includes:
- the change information indicates that a second device that is disconnected from the wireless local area network with the first device is newly added, the second device that is disconnected from the wireless local area network with the first device is deleted from the first local area network device list to update the first local area network device list;
- the change information is synchronously broadcast to all second devices that have established wireless LAN connection with the first device, so that the second devices can synchronously delete the second devices that have disconnected the wireless LAN connection with the first device from the second LAN device list according to the change information.
- the method further includes:
- the first device determines whether to disconnect from the second device
- the judgment result is yes, after the first device receives the second hotspot connection request sent by the second device through the preset wired communication method, the current hotspot information of the wireless access hotspot is fed back to the second device that sent the second hotspot connection request through the preset wired communication method;
- the first device and the second device establish a wireless local area network connection according to the current hotspot information.
- the preset wired communication mode includes one or more of Ethernet communication, CAN bus communication, and LIN communication.
- a local area network communication method comprising:
- the front central control display screen and the rear display screen establish a wireless LAN connection based on the initial hotspot information.
- An electronic device is used to execute the local area network communication method applied to the first device; or the electronic device is used to execute the local area network communication method applied to the second device.
- the electronic device is a display screen.
- a vehicle comprising the above electronic device.
- a local area network communication system includes a first device and a second device, wherein the first device is used to perform the following steps:
- Acquire at least one second device connected to the first device through a preset wired communication method, wherein the first device is used to provide a wireless access hotspot to any second device;
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information
- the second device is used to perform the following steps:
- the second device establishes a wireless local area network connection with the first device according to the initial hotspot information.
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information, including:
- the first device establishes a wireless local area network connection with the second device that sends the first hotspot connection request or the second device that responds to the initial hotspot information according to the initial hotspot information.
- the first device is further configured to perform the following steps:
- the hotspot information modification request includes at least one of user name modification information, password modification information, and wireless network encryption mode modification information;
- the initial hotspot information is modified to updated hotspot information according to the hotspot information modification request;
- the first device and the second device re-establish the wireless local area network connection according to the updated hotspot information.
- the first device is further configured to perform the following steps:
- the first central control message includes first UDP data and first device information of the first device; the first UDP data is used to trigger any second device to send a LAN broadcast message to the wireless LAN;
- Execute LAN device identification measures based on the monitored LAN broadcast messages.
- the local area network broadcast message includes a first device message that the second device broadcasts in reply after receiving the first central control message; the first device message includes second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the second device information included in the first device message is added to the first LAN device list, which includes the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the LAN broadcast message includes a second device message broadcasted for the first time after the second device establishes a wireless LAN connection with the first device;
- the second device message includes second UDP data and second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the second device information included in the second device message is added to the first LAN device list
- a second central control message is broadcast in reply to the second device that broadcasts the second device message, so that the second device can add the first device information of the first device included in the second central control message to the second LAN device list;
- the first LAN device list and the second LAN device list both include the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the first device after executing the LAN device identification measure according to the monitored LAN broadcast message, the first device is further configured to execute the following steps:
- the change information indicates that a second device that is disconnected from the wireless local area network with the first device is newly added, the second device that is disconnected from the wireless local area network with the first device is deleted from the first local area network device list to update the first local area network device list;
- the change information is synchronously broadcast to all second devices that have established wireless LAN connection with the first device, so that the second devices can synchronously delete the second devices that have disconnected the wireless LAN connection with the first device from the second LAN device list according to the change information.
- the first device is further configured to perform the following steps:
- the first device determines whether to disconnect from the second device
- the judgment result is yes, after the first device receives the second hotspot connection request sent by the second device through the preset wired communication method, the current hotspot information of the wireless access hotspot is fed back to the second device that sent the second hotspot connection request through the preset wired communication method;
- the first device and the second device establish a wireless local area network connection according to the current hotspot information.
- the preset wired communication mode includes one or more of Ethernet communication, CAN bus communication, and LIN communication.
- a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the local area network communication method applied to a first device; or, when executed by a processor, implements the local area network communication method applied to a second device.
- the initial hotspot information of the wireless access hotspot is sent to any second device via the preset wired communication method, wherein the initial hotspot information is used to provide any second device with authentication information for accessing the wireless access hotspot; the first device and the second device establish a wireless LAN connection based on the initial hotspot information.
- the automatic establishment of a wireless LAN can be achieved through the above-mentioned LAN communication method of the present application, and during the automatic establishment of the wireless LAN of the present application, the first device must provide the second device with authentication information for accessing the wireless access hotspot (such as wireless hotspot information) via the preset wired communication method.
- the initial hotspot information of the line access hotspot therefore, the local area network communication method of the present application is safer and more convenient.
- FIG. 1 is a flow chart of a local area network communication method in an embodiment of the present application.
- FIG. 2 is a flow chart of a local area network communication method in another embodiment of the present application.
- FIG3 is a flow chart of a local area network communication method in another embodiment of the present application.
- FIG. 4 is a flow chart of a local area network communication method in yet another embodiment of the present application.
- a local area network communication method is provided, which is applied to a first device and includes the following steps S10-S30:
- the preset wired communication method includes one or more of Ethernet communication, CAN (Controller Area Network) bus communication, and LIN communication. Specifically, after the first device is turned on, it will first actively acquire the connection information of the preset wired communication method to determine whether there is a second device currently connected to it through the preset wired communication method.
- the first device will automatically open its own wireless access hotspot so as to realize the automatic establishment of a wireless local area network through the wireless access hotspot; if it is determined that there is currently no second device connected to the first device through the preset wired communication method, the wireless access hotspot will not be opened.
- the initial hotspot information includes but is not limited to a user name, a password, and a wireless network encryption method; in this step, the action of the first device sending the initial hotspot information to the second device may be actively sent or periodically sent to any second device after the user triggers a preset button; or it may be that after the first device receives the first hotspot connection request sent by the second device through a preset wired communication method, the initial hotspot information is fed back to the second device that sent the first hotspot connection request through a preset wired communication method.
- the wireless access hotspot of the first device is a hotspot of the wireless local area network.
- the first device will monitor the information sent through the preset wired communication method, for example, when the preset wired communication method is a CAN bus connection, it monitors the CAN message sent through the CAN bus. Understandably, if the first device monitors the first hotspot connection request sent by the second device through the preset wired communication method (the first hotspot connection request is used to request to obtain the initial hotspot information of the wireless access hotspot), the initial hotspot information currently set by the wireless access hotspot will be sent to the second device through the preset wired communication method.
- each second device on the vehicle after each second device on the vehicle is turned on, it will first actively send a first hotspot connection request to the first device through the preset wired communication method, and at the same time monitor the hotspot information sent by the first device (such as the above-mentioned initial hotspot information or the updated hotspot information mentioned later). Understandably, since the initial hotspot information of the first device is sent directly to the second device through the wired transmission medium of the preset wired communication method, the security issues that may be caused by the openness of wireless transmission during wireless transmission are avoided.
- step S30 the first device and the second device establish a wireless LAN connection according to the initial hotspot information.
- step S30 includes: the first device and the second device that sends the first hotspot connection request or the second device that responds to the initial hotspot information establish a wireless LAN connection according to the initial hotspot information. That is, the second device that establishes a wireless LAN connection with the first device can only be the second device that sends the first hotspot connection request and obtains the initial hotspot information fed back by the second device; or the second device that directly receives the initial hotspot information sent by the first device and responds to the initial hotspot information.
- the second device when the second device receives the initial hotspot information sent by the first device, it will use the information contained in the initial hotspot information to The user name, password, and wireless network encryption method are used to establish a wireless local area network connection with the first device.
- the access point of the wireless local area network is the wireless access hotspot of the first device. Therefore, the first device serves as the manager of the wireless local area network, and the second device connected to the first device through a preset wired communication method is the workstation of the wireless local area network, which cooperates in the management of the wireless local area network.
- the wireless network encryption method can be a safe WPA2 (WPA is the main wifi encryption authentication method of the WIFI Alliance), WPA3 encryption method, or WAPI encryption that meets China's mandatory authentication requirements.
- the above embodiment of the present application can arbitrarily set the wireless network encryption method in the initial hotspot information according to needs. It only needs to send the above initial hotspot information to each second device through the first device after setting, so that the second device and the first device can establish a wireless local area network according to the above-mentioned wireless network encryption method.
- the present application can support the automatic establishment of a local area network of any wireless network encryption type, greatly improving the scalability of the wireless network encryption method, and facilitating the adaptation to the update of encryption technology.
- the username and password in the initial hotspot information in this application can also be set according to needs, rather than only being generated through WPS or VIN code. Therefore, the username and password in this application can also be set according to needs, which is convenient to operate and improves the user experience.
- the automatic establishment of a wireless local area network can be achieved through the local area network communication method, and in the automatic establishment process of the wireless local area network of the present application, the first device must provide the second device with authentication information for accessing the wireless access hotspot (such as the initial hotspot information of the wireless access hotspot) through a preset wired communication method. Therefore, the local area network communication method of the present application is safer and more convenient.
- the wireless access hotspot of the first device is turned on; after the first device receives the first hotspot connection request sent by the second device through the preset wired communication method, the first device can send the initial hotspot information (including user name, password and wireless network encryption method) to all second devices connected to it through the preset wired communication method through the preset wired communication method, so that the second device can establish a wireless local area network connection with the first device through any set wireless network encryption method (supporting any type of wireless network encryption method), that is, the automatic establishment of a wireless local area network can be achieved through the above-mentioned local area network communication method of the present application, and the wireless network encryption method of the present application is not limited. Therefore, the automatic establishment process of the wireless local area network of the present application is safer, more convenient, and easier to cope with and support complex and diverse wireless network encryption methods.
- step S30 that is, after the first device and the second device establish a wireless local area network connection according to the initial hotspot information, the following further includes:
- the hotspot information modification request includes at least one of the user name modification information, password modification information, and wireless network encryption method modification information; wherein the hotspot information modification request includes at least one of the user name modification information, password modification information, or wireless network encryption method modification information; in the present application, the hotspot information modification request can be sent by the second device through a preset wired communication method, or can be directly generated after the first device modifies the current hotspot information.
- the hotspot information of the first device allows modification through the user interface of the first device or the second device.
- a hotspot information modification request After the user modifies the initial hotspot information through the user interface of one of the second devices, a hotspot information modification request will be sent to the first device through the preset wired communication method.
- the first device can determine that there is a hotspot information modification request after receiving the hotspot information modification request; and after the user modifies the initial hotspot information through the user interface of the first device, a hotspot information modification request is directly generated.
- the first device can directly determine that there is a hotspot information modification request.
- the hotspot information modification request includes the modification content edited and modified by the user in the above-mentioned user interface, such as one or more of the user name modification information, password modification information, or wireless network encryption method modification information.
- the initial hotspot information is modified to updated hotspot information according to the hotspot information modification request; understandably, when the first device detects that there is currently a hotspot information modification request, it is determined that the initial hotspot information is modified. At this time, the initial hotspot information will be automatically modified to updated hotspot information according to the modification content in the above hotspot modification request.
- the updated hotspot information is sent to all second devices connected to the first device via a preset wired communication method; specifically, after the first device modifies the initial hotspot information to the updated hotspot information based on the hotspot information modification request, the updated hotspot information is sent to all second devices connected to the wireless access hotspot of the first device in the wireless local area network via a preset wired communication method, thereby facilitating other second devices to re-establish a wireless local area network connection with the first device based on the above-mentioned updated hotspot information.
- the first device and the second device re-establish the wireless local area network connection according to the updated hotspot information.
- the second device will start a background thread to monitor in real time whether the preset wired communication method has transmitted a new message sent by the first device (such as a message containing updated hotspot information) to respond to changes in the initial hotspot information of the first device.
- the second device detects that there is updated hotspot information sent by the first device, it will save the updated hotspot information and automatically establish a local area network connection with the first device using the user name, password and wireless network encryption method in the updated hotspot information.
- the present application can allow the user to modify the initial hotspot information (including user name, password, and wireless network encryption method) through the user interface of the first device or the second device, and then after the first device monitors the hotspot information modification request containing the modified content, the initial hotspot information is modified to updated hotspot information, and the updated hotspot information is sent to all second devices connected to the first device through a preset wired communication method. After the user completes the modification of the hotspot information, the wireless local area network is reorganized to facilitate user use.
- the initial hotspot information including user name, password, and wireless network encryption method
- step S30 that is, after the first device and all second devices establish a wireless local area network connection according to the initial hotspot information, the method further includes:
- the first device determines whether to disconnect from the second device; that is, after the first device establishes a wireless LAN connection with all second devices based on the initial hotspot information, some second devices may be temporarily powered off or shut down due to other faults. At this time, the second device will be disconnected from the first device, and after restarting, it may also be necessary to re-establish the wireless LAN connection. Therefore, at this time, it is necessary to first determine whether the first device is disconnected from any second device.
- the current hotspot information of the wireless access hotspot is fed back to the second device that sent the second hotspot connection request through the preset wired communication method; that is, after confirming that a second device is disconnected from the first device, if the second device needs to re-establish a wireless LAN connection with the first device after being restarted, at this time, the second device will send a second hotspot connection request to the first device through the preset wired communication method (the second hotspot connection request is used to request to obtain real-time hotspot information corresponding to the wireless access hotspot, that is, current hotspot information).
- the first device After receiving the second hotspot connection request sent by the second device through the preset wired communication method, the first device will feed back the current hotspot information of the wireless access hotspot to the second device that sent the second hotspot connection request through the preset wired communication method.
- the first device and the second device establish a wireless local area network connection according to the current hotspot information. That is, after the second device receives the current hotspot information of the wireless access hotspot, the first device and the second device establish a wireless local area network connection according to the current hotspot information. That is, after the second device receives the current hotspot information sent by the first device, it will establish a wireless local area network connection with the first device through the user name, password, and wireless network encryption method contained in the current hotspot information.
- step S30 that is, after the wireless access hotspot and the second device establish a wireless local area network connection according to the user name, password, and wireless network encryption method, the following steps are included:
- the first central control message includes the first UDP (User Datagram Protocol) data and the first device information of the first device; the first UDP data is used to trigger any second device to send a LAN broadcast message to the wireless LAN; wherein, the first device, as an access point and manager of the wireless LAN, will broadcast the first central control message to the IP layer in the wireless LAN after discovering that a second device is connected to its own wireless access hotspot, wherein the broadcast data packet of the first central control message includes The first UDP data and the first device information of the first device, etc., specifically, the first UDP data refers to the UDP_FIND field, and the UDP_FIND field includes the first device ID (unique identifier) corresponding to the first device, etc.; the first device information includes the first device ID of the first device and the central control IP address, etc., and the first central control message may also include other content in addition to the
- the wireless access hotspot After the wireless access hotspot establishes a wireless LAN connection with the second device, while the first device broadcasts the first central control message to the IP layer in the wireless LAN, it also listens to the LAN broadcast messages in the wireless LAN, that is, listens to all LAN broadcast messages broadcast by the second device.
- the LAN broadcast message includes but is not limited to the first device message and the second device message.
- the first device message refers to the message that the second device broadcasts in reply after receiving the first central control message sent by the first device. That is, before the first device sends the first central control message, the second device that sends the first device message is continuously in the power-on state and connected to the first device through a preset wired communication method, so that the first central control message can be received.
- the second device message refers to the message that is broadcast for the first time after the second device establishes a wireless LAN connection with the first device; that is, before the first device sends the first central control message, the second device that sends the second device message is in the power-off state due to a fault or power outage, and is not turned on until the first device sends the first central control message and is connected to the wireless access hotspot of the first device through
- the wireless LAN connection is established by the preset wired communication method.
- the first device that receives the above-mentioned second device message will broadcast a reply to the first device information
- the second device that receives the above-mentioned second device message will also broadcast a reply to its own second device information.
- the second device that broadcasts the second device message will be added to the LAN device list corresponding to the local device (that is, the second LAN device list mentioned later) after receiving all the device information (the first device information and the second device information) of the broadcast reply.
- the LAN broadcast message includes a first device message that the second device broadcasts in reply after receiving the first central control message; the first device message includes second device information of the second device (the second device information includes the second device ID of the second device and the device IP address, etc.); further, step S50, that is, executing LAN device identification measures according to the monitored LAN broadcast message, includes: if the first device message is monitored, the second device information included in the first device message is added to the first LAN device list, and the first LAN device list includes the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- step S40 broadcasting the first central control message to the IP layer in the wireless LAN and monitoring the LAN broadcast message in the wireless LAN at the same time
- the second device in the wireless LAN monitors the UDP_FIND field in the first central control message, it will broadcast a reply message to the first device, and the first device will save the second device information in the first LAN device list after receiving the first device message.
- the LAN broadcast message includes a second device message broadcast for the first time after the second device establishes a wireless LAN connection with the first device; the second device message includes second UDP data and second device information of the second device; further, step S40, executing LAN device identification measures according to the monitored LAN broadcast message, including: if the second device message is monitored, adding the second device information included in the second device message to the first LAN device list, and at the same time broadcasting a reply second central control message to the second device that broadcasts the second device message, so that the second device adds the first device information of the first device included in the second central control message to the second LAN device list; the first LAN device list and the second LAN device list both include the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the first device starts monitoring detection of the second device in the wireless LAN in step S40 (broadcasting the first central control message to the IP layer in the wireless LAN and monitoring the LAN broadcast message in the wireless LAN)
- the second device in the wireless LAN has just been turned on and has not received the first central control message, it will directly start broadcasting the second device message, and the first device will also save the second device information in the above second device message to the first LAN device list.
- the first device that receives the above second device message will broadcast a reply to the first device information
- the second device that receives the above second device message will also broadcast a reply to its own second device information.
- the second device that broadcasts the second device message will be added to the LAN device list corresponding to the local device (that is, the second LAN device list mentioned later) after receiving all the device information (first device information and second device information) in the broadcast reply.
- the first LAN device list and the second LAN device list both include the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the first LAN device list and the second LAN device list may refer to different lists stored in the first device and the second device, respectively. Therefore, the above method can keep the data in the first LAN device list and the second LAN device list synchronized.
- the first LAN device list (and the second LAN device list) can be used at the IP level to identify and manage all devices in the wireless LAN, thereby providing accurate services for other upper-layer https and other network requirements.
- the present application can realize accurate identification of LAN devices that are not oriented to specific services, that is, through the customized UDP_FIND field and broadcast reply mechanism, without binding a specific service (without binding a specific service, the mechanism for identifying the device does not depend on the provision of the service), quickly identify all devices in the wireless LAN, and provide basic services for more business scenarios and accurate identification in the wireless LAN; the device of the present application is convenient for business expansion and accurate identification. Understandably, in some embodiments, the first LAN device list and the second LAN device list may also refer to the same list stored in a certain list that can be accessed by the first device and the second device, that is, the entire wireless LAN can share a unified LAN device list.
- step S50 that is, after executing the LAN device identification measure according to the monitored LAN broadcast message, the following steps are included:
- the first LAN device list includes the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device; that is, the first device also needs to monitor the change information of the second device connected to the first device through the wireless access hotspot, and the change information may include the change in the number of second devices currently connected to the first device in real time through the wireless access hotspot and the specific device information, so that the change information can be used to detect whether the second device with a certain device IP address joins or exits the wireless LAN.
- the second device that has been disconnected from the wireless LAN connection with the first device will be deleted from the first LAN device list to update the first LAN device list; that is, when the change information indicates that a second device has been newly added that has been disconnected from the wireless LAN connection with the first device, it indicates that a second device that has exited the wireless LAN has been newly added.
- the entry corresponding to the second device can be deleted from the first LAN device list.
- the change information is synchronously broadcasted to all second devices that have established wireless LAN connections with the first device, so that the second devices can synchronously delete the second device that has disconnected from the wireless LAN connection with the first device from the second LAN device list according to the change information. That is, after deleting the second device that has exited the wireless LAN from the first LAN device list, other second devices currently existing in the wireless LAN in real time are synchronously notified through wireless LAN broadcasting, and the corresponding entry of the second device that has exited the wireless LAN is deleted from the second LAN device list according to the change information.
- the above-mentioned LAN communication method of the present application can quickly identify all devices in the wireless LAN without binding to a specific service (when not bound to a specific service, the mechanism for identifying the device does not depend on the provision of the service), and provide basic services for more business scenario needs and accurate identification in the wireless LAN. It is a method for accurately identifying LAN devices that is not oriented to specific services.
- the above-mentioned LAN communication method is suitable for the automotive field.
- the present application also provides an electronic device, which is used to execute the above-mentioned local area network communication method. Specifically, when the electronic device is a first device, it is used to execute the following steps:
- Acquire at least one second device connected to the first device through a preset wired communication method, wherein the first device is used to provide a wireless access hotspot to any second device;
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information.
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information, including:
- the first device establishes a wireless local area network connection with the second device that sends the first hotspot connection request or the second device that responds to the initial hotspot information according to the initial hotspot information.
- the method further includes:
- the hotspot information modification request includes at least one of user name modification information, password modification information, and wireless network encryption mode modification information;
- the initial hotspot information is modified to updated hotspot information according to the hotspot information modification request;
- the first device and the second device re-establish the wireless local area network connection according to the updated hotspot information.
- the method further includes:
- the first central control message includes first UDP data and first device information of the first device; the first UDP data is used to trigger any second device to send a LAN broadcast message to the wireless LAN;
- Execute LAN device identification measures based on the monitored LAN broadcast messages.
- the local area network broadcast message includes a first device message that the second device broadcasts in reply after receiving the first central control message; the first device message includes second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the second device information included in the first device message is added to the first LAN device list, which includes the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the LAN broadcast message includes a second device message that is broadcasted for the first time after the second device establishes a wireless LAN connection with the first device;
- the second device message includes second UDP data and second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the second device information included in the second device message is added to the first LAN device list, and at the same time, a second central control message is broadcasted to the second device that broadcasts the second device message, so that the second device can add the first device information of the first device included in the second central control message to the second LAN device list;
- the first LAN device list and the second LAN device list both include the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the method further includes:
- the change information indicates that a second device that is disconnected from the wireless local area network with the first device is newly added, the second device that is disconnected from the wireless local area network with the first device is deleted from the first local area network device list to update the first local area network device list;
- the change information is synchronously broadcast to all second devices that have established wireless LAN connection with the first device, so that the second devices can synchronously delete the second devices that have disconnected the wireless LAN connection with the first device from the second LAN device list according to the change information.
- the method further includes:
- the first device determines whether to disconnect from the second device
- the judgment result is yes, after the first device receives the second hotspot connection request sent by the second device through the preset wired communication method, the current hotspot information of the wireless access hotspot is fed back to the second device that sent the second hotspot connection request through the preset wired communication method;
- the first device and the second device establish a wireless local area network connection according to the current hotspot information.
- the preset wired communication mode includes one or more of Ethernet communication, CAN bus communication, and LIN communication.
- Each module in the above-mentioned electronic device can be implemented in whole or in part by software, hardware and a combination thereof.
- Each of the above-mentioned modules can be embedded in or independent of the electronic device in the form of hardware, or can be stored in the electronic device in the form of software, so that the electronic device can call and execute the operations corresponding to each of the above modules.
- the present application further provides a local area network communication method, which is applied to a second device, including:
- S100 determining a first device connected to a second device via a preset wired communication method; wherein the first device is used to provide a wireless access hotspot to any second device;
- S200 receiving initial hotspot information of a wireless access hotspot sent by a first device through a preset wired communication method, wherein the initial hotspot information is used for the first device to provide authentication information for accessing the wireless access hotspot to any second device;
- the second device establishes a wireless local area network connection with the first device according to the initial hotspot information.
- step S300 the method further includes:
- the first device modifies the initial hotspot information to the updated hotspot information according to the hotspot information modification request, if the updated hotspot information sent by the first device through a preset wired communication method is received, the second device and the second device re-establish the wireless local area network connection according to the updated hotspot information;
- the hotspot information modification request includes at least one of the user name modification information, password modification information and wireless network encryption method modification information.
- step S300 the method further includes:
- a second hotspot connection request is sent to the first device via a preset wired communication method.
- the second device After receiving the current hotspot information of the wireless access hotspot fed back by the first device via the preset wired communication method, the second device establishes a wireless LAN connection with the first device based on the current hotspot information.
- step S300 the method further includes:
- the first central control message After receiving the first central control message broadcast by the first device, broadcast a reply message to the first device, so that after the first device monitors the first device message, the second device information of the second device included in the first device message is added to the first local area network device list;
- the first central control message includes the first UDP data and the first device information of the first device;
- the first UDP data is used to trigger any second device to send a local area network broadcast message to the wireless local area network;
- the first local area network device list includes the first device information of the first device and the first device information established with the first device The second device information of all second devices connected to the established wireless local area network.
- step S300 the method further includes:
- the second device message Broadcast the second device message, so that after the first device monitors the second device message, the second device information of the second device included in the second device message is added to the first local area network device list;
- the second device message refers to the message broadcasted for the first time after the second device establishes a wireless local area network connection with the first device;
- the second device message includes the second UDP data and the second device information;
- the first local area network device list includes the first device information of the first device and the second device information of all second devices that establish a wireless local area network connection with the first device;
- the receiving first device broadcasts a second central control message in reply after monitoring the message from the second device, and adds the first device information of the first device included in the second central control message to the second local area network device list;
- the second local area network device list includes the first device information of the first device and the second device information of all second devices that establish a wireless local area network connection with the first device.
- step S300 the method further includes:
- the first local area network device list includes first device information of the first device and second device information of all second devices that have established a wireless local area network connection with the first device; when the first device confirms that the change information indicates that a second device that has disconnected from the wireless local area network connection with the first device is newly added, the second device that has disconnected from the wireless local area network connection with the first device is deleted from the first local area network device list and then broadcast synchronously;
- the second device that disconnects the wireless LAN connection with the first device is synchronously deleted from the second LAN device list;
- the second LAN device list includes the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the LAN communication method applied to the second device in the above embodiment of the present application corresponds to the LAN communication method applied to the first device in the present application, and will not be repeated here.
- the above LAN communication method of the present application can realize the automatic establishment of a wireless LAN, and during the automatic establishment of the wireless LAN of the present application, the first device must provide the second device with authentication information for accessing the wireless access hotspot (such as the initial hotspot information of the wireless access hotspot) through a preset wired communication method. Therefore, the LAN communication method of the present application is safer and more convenient.
- the present application also provides an electronic device, which is used to execute the above-mentioned local area network communication method. Specifically, when the electronic device is a second device, it is used to execute the following steps:
- the second device establishes a wireless local area network connection with the first device according to the initial hotspot information.
- Each module in the above electronic device can be implemented in whole or in part by software, hardware and a combination thereof.
- Each of the above modules can be embedded in or independent of the electronic device in the form of hardware, or can be stored in the electronic device in the form of software, so that the electronic device can call and execute the operations corresponding to each of the above modules.
- the present application also provides a local area network communication method, including:
- the front central control display screen and the rear display screen establish a wireless LAN connection based on the initial hotspot information.
- the above-mentioned embodiments of the present application correspond one-to-one with the LAN communication method applied to the second device and the LAN communication method applied to the first device, and will not be repeated here.
- the front central control display screen can be regarded as the first device
- the rear display screen can be regarded as the second device.
- the automatic establishment of a wireless local area network can be achieved through the above-mentioned LAN communication method of the present application, and in the automatic establishment process of the wireless local area network of the present application, the front central control display screen must provide the rear display screen with authentication information for accessing the wireless access hotspot (such as the initial hotspot information of the wireless access hotspot) through a preset wired communication method. Therefore, the LAN communication method of the present application is safer and more convenient.
- the present application also provides an electronic device, which is used to execute the above-mentioned LAN communication method.
- the electronic device is a display screen.
- the electronic device can be a front-row central control display screen (corresponding to the first device) installed on the vehicle, and the electronic device can also be a different rear-row display screen (corresponding to the second device) installed on the vehicle.
- the access point of the vehicle-mounted wireless LAN is the wireless access hotspot of the above-mentioned first device (such as the front-row central control display screen).
- the first device serves as the manager of the vehicle-mounted wireless LAN
- the second device (such as different rear-row display screens) connected to the first device through a preset wired communication method (such as a CAN bus) is the workstation of the vehicle-mounted wireless LAN.
- the second device can cooperate in the management of the vehicle-mounted wireless LAN according to the above-mentioned LAN communication method.
- Each module in the above-mentioned electronic device can be implemented in whole or in part by software, hardware and a combination thereof.
- Each of the above-mentioned modules can be embedded in or independent of the electronic device in the form of hardware, or can be stored in the electronic device in the form of software, so that the electronic device can call and execute the operations corresponding to each of the above modules.
- the present application also provides a vehicle, including the electronic device in the above different embodiments.
- the above LAN communication method can be applicable to the vehicle field, that is, the above wireless LAN can be a vehicle-mounted wireless LAN, and the above electronic device can be a first device or a second device, wherein the first device can be a vehicle-mounted front central control display screen set on the vehicle, and the second device can be a different rear display screen set on the vehicle.
- the access point of the vehicle-mounted wireless LAN is the wireless access hotspot of the above first device (such as the front central control display screen).
- the first device serves as the manager of the vehicle-mounted wireless LAN
- the second device (such as different rear display screens) connected to the first device through a preset wired communication method (such as a CAN bus) is the workstation of the vehicle-mounted wireless LAN, and the second device can cooperate in the management of the vehicle-mounted wireless LAN according to the above LAN communication method.
- the present application also provides a local area network communication system, including a first device and a second device, wherein the first device is used to perform the following steps:
- Acquire at least one second device connected to the first device through a preset wired communication method, wherein the first device is used to provide a wireless access hotspot to any second device;
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information
- the second device is used to perform the following steps:
- the second device establishes a wireless local area network connection with the first device according to the initial hotspot information.
- the first device and the second device establish a wireless local area network connection according to the initial hotspot information, including:
- the first device establishes a wireless local area network connection with the second device that sends the first hotspot connection request or the second device that responds to the initial hotspot information according to the initial hotspot information.
- the first device is further configured to perform the following steps:
- the hotspot information modification request includes at least one of user name modification information, password modification information, and wireless network encryption mode modification information;
- the initial hotspot information is modified to updated hotspot information according to the hotspot information modification request;
- the first device and the second device re-establish the wireless local area network connection according to the updated hotspot information.
- the first device is further configured to perform the following steps:
- the first central control message includes first UDP data and first device information of the first device; the first UDP data is used to trigger any second device to send a LAN broadcast message to the wireless LAN;
- Execute LAN device identification measures based on the monitored LAN broadcast messages.
- the local area network broadcast message includes a first device message that the second device broadcasts in reply after receiving the first central control message; the first device message includes second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the second device information included in the first device message is added to the first LAN device list, which includes the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the LAN broadcast message includes a second device message that is broadcasted for the first time after the second device establishes a wireless LAN connection with the first device;
- the second device message includes second UDP data and second device information of the second device;
- Execute LAN device identification measures based on the monitored LAN broadcast messages including:
- the second device information included in the second device message is added to the first LAN device list, and at the same time, a second central control message is broadcasted to the second device that broadcasts the second device message, so that the second device can add the first device information of the first device included in the second central control message to the second LAN device list;
- the first LAN device list and the second LAN device list both include the first device information of the first device and the second device information of all second devices that establish a wireless LAN connection with the first device.
- the first device after executing the LAN device identification measure according to the monitored LAN broadcast message, the first device is further configured to execute the following steps:
- the change information indicates that a second device that is disconnected from the wireless local area network with the first device is newly added, the second device that is disconnected from the wireless local area network with the first device is deleted from the first local area network device list to update the first local area network device list;
- the change information is synchronously broadcast to all second devices that have established wireless LAN connection with the first device, so that the second devices can synchronously delete the second devices that have disconnected the wireless LAN connection with the first device from the second LAN device list according to the change information.
- the first device after the first device establishes a wireless local area network connection with all second devices according to the initial hotspot information, the first device is further configured to perform the following steps:
- the first device determines whether to disconnect from the second device
- the judgment result is yes, after the first device receives the second hotspot connection request sent by the second device through the preset wired communication method, the current hotspot information of the wireless access hotspot is fed back to the second device that sent the second hotspot connection request through the preset wired communication method;
- the first device and the second device establish a wireless local area network connection according to the current hotspot information.
- the preset wired communication mode includes one or more of Ethernet communication, CAN bus communication, and LIN communication.
- the specific configuration of the LAN communication system of the present application corresponds one-to-one to the above-mentioned LAN communication method, and will not be repeated here.
- the present application also provides a computer-readable storage medium, which stores a computer program.
- the computer program When the computer program is executed by a processor, it implements the above-mentioned local area network communication method applied to the first device; or when the computer program is executed by a processor, it implements the above-mentioned local area network communication method applied to the second device.
- Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.
- Volatile memory can include random access memory (RAM) or external cache memory.
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
一种局域网通信方法、电子设备、车辆、系统及介质,该方法包括:获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;第一设备与第二设备根据初始热点信息建立无线局域网连接。本申请自动组建过程更安全方便。
Description
本申请要求于2022年9月27日提交、申请号为202211180771.4,发明名称为“局域网通信方法、
电子设备、车辆、系统及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及一种局域网通信方法、电子设备、车辆、系统及介质。
相关技术中,可以通过WPS(Wi-Fi Protected Setup,WiFi保护设置)的方式将设备自动添加到无线网络中,进而实现无线局域网的组建和接入。然而,由于无线信号具有开放性的特点,该方案导致无线局域网连接过程中存在极大的安全性隐患。
申请内容
本申请实施例提供一种局域网通信方法、电子设备、车辆、系统及介质,可以解决现有技术的无线局域网连接过程中存在极大安全隐患等问题。
一种局域网通信方法,应用于第一设备,包括:
获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;
通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;
第一设备与第二设备根据初始热点信息建立无线局域网连接。一种局域网通信方法,应用于第二设备,包括:
确定与第二设备通过预设有线通信方式连接的第一设备;其中,第一设备用于向任一第二设备提供无线接入热点;
接收到第一设备通过预设有线通信方式发送的无线接入热点的初始热点信息,其中,初始热点信息用于供第一设备向任一第二设备提供接入无线接入热点的认证信息;
第二设备与第一设备根据初始热点信息建立无线局域网连接。
作为一种实施例,第一设备与第二设备根据初始热点信息建立无线局域网连接,包括:
第一设备与发送第一热点连接请求的第二设备或响应初始热点信息的第二设备根据初始热点信息建立无线局域网连接。
作为一种实施例,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,还包括:
判断是否存在热点信息修改请求,其中,热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项;
当判断结果为是时,根据热点信息修改请求将初始热点信息修改为更新热点信息;
通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备;
第一设备与第二设备根据更新热点信息重新建立无线局域网连接。
作为一种实施例,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,还包括:
向所有第二设备广播第一中控报文,并监听无线局域网内的局域网广播报文;第一中控报文包括第一UDP数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;
根据监听到的局域网广播报文执行局域网设备识别措施。
作为一种实施例,局域网广播报文包括第二设备在接收到第一中控报文之后广播回复的第一设备报文;第一设备报文包括第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第一设备报文,则将第一设备报文内包括的第二设备信息添加至第一局域网设备列表中,
第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
作为一种实施例,局域网广播报文包括第二设备与第一设备建立无线局域网连接之后首次进行广播的第二设备报文;第二设备报文包括第二UDP数据以及第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第二设备报文,则将第二设备报文内包括的第二设备信息添加至第一局域网设备列表中,同时向广播第二设备报文的第二设备广播回复第二中控报文,以供第二设备将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
作为一种实施例,根据监听到的局域网广播报文执行局域网设备识别措施之后,还包括:
监听第一局域网设备列表中的第二设备的变化信息;
在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,则将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除,以更新第一局域网设备列表;
将变化信息同步广播至与第一设备建立无线局域网连接的所有第二设备中,以供第二设备根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备。
作为一种实施例,第一设备与所有第二设备根据初始热点信息建立无线局域网连接之后,还包括:
对于任一第二设备,第一设备判断是否与该第二设备断开连接;
当判断结果为是时,在第一设备接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备;
第一设备与该第二设备根据当前热点信息建立无线局域网连接。
作为一种实施例,预设有线通信方式包括以太网通信、CAN总线通信、LIN通信中的一种或多种。
一种局域网通信方法,包括:
获取与前排中控显示屏通过预设有线通信方式连接的至少一个后排显示屏,其中,前排中控显示屏用于向任一后排显示屏提供无线接入热点;
通过预设有线通信方式将无线接入热点的初始热点信息发送至任一后排显示屏,其中,初始热点信息用于向任一后排显示屏提供接入无线接入热点的认证信息;
前排中控显示屏与后排显示屏根据初始热点信息建立无线局域网连接。
一种电子设备,电子设备用于执行上述应用于第一设备的局域网通信方法;或电子设备用于执行上述应用于第二设备的局域网通信方法。
作为一种实施例,电子设备为显示屏。
一种车辆,其中,包括上述电子设备。
一种局域网通信系统,包括第一设备和第二设备,第一设备用于执行以下步骤:
获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;
通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;
第一设备与第二设备根据初始热点信息建立无线局域网连接;
第二设备用于执行以下步骤:
确定与第二设备通过预设有线通信方式连接的第一设备;
接收到第一设备通过预设有线通信方式发送的无线接入热点的初始热点信息;
第二设备与第一设备根据初始热点信息建立无线局域网连接。
作为一种实施例,第一设备与第二设备根据初始热点信息建立无线局域网连接,包括:
第一设备与发送第一热点连接请求的第二设备或响应初始热点信息的第二设备根据初始热点信息建立无线局域网连接。
作为一种实施例,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:
判断是否存在热点信息修改请求,其中,热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项;
当判断结果为是时,根据热点信息修改请求将初始热点信息修改为更新热点信息;
通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备;
第一设备与第二设备根据更新热点信息重新建立无线局域网连接。
作为一种实施例,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:
向所有第二设备广播第一中控报文,并监听无线局域网内的局域网广播报文;第一中控报文包括第一UDP数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;
根据监听到的局域网广播报文执行局域网设备识别措施。
作为一种实施例,局域网广播报文包括第二设备在接收到第一中控报文之后广播回复的第一设备报文;第一设备报文包括第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第一设备报文,则将第一设备报文内包括的第二设备信息添加至第一局域网设备列表中,第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
作为一种实施例,局域网广播报文包括第二设备与第一设备建立无线局域网连接之后首次进行广播的第二设备报文;第二设备报文包括第二UDP数据以及第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第二设备报文,则将第二设备报文内包括的第二设备信息添加至第一局域网设备列表中,
同时向广播第二设备报文的第二设备广播回复第二中控报文,以供第二设备将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
作为一种实施例,根据监听到的局域网广播报文执行局域网设备识别措施之后,第一设备还用于执行以下步骤:
监听第一局域网设备列表中的第二设备的变化信息;
在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,则将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除,以更新第一局域网设备列表;
将变化信息同步广播至与第一设备建立无线局域网连接的所有第二设备中,以供第二设备根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备。
作为一种实施例,第一设备与所有第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:
对于任一第二设备,第一设备判断是否与该第二设备断开连接;
当判断结果为是时,在第一设备接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备;
第一设备与该第二设备根据当前热点信息建立无线局域网连接。
作为一种实施例,预设有线通信方式包括以太网通信、CAN总线通信、LIN通信中的一种或多种。
一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述应用于第一设备的局域网通信方法;或计算机程序被处理器执行时实现上述应用于第二设备的局域网通信方法。
本申请实施例中,获取与第一设备通过预设有线通信方式连接的至少一个第二设备之后,通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;第一设备与第二设备根据初始热点信息建立无线局域网连接。通过本申请的上述局域网通信方法可以实现无线局域网的自动组建,且本申请的无线局域网的自动组建过程中,必须由第一设备通过预设有线通信方式向第二设备提供接入无线接入热点的认证信息(比如无
线接入热点的初始热点信息),因此,本申请的局域网通信方法更安全方便。
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一实施例中局域网通信方法的流程图。
图2是本申请另一实施例中局域网通信方法的流程图。
图3是本申请又一实施例中局域网通信方法的流程图。
图4是本申请再一实施例中局域网通信方法的流程图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在一实施例中,如图1所示,提供一种局域网通信方法,应用于第一设备,包括以下步骤S10-S30:
S10、获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;可理解地,在车辆上,第一设备与第二设备通过预设有线通信方式进行有线互联,从而为第一设备的无线接入热点与第二设备之间提供热点信息传递通道。其中,预设有线通信方式包括以太网通信、CAN(控制器局域网络,Controller Area Network)总线通信、LIN通信中的一种或多种。具体地,在第一设备开机后,会首先主动获取预设有线通信方式的连接信息,以确定当前是否存在与其通过预设有线通信方式连接的第二设备。如果确定当前存在与第一设备通过预设有线通信方式连接的第二设备,则第一设备会自动打开自身所属的无线接入热点,以便通过该无线接入热点实现无线局域网的自动组建;如果确定当前并不存在与第一设备通过预设有线通信方式连接的第二设备,则不打开无线接入热点。
S20、通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息。其中,初始热点信息包括但不限定于为用户名、密码和无线网络加密方式;在该步骤中,第一设备向第二设备发送初始热点信息的动作,可能是用户触发预设按键之后主动发送或者定时发送至任一第二设备的;亦可能是在第一设备接收到第二设备通过预设有线通信方式发送的第一热点连接请求之后,通过预设有线通信方式将初始热点信息反馈至发送第一热点连接请求的第二设备中。可理解地,第一设备的无线接入热点作为无线局域网的热点,在其自动打开接入之后,第一设备将会监听通过预设有线通信方式发送的信息,比如,在预设有线通信方式为CAN总线连接时,监听通过CAN总线发送的CAN报文。可理解地,若第一设备监听到第二设备通过预设有线通信方式发送的第一热点连接请求(第一热点连接请求用于请求获取无线接入热点的初始热点信息),将会将当前该无线接入热点所设置的初始热点信息通过预设有线通信方式发送给该第二设备。在本申请中,车辆上的每一个第二设备在开机后,首先将主动通过预设有线通信方式向第一设备发送第一热点连接请求,同时监听第一设备发送过来的热点信息(比如上述初始热点信息或者后文中提及的更新热点信息)。可理解地,由于第一设备的该初始热点信息是通过预设有线通信方式这种有线传输介质直接发送到第二设备,因此,避免了通过无线传输时,由于无线传输的开放性所可能导致的安全问题的产生。
S30、第一设备与第二设备根据初始热点信息建立无线局域网连接。具体地,步骤S30包括:第一设备与发送第一热点连接请求的第二设备或响应初始热点信息的第二设备根据初始热点信息建立无线局域网连接。也即,与第一设备建立无线局域网连接的第二设备仅能是发送第一热点连接请求之后并得到第二设备反馈的初始热点信息的的第二设备;或是直接接收到第一设备发送的初始热点信息并响应初始热点信息的第二设备。
可理解地,当第二设备接收到第一设备发送的初始热点信息以后,即会通过初始热点信息中包含的
用户名、密码、无线网络加密方式与第一设备建立无线局域网连接。在上述无线局域网的自动组建过程中,无线局域网的接入点即为上述第一设备的无线接入热点,因此,第一设备作为无线局域网的管理者,而与第一设备通过预设有线通信方式连接的第二设备即为上述无线局域网的工作站,其配合参与无线局域网的管理工作。
其中,由于第一设备直接通过预设有线通信方式将初始热点信息中的用户名、密码和无线网络加密方式传递给第二设备,进而根据传递的初始热点信息实现无线局域网的组建,上述方案除保证了信息安全之外,其所传递的初始热点信息中的无线网络加密方式亦并不会被限定,比如,无线网络加密方式就可以是安全的WPA2(WPA是WIFI联盟主要的wifi加密认证方式)、WPA3加密方式,也可以是符合中国强制认证要求的WAPI加密,相较于加密方式必须固定为一种的热点信息不能随意修改的方案来说,本申请上述实施例可以根据需求任意设定初始热点信息中的无线网络加密方式,只需要在设定之后通过第一设备将上述初始热点信息发送给各第二设备,进而供第二设备与第一设备根据上述设置的无线网络加密方式组建无线局域网即可,如此,本申请可以支持任意无线网络加密类型的局域网自动组建,大大的提高了无线网络加密方式的可扩展性,也方便适应加密技术的更新。同理,本申请中的初始热点信息中的用户名与密码同样可以根据需求设置,而不是仅能通过WPS或者VIN码生成,因此,本申请中用户名和密码亦可以根据需求设定,操作方便,提升了用户体验。
本申请上述实施例中,通过局域网通信方法可以实现无线局域网的自动组建,且本申请的无线局域网的自动组建过程中,必须由第一设备的通过预设有线通信方式向第二设备提供接入无线接入热点的认证信息(比如无线接入热点的初始热点信息),因此,本申请的局域网通信方法更安全方便。并且,在第一设备开机之后,若确定存在与第一设备通过预设有线通信方式连接的第二设备,打开第一设备的无线接入热点;在第一设备接收到第二设备通过预设有线通信方式发送的第一热点连接请求之后,第一设备可以通过预设有线通信方式将初始热点信息(包括用户名、密码和无线网络加密方式)发送给所有与其通过预设有线通信方式连接的第二设备,进而使得第二设备可以通过任意设置的无线网络加密方式(支持任意类型的无线网络加密方式)与第一设备建立无线局域网连接,也即,通过本申请的上述局域网通信方法可以实现无线局域网的自动组建,且本申请的无线网络加密方式并不被限定,因此,本申请的无线局域网的自动组建过程更安全、更方便、也更便于应对和支持复杂多样的无线网络加密方式。
在一实施例中,步骤S30之后,也即第一设备与第二设备根据初始热点信息建立无线局域网连接之后,之后,还包括:
判断是否存在热点信息修改请求,其中,热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项;其中,热点信息修改请求包括用户名修改信息、密码修改信息或无线网络加密方式修改信息中的至少一项;本申请中,热点信息修改请求可以为第二设备通过预设有线通信方式发送的,亦可以是直接通过第一设备对当前的热点信息进行修改之后生成的,在该实施例中,第一设备的热点信息(比如初始热点信息或者更新后的更新热点信息,均可以被修改),允许通过第一设备或第二设备的用户界面进行修改,在用户通过其中一个第二设备的用户界面修改初始热点信息之后,将会通过预设有线通信方式向第一设备发送热点信息修改请求,此时第一设备可以在接收到热点信息修改请求之后确定当前存在热点信息修改请求;而在用户通过第一设备的用户界面修改初始热点信息之后,直接生成热点信息修改请求,此时第一设备可以直接判断当前存在热点信息修改请求。可理解地,热点信息修改请求种包含了用户在上述用户界面中编辑修改的修改内容,比如用户名修改信息、密码修改信息或无线网络加密方式修改信息中的一项或者多项。
当判断结果为是时,根据热点信息修改请求将初始热点信息修改为更新热点信息;可理解地,当第一设备监测到当前存在热点信息修改请求时,确定初始热点信息被修改,此时将会自动根据上述热点修改请求中的修改内容将初始热点信息修改为更新热点信息。
通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备;具体地,在第一设备根据热点信息修改请求将初始热点信息修改为更新热点信息之后,即会通过预设有线通信方式将更新热点信息发送给无线局域网中所有与第一设备的无线接入热点连接的第二设备,进而方便其他的第二设备根据上述更新热点信息重新与第一设备建立无线局域网连接。
第一设备与第二设备根据更新热点信息重新建立无线局域网连接。可理解地,在无线局域网的运行
过程中,第二设备会开启一个后台线程,实时监听预设有线通信方式是否传送了第一设备发送的新的报文(比如包含更新热点信息的报文),以应对第一设备的初始热点信息变更的情况。当第二设备检测到有第一设备发送的更新热点信息之后,将会保存更新热点信息,并利用更新热点信息中的用户名、密码及无线网络加密方式与第一设备自动建立局域网连接。
也即,本申请可以允许用户通过第一设备或第二设备的用户界面进行初始热点信息(包括用户名、密码、无线网络加密方式)的修改,进而在第一设备监听到包含修改内容的热点信息修改请求之后,将初始热点信息修改为更新热点信息,并通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备,进而在完成用户对于热点信息的修改之后,实现对无线局域网的重新组建,方便用户使用。
在一实施例中,步骤S30之后,也即第一设备与所有第二设备根据初始热点信息建立无线局域网连接之后,还包括:
对于任一第二设备,第一设备判断是否与该第二设备断开连接;也即,在第一设备与所有第二设备根据初始热点信息建立无线局域网连接之后,由于部分第二设备可能会临时断电或者因为其他故障导致关机,此时该第二设备将与第一设备断开连接,而在重新开机之后,亦可能需要重新建立无线局域网连接,因此,此时需要首先判断第一设备是否与任一第二设备断开连接。
当判断结果为是时,在第一设备接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备;也即,在确认某一第二设备与第一设备断开连接之后,若该第二设备重新开机后,需要重新与第一设备建立无线局域网连接,此时,第二设备将会通过预设有线通信方式向第一设备发送的第二热点连接请求(第二热点连接请求用于请求获取无线接入热点对应的实时的热点信息,也即当前热点信息),此时,第一设备在接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,将通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备。
第一设备与该第二设备根据当前热点信息建立无线局域网连接。也即,在第二设备接收到无线接入热点的当前热点信息之后,第一设备与第二设备根据当前热点信息建立无线局域网连接。也即,当第二设备接收到第一设备发送的当前热点信息以后,即会通过当前热点信息中包含的用户名、密码、无线网络加密方式与第一设备建立无线局域网连接。
在一实施例中,如图2所示,步骤S30之后,也即无线接入热点与第二设备根据用户名、密码以及无线网络加密方式建立无线局域网连接之后,包括:
S40,向所有第二设备广播第一中控报文,并监听无线局域网内的局域网广播报文;其中,第一中控报文包括第一UDP(用户数据报协议,User Datagram Protocol)数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;其中,第一设备作为无线局域网的接入点和管理者,在发现有第二设备连接自身所属的无线接入热点以后,会向无线局域网内IP层广播第一中控报文,其中,第一中控报文的广播数据包中包括第一UDP数据以及第一设备的第一设备信息等,具体地,第一UDP数据是指UDP_FIND字段,UDP_FIND字段中包含第一设备对应的第一设备ID(唯一标识)等;第一设备信息包括第一设备的第一设备ID及中控IP地址等,第一中控报文亦可以包含除上述第一UDP数据以及第一设备的第一设备信息之外的其他内容,比如局域网组网状态(包括第一设备ID及与第一设备连接的第二设备的第二设备ID及设备个数等)、设备间共享内容权限之类的参数、子局域网标识等信息。
而在无线接入热点与第二设备建立无线局域网连接之后,第一设备向无线局域网内IP层广播第一中控报文的同时,还会监听无线局域网内的局域网广播报文,也即监听所有第二设备广播的局域网广播报文。其中,局域网广播报文包括但不限定于为第一设备报文和第二设备报文,第一设备报文是指第二设备在接收到第一设备发送的第一中控报文之后广播回复的报文,也即,在第一设备发送第一中控报文之前,发送第一设备报文的第二设备持续处于开机状态并与第一设备通过预设有线通信方式连接,如此,方可接收到第一中控报文。而第二设备报文是指第二设备与第一设备建立无线局域网连接之后首次进行广播的报文;也即,在第一设备发送第一中控报文之前,发送第二设备报文的第二设备由于故障或者断电等情况处于关机状态,直到第一设备发送第一中控报文之后才开机并与第一设备的无线接入热点通过
预设有线通信方式建立无线局域网连接,此时,由于其之前并未接收到第一中控报文,因此,需要在与无线接入热点建立无线网络连接之后,通过主动广播第二设备报文(第二设备报文包括第二UDP数据以及第二设备的第二设备信息)重新请求获取第一设备的第一设备信息,以及请求获取其他接收到该第二设备报文的第二设备的第二设备信息。可理解地,接收到上述第二设备报文的第一设备将广播回复第一设备信息,而接收到上述第二设备报文的第二设备也会广播回复自身的第二设备信息,进而,广播第二设备报文的第二设备在接收到广播回复的所有设备信息(第一设备信息和第二设备信息)以后,将会添加到本机对应的局域网设备列表(也即后文中提及的第二局域网设备列表)。
S50,根据监听到的局域网广播报文执行局域网设备识别措施。也即,根据上述接收到的局域网广播报文的不同,将执行不一样的局域网设备识别措施。
在一实施例中,局域网广播报文包括第二设备在接收到第一中控报文之后广播回复的第一设备报文;第一设备报文包括第二设备的第二设备信息(第二设备信息包括第二设备的第二设备ID以及设备IP地址等);进一步地,步骤S50,也即根据监听到的局域网广播报文执行局域网设备识别措施,包括:若监听到第一设备报文,则将第一设备报文内包括的第二设备信息添加至第一局域网设备列表中,第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。也即,第一设备在步骤S40中启动对无线局域网中的第二设备的监听探测之后(向无线局域网内IP层广播第一中控报文,同时监听无线局域网内的局域网广播报文),若无线局域网内的第二设备监听到该第一中控报文中的UDP_FIND字段,则会广播回复第一设备报文,而第一设备将在接收到第一设备报文之后保存其中的第二设备信息到第一局域网设备列表。
在另一实施例中,局域网广播报文包括第二设备与第一设备建立无线局域网连接之后首次进行广播的第二设备报文;第二设备报文包括第二UDP数据以及第二设备的第二设备信息;进一步地,步骤S40,根据监听到的局域网广播报文执行局域网设备识别措施,包括:若监听到第二设备报文,则将第二设备报文内包括的第二设备信息添加至第一局域网设备列表中,同时向广播第二设备报文的第二设备广播回复第二中控报文,以供第二设备将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。也即,第一设备在步骤S40中启动对无线局域网中的第二设备的监听探测之后(向无线局域网内IP层广播第一中控报文,同时监听无线局域网内的局域网广播报文),若无线局域网内的第二设备刚开机且并未接收到第一中控报文,则会直接开始广播第二设备报文,而第一设备将同样保存上述第二设备报文中的第二设备信息到第一局域网设备列表。可理解地,接收到上述第二设备报文的第一设备将广播回复第一设备信息,而接收到上述第二设备报文的第二设备也会广播回复自身的第二设备信息,进而,广播第二设备报文的第二设备在接收到广播回复的所有设备信息(第一设备信息和第二设备信息)以后,将会添加到本机对应的局域网设备列表(也即后文中提及的第二局域网设备列表)。
在本申请中,第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。其中,在该实施例中,第一局域网设备列表以及第二局域网设备列表可以是指分别存储在第一设备和第二设备中的不同列表,因此,上述方法可以保持第一局域网设备列表以及第二局域网设备列表中的数据同步,通过本实施例中的方案,可以在IP层面上通过第一局域网设备列表(以及第二局域网设备列表)实现对无线局域网中的所有设备的识别和管理,进而为其他上层https等网络需求提供精准服务,进而,本申请可以实现不面向具体业务的局域网设备的精准识别,也即,可以通过自定义的UDP_FIND字段及广播回复机制,在不绑定特定服务的情况下(在不绑定特定服务的情况下,识别设备的机制不依赖于服务的提供),快速识别无线局域网内所有设备,为无线局域网内更多业务场景需要及精准识别提供基础服务;本申请的设备便于业务拓展及精准识别。可理解地,在一些实施例中,第一局域网设备列表以及第二局域网设备列表亦可以是指存储在某一个可供第一设备和第二设备调取的同一个列表,也即,无线局域网整个全域共用统一的一个局域网设备列表即可。
在一实施例中,步骤S50之后,也即根据监听到的局域网广播报文执行局域网设备识别措施之后,包括:
监听第一局域网设备列表中的第二设备的变化信息;第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息;也即,第一设备还需要监听与第一设备通过无线接入热点连接的第二设备的变化信息,该变化信息可以包括当前与第一设备通过无线接入热点实时连接的第二设备的数量变化以及具体的设备信息,如此,通过变化信息可以检测到具有某个设备IP地址的第二设备是否加入或退出无线局域网。由于上述实施例中实际上已经说明了在有第二设备加入无线局域网时对应的局域网设备识别措施,因此,在该实施例中,仅对存在退出无线局域网的第二设备(也即变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备)的情况进行说明。
在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,则将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除,以更新第一局域网设备列表;也即,在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,说明有新增退出无线局域网的第二设备,此时,可以从第一局域网设备列表中,删除该第二设备对应的条目。
将变化信息同步广播至与第一设备建立无线局域网连接的所有第二设备中,以供第二设备根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备。也即,在第一局域网设备列表中删除上述退出无线局域网的第二设备之后,还通过无线局域网广播的形式,同步通知无线局域网中当前实时存在的其他在网第二设备,从第二局域网设备列表中根据上述变化信息删除上述退出无线局域网的第二设备的相应条目。
本申请上述的局域网通信方法,可以在不绑定特定服务的情况下(在不绑定特定服务的情况下,识别设备的机制不依赖于服务的提供),快速识别无线局域网内所有设备,为无线局域网内更多业务场景需要及精准识别提供基础服务,是一种不面向具体业务的局域网设备精准识别方法,上述局域网通信方法适用于车载领域。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本申请还提供一种电子设备,电子设备用于执行上述局域网通信方法。具体地,电子设备为第一设备时,用于执行如下步骤:
获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;
通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;
第一设备与第二设备根据初始热点信息建立无线局域网连接。
在一实施例中,第一设备与第二设备根据初始热点信息建立无线局域网连接,包括:
第一设备与发送第一热点连接请求的第二设备或响应初始热点信息的第二设备根据初始热点信息建立无线局域网连接。
在一实施例中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,还包括:
判断是否存在热点信息修改请求,其中,热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项;
当判断结果为是时,根据热点信息修改请求将初始热点信息修改为更新热点信息;
通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备;
第一设备与第二设备根据更新热点信息重新建立无线局域网连接。
在一实施例中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,还包括:
向所有第二设备广播第一中控报文,并监听无线局域网内的局域网广播报文;第一中控报文包括第一UDP数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;
根据监听到的局域网广播报文执行局域网设备识别措施。
在一实施例中,局域网广播报文包括第二设备在接收到第一中控报文之后广播回复的第一设备报文;第一设备报文包括第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第一设备报文,则将第一设备报文内包括的第二设备信息添加至第一局域网设备列表中,第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
在一实施例中,局域网广播报文包括第二设备与第一设备建立无线局域网连接之后首次进行广播的第二设备报文;第二设备报文包括第二UDP数据以及第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第二设备报文,则将第二设备报文内包括的第二设备信息添加至第一局域网设备列表中,同时向广播第二设备报文的第二设备广播回复第二中控报文,以供第二设备将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
在一实施例中,根据监听到的局域网广播报文执行局域网设备识别措施之后,还包括:
监听第一局域网设备列表中的第二设备的变化信息;
在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,则将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除,以更新第一局域网设备列表;
将变化信息同步广播至与第一设备建立无线局域网连接的所有第二设备中,以供第二设备根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备。
在一实施例中,第一设备与所有第二设备根据初始热点信息建立无线局域网连接之后,还包括:
对于任一第二设备,第一设备判断是否与该第二设备断开连接;
当判断结果为是时,在第一设备接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备;
第一设备与该第二设备根据当前热点信息建立无线局域网连接。
在一实施例中,预设有线通信方式包括以太网通信、CAN总线通信、LIN通信中的一种或多种。
本申请的电子设备的具体设置与上述局域网通信方法一一对应,在此不再赘述。上述电子设备中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中,也可以以软件形式存储于电子设备中,以便于电子设备调用执行以上各个模块对应的操作。
如图3所示,本申请还提供一种局域网通信方法,应用于第二设备,包括:
S100,确定与第二设备通过预设有线通信方式连接的第一设备;其中,第一设备用于向任一第二设备提供无线接入热点;
S200,接收到第一设备通过预设有线通信方式发送的无线接入热点的初始热点信息,其中,初始热点信息用于供第一设备向任一第二设备提供接入无线接入热点的认证信息;
S300,第二设备与第一设备根据初始热点信息建立无线局域网连接。
在一实施例中,步骤S300之后,还包括:
在第一设备根据热点信息修改请求将初始热点信息修改为更新热点信息之后,若接收到第一设备通过预设有线通信方式发送的更新热点信息,则第二设备与第二设备根据更新热点信息重新建立无线局域网连接;热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项。
进一步地,步骤S300之后,还包括:
通过预设有线通信方式向第一设备发送第二热点连接请求,在接收到第一设备通过预设有线通信方式反馈的无线接入热点的当前热点信息之后,第二设备与第一设备根据当前热点信息建立无线局域网连接。
在一实施例中,步骤S300之后,还包括:
在接收到第一设备广播的第一中控报文之后,广播回复第一设备报文,以供第一设备监听到第一设备报文之后,将第一设备报文内包括的第二设备的第二设备信息添加至第一局域网设备列表中;第一中控报文包括第一UDP数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建
立无线局域网连接的所有第二设备的第二设备信息。
在一实施例中,步骤S300之后,还包括:
广播第二设备报文,以供第一设备监听到第二设备报文之后,将第二设备报文内包括的第二设备的第二设备信息添加至第一局域网设备列表中;第二设备报文是指第二设备与第一设备建立无线局域网连接之后首次进行广播的报文;第二设备报文包括第二UDP数据以及第二设备信息;第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息;
接收第一设备监听到第二设备报文之后广播回复的第二中控报文,将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
在一实施例中,步骤S300之后,还包括:
接收第一设备监听之后同步广播的第一局域网设备列表中的第二设备的变化信息;第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息;变化信息在第一设备确认变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除之后进行同步广播;
根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备;第二局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
本申请的上述实施例中应用于第二设备的局域网通信方法与本申请中应用于第一设备的局域网通信方法一一对应,在此不再赘述。通过本申请的上述局域网通信方法可以实现无线局域网的自动组建,且本申请的无线局域网的自动组建过程中,必须由第一设备通过预设有线通信方式向第二设备提供接入无线接入热点的认证信息(比如无线接入热点的初始热点信息),因此,本申请的局域网通信方法更安全方便。
本申请还提供一种电子设备,电子设备用于执行上述局域网通信方法。具体地,电子设备为第二设备时,用于执行如下步骤:
确定与第二设备通过预设有线通信方式连接的第一设备;其中,第一设备用于向任一第二设备提供无线接入热点;
接收到第一设备通过预设有线通信方式发送的无线接入热点的初始热点信息,其中,初始热点信息用于供第一设备向任一第二设备提供接入无线接入热点的认证信息;
第二设备与第一设备根据初始热点信息建立无线局域网连接。
本申请的电子设备的具体设置与上述应用于第二设备的局域网通信方法一一对应,在此不再赘述。上述电子设备中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中,也可以以软件形式存储于电子设备中,以便于电子设备调用执行以上各个模块对应的操作。
如图4所示,本申请还提供一种局域网通信方法,包括:
获取与前排中控显示屏通过预设有线通信方式连接的至少一个后排显示屏,其中,前排中控显示屏用于向任一后排显示屏提供无线接入热点;
通过预设有线通信方式将无线接入热点的初始热点信息发送至任一后排显示屏,其中,初始热点信息用于向任一后排显示屏提供接入无线接入热点的认证信息;
前排中控显示屏与后排显示屏根据初始热点信息建立无线局域网连接。
本申请的上述实施例与应用于第二设备的局域网通信方法以及应用于第一设备的局域网通信方法一一对应,在此不再赘述。具体地,前排中控显示屏可以视为第一设备,而后排显示屏可以视为第二设备。通过本申请的上述局域网通信方法可以实现无线局域网的自动组建,且本申请的无线局域网的自动组建过程中,必须由前排中控显示屏通过预设有线通信方式向后排显示屏提供接入无线接入热点的认证信息(比如无线接入热点的初始热点信息),因此,本申请的局域网通信方法更安全方便。
应理解,本申请上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本申请还提供一种电子设备,电子设备用于执行上述局域网通信方法。在一实施例中,电子设备为显示屏,具体地,电子设备可以车辆上设置的车载前排中控显示屏(对应于第一设备),电子设备也可以为车辆上设置的不同的后排显示屏(对应于第二设备),在通过上述局域网通信方法进行车载无线局域网的自动组建过程中,车载无线局域网的接入点即为上述第一设备(比如前排中控显示屏)的无线接入热点,因此,第一设备作为车载无线局域网的管理者,而与第一设备通过预设有线通信方式(比如CAN总线)连接的第二设备(比如不同的后排显示屏)即为车载无线局域网的工作站,第二设备可以按照上述局域网通信方法配合参与车载无线局域网的管理工作。
本申请的电子设备的具体设置与上述局域网通信方法一一对应,在此不再赘述。上述电子设备中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中,也可以以软件形式存储于电子设备中,以便于电子设备调用执行以上各个模块对应的操作。
本申请还提供一种车辆,包括上述不同实施例中的电子设备。可理解地,上述局域网通信方法可以适用于车载领域,也即,上述无线局域网可以为车载无线局域网,而上述电子设备可以为第一设备或第二设备,其中,第一设备可以为车辆上设置的车载前排中控显示屏,第二设备可以为车辆上设置的不同的后排显示屏,在通过上述局域网通信方法进行车载无线局域网的自动组建过程中,车载无线局域网的接入点即为上述第一设备(比如前排中控显示屏)的无线接入热点,因此,第一设备作为车载无线局域网的管理者,而与第一设备通过预设有线通信方式(比如CAN总线)连接的第二设备(比如不同的后排显示屏)即为车载无线局域网的工作站,第二设备可以按照上述局域网通信方法配合参与车载无线局域网的管理工作。
本申请还提供一种局域网通信系统,包括第一设备和第二设备,第一设备用于执行以下步骤:
获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;
通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;
第一设备与第二设备根据初始热点信息建立无线局域网连接;
第二设备用于执行以下步骤:
确定与第二设备通过预设有线通信方式连接的第一设备;
接收到第一设备通过预设有线通信方式发送的无线接入热点的初始热点信息;
第二设备与第一设备根据初始热点信息建立无线局域网连接。
在一实施例中,第一设备与第二设备根据初始热点信息建立无线局域网连接,包括:
第一设备与发送第一热点连接请求的第二设备或响应初始热点信息的第二设备根据初始热点信息建立无线局域网连接。
在一实施例中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:
判断是否存在热点信息修改请求,其中,热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项;
当判断结果为是时,根据热点信息修改请求将初始热点信息修改为更新热点信息;
通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备;
第一设备与第二设备根据更新热点信息重新建立无线局域网连接。
在一实施例中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:
向所有第二设备广播第一中控报文,并监听无线局域网内的局域网广播报文;第一中控报文包括第一UDP数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;
根据监听到的局域网广播报文执行局域网设备识别措施。
在一实施例中,局域网广播报文包括第二设备在接收到第一中控报文之后广播回复的第一设备报文;第一设备报文包括第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第一设备报文,则将第一设备报文内包括的第二设备信息添加至第一局域网设备列表中,第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
在一实施例中,局域网广播报文包括第二设备与第一设备建立无线局域网连接之后首次进行广播的第二设备报文;第二设备报文包括第二UDP数据以及第二设备的第二设备信息;
根据监听到的局域网广播报文执行局域网设备识别措施,包括:
若监听到第二设备报文,则将第二设备报文内包括的第二设备信息添加至第一局域网设备列表中,同时向广播第二设备报文的第二设备广播回复第二中控报文,以供第二设备将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
在一实施例中,根据监听到的局域网广播报文执行局域网设备识别措施之后,第一设备还用于执行以下步骤:
监听第一局域网设备列表中的第二设备的变化信息;
在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,则将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除,以更新第一局域网设备列表;
将变化信息同步广播至与第一设备建立无线局域网连接的所有第二设备中,以供第二设备根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备。
在一实施例中,第一设备与所有第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:
对于任一第二设备,第一设备判断是否与该第二设备断开连接;
当判断结果为是时,在第一设备接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备;
第一设备与该第二设备根据当前热点信息建立无线局域网连接。
在一实施例中,预设有线通信方式包括以太网通信、CAN总线通信、LIN通信中的一种或多种。
本申请局域网通信系统的具体设置与上述局域网通信方法一一对应,在此不再赘述。
本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述应用于第一设备的局域网通信方法;或计算机程序被处理器执行时实现上述应用于第二设备的局域网通信方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包括在本申请的保护范围之内。
Claims (24)
- 一种局域网通信方法,其中,应用于第一设备,包括:获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;第一设备与第二设备根据初始热点信息建立无线局域网连接。
- 如权利要求1的局域网通信方法,其中,第一设备与第二设备根据初始热点信息建立无线局域网连接,包括:第一设备与发送第一热点连接请求的第二设备或响应初始热点信息的第二设备根据初始热点信息建立无线局域网连接。
- 如权利要求1至2任一项的局域网通信方法,其中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,还包括:判断是否存在热点信息修改请求,其中,热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项;当判断结果为是时,根据热点信息修改请求将初始热点信息修改为更新热点信息;通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备;第一设备与第二设备根据更新热点信息重新建立无线局域网连接。
- 如权利要求1至3任一项的局域网通信方法,其中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,还包括:向所有第二设备广播第一中控报文,并监听无线局域网内的局域网广播报文;第一中控报文包括第一UDP数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;根据监听到的局域网广播报文执行局域网设备识别措施。
- 如权利要求4的局域网通信方法,其中,局域网广播报文包括第二设备在接收到第一中控报文之后广播回复的第一设备报文;第一设备报文包括第二设备的第二设备信息;根据监听到的局域网广播报文执行局域网设备识别措施,包括:若监听到第一设备报文,则将第一设备报文内包括的第二设备信息添加至第一局域网设备列表中,第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
- 如权利要求4的局域网通信方法,其中,局域网广播报文包括第二设备与第一设备建立无线局域网连接之后首次进行广播的第二设备报文;第二设备报文包括第二UDP数据以及第二设备的第二设备信息;根据监听到的局域网广播报文执行局域网设备识别措施,包括:若监听到第二设备报文,则将第二设备报文内包括的第二设备信息添加至第一局域网设备列表中,同时向广播第二设备报文的第二设备广播回复第二中控报文,以供第二设备将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
- 根据权利要求6的局域网通信方法,其中,根据监听到的局域网广播报文执行局域网设备识别措施之后,还包括:监听第一局域网设备列表中的第二设备的变化信息;在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,则将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除,以更新第一局域网设备列表;将变化信息同步广播至与第一设备建立无线局域网连接的所有第二设备中,以供第二设备根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备。
- 根据权利要求1-7任一项的局域网通信方法,其中,第一设备与所有第二设备根据初始热点信息建 立无线局域网连接之后,还包括:对于任一第二设备,第一设备判断是否与该第二设备断开连接;当判断结果为是时,在第一设备接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备;第一设备与该第二设备根据当前热点信息建立无线局域网连接。
- 根据权利要求1至8任一项的局域网通信方法,其中,预设有线通信方式包括以太网通信、CAN总线通信、LIN通信中的一种或多种。
- 一种局域网通信方法,其中,应用于第二设备,包括:确定与第二设备通过预设有线通信方式连接的第一设备;其中,第一设备用于向任一第二设备提供无线接入热点;接收到第一设备通过预设有线通信方式发送的无线接入热点的初始热点信息,其中,初始热点信息用于供第一设备向任一第二设备提供接入无线接入热点的认证信息;第二设备与第一设备根据初始热点信息建立无线局域网连接。
- 一种局域网通信方法,其中,包括:获取与前排中控显示屏通过预设有线通信方式连接的至少一个后排显示屏,其中,前排中控显示屏用于向任一后排显示屏提供无线接入热点;通过预设有线通信方式将无线接入热点的初始热点信息发送至任一后排显示屏,其中,初始热点信息用于向任一后排显示屏提供接入无线接入热点的认证信息;前排中控显示屏与后排显示屏根据初始热点信息建立无线局域网连接。
- 一种电子设备,其中,电子设备用于执行权利要求1至9任一项的局域网通信方法;或电子设备用于执行权利要求10的局域网通信方法。
- 根据权利要求12的局域网通信方法,其中,电子设备为显示屏。
- 一种车辆,其中,包括权利要求12或13的电子设备。
- 一种局域网通信系统,其中,包括第一设备和第二设备,第一设备用于执行以下步骤:获取与第一设备通过预设有线通信方式连接的至少一个第二设备,其中,第一设备用于向任一第二设备提供无线接入热点;通过预设有线通信方式将无线接入热点的初始热点信息发送至任一第二设备,其中,初始热点信息用于向任一第二设备提供接入无线接入热点的认证信息;第一设备与第二设备根据初始热点信息建立无线局域网连接;第二设备用于执行以下步骤:确定与第二设备通过预设有线通信方式连接的第一设备;接收到第一设备通过预设有线通信方式发送的无线接入热点的初始热点信息;第二设备与第一设备根据初始热点信息建立无线局域网连接。
- 根据权利要求15的局域网通信系统,其中,第一设备与第二设备根据初始热点信息建立无线局域网连接,包括:第一设备与发送第一热点连接请求的第二设备或响应初始热点信息的第二设备根据初始热点信息建立无线局域网连接。
- 根据权利要求15的局域网通信系统,其中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:判断是否存在热点信息修改请求,其中,热点信息修改请求包括用户名修改信息、密码修改信息以及无线网络加密方式修改信息中的至少一项;当判断结果为是时,根据热点信息修改请求将初始热点信息修改为更新热点信息;通过预设有线通信方式将更新热点信息发送至与第一设备连接的所有第二设备;第一设备与第二设备根据更新热点信息重新建立无线局域网连接。
- 根据权利要求15至17任一项的的局域网通信系统,其中,第一设备与第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:向所有第二设备广播第一中控报文,并监听无线局域网内的局域网广播报文;第一中控报文包括第一UDP数据以及第一设备的第一设备信息;第一UDP数据用于触发任一第二设备向无线局域网内发送局域网广播报文;根据监听到的局域网广播报文执行局域网设备识别措施。
- 根据权利要求18的局域网通信系统,其中,局域网广播报文包括第二设备在接收到第一中控报文之后广播回复的第一设备报文;第一设备报文包括第二设备的第二设备信息;根据监听到的局域网广播报文执行局域网设备识别措施,包括:若监听到第一设备报文,则将第一设备报文内包括的第二设备信息添加至第一局域网设备列表中,第一局域网设备列表中包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
- 根据权利要求18的局域网通信系统,其中,局域网广播报文包括第二设备与第一设备建立无线局域网连接之后首次进行广播的第二设备报文;第二设备报文包括第二UDP数据以及第二设备的第二设备信息;根据监听到的局域网广播报文执行局域网设备识别措施,包括:若监听到第二设备报文,则将第二设备报文内包括的第二设备信息添加至第一局域网设备列表中,同时向广播第二设备报文的第二设备广播回复第二中控报文,以供第二设备将第二中控报文内包括的第一设备的第一设备信息添加至第二局域网设备列表中;第一局域网设备列表以及第二局域网设备列表中均包括第一设备的第一设备信息以及与第一设备建立无线局域网连接的所有第二设备的第二设备信息。
- 根据权利要求20的局域网通信系统,其中,根据监听到的局域网广播报文执行局域网设备识别措施之后,第一设备还用于执行以下步骤:监听第一局域网设备列表中的第二设备的变化信息;在变化信息表征当前新增有与第一设备断开无线局域网连接的第二设备时,则将与第一设备断开无线局域网连接的第二设备自第一局域网设备列表中删除,以更新第一局域网设备列表;将变化信息同步广播至与第一设备建立无线局域网连接的所有第二设备中,以供第二设备根据变化信息从第二局域网设备列表中同步删除与第一设备断开无线局域网连接的第二设备。
- 根据权利要求15-21任一项的局域网通信系统,其中,第一设备与所有第二设备根据初始热点信息建立无线局域网连接之后,第一设备还用于执行以下步骤:对于任一第二设备,第一设备判断是否与该第二设备断开连接;当判断结果为是时,在第一设备接收到该第二设备通过预设有线通信方式发送的第二热点连接请求之后,通过预设有线通信方式将无线接入热点的当前热点信息反馈至发送第二热点连接请求的第二设备;第一设备与该第二设备根据当前热点信息建立无线局域网连接。
- 根据权利要求15-22任一项的局域网通信系统,其中,预设有线通信方式包括以太网通信、CAN总线通信、LIN通信中的一种或多种。
- 一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,其中,计算机程序被处理器执行时实现如权利要求1至9任一项的局域网通信方法;或计算机程序被处理器执行时实现如权利要求10的局域网通信方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211180771.4 | 2022-09-27 | ||
CN202211180771.4A CN117835253A (zh) | 2022-09-27 | 2022-09-27 | 局域网通信方法、电子设备、车辆、系统及介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024067385A1 true WO2024067385A1 (zh) | 2024-04-04 |
Family
ID=90476138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/120601 WO2024067385A1 (zh) | 2022-09-27 | 2023-09-22 | 局域网通信方法、电子设备、车辆、系统及介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117835253A (zh) |
WO (1) | WO2024067385A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111601120A (zh) * | 2020-04-21 | 2020-08-28 | 江苏大学 | 一种无线传屏显示系统与显示方法 |
WO2020177254A1 (zh) * | 2019-03-07 | 2020-09-10 | 烽火通信科技股份有限公司 | 一种无线网络组网方法、系统及无线ap |
CN112436950A (zh) * | 2020-10-19 | 2021-03-02 | 中标慧安信息技术股份有限公司 | 基于udp广播发现局域网内设备的方法 |
CN112929988A (zh) * | 2021-03-23 | 2021-06-08 | 上海商汤临港智能科技有限公司 | 车载设备的配对方法及装置、电子设备和存储介质 |
-
2022
- 2022-09-27 CN CN202211180771.4A patent/CN117835253A/zh active Pending
-
2023
- 2023-09-22 WO PCT/CN2023/120601 patent/WO2024067385A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020177254A1 (zh) * | 2019-03-07 | 2020-09-10 | 烽火通信科技股份有限公司 | 一种无线网络组网方法、系统及无线ap |
CN111601120A (zh) * | 2020-04-21 | 2020-08-28 | 江苏大学 | 一种无线传屏显示系统与显示方法 |
CN112436950A (zh) * | 2020-10-19 | 2021-03-02 | 中标慧安信息技术股份有限公司 | 基于udp广播发现局域网内设备的方法 |
CN112929988A (zh) * | 2021-03-23 | 2021-06-08 | 上海商汤临港智能科技有限公司 | 车载设备的配对方法及装置、电子设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN117835253A (zh) | 2024-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103209412B (zh) | 建立设备到设备连接的方法、设备和系统 | |
EP4054218B1 (en) | Direct communication processing method, device, relay terminal, and remote terminal | |
CN1985470B (zh) | 用于动态主机配置协议框架的配置管理的系统和网络实体 | |
US20130223278A1 (en) | Communication device, communication system and method of sharing communication setup information | |
JP6314221B2 (ja) | 端末wifiトークバックの実現方法及び装置 | |
EP2571196B1 (en) | Method and device for upgrading radio relay equipment | |
CN101677291A (zh) | 一种网元设备自动配置的方法、装置及系统 | |
JP2009500759A (ja) | シンプルネットワーク管理プロトコルに基づいたデータ管理のための方法及びシステム | |
WO2020052385A1 (zh) | 配置信息获取方法、装置、设备、存储介质及系统 | |
EP2171917B1 (en) | System and method for providing device management service to electronic device having no broadband communication module | |
CN104144463A (zh) | Wi-Fi网络接入方法和系统 | |
US20220159103A1 (en) | Method, device, system, and storage medium for establishing local communication link | |
CN112242996A (zh) | 智能网关控制方法、装置和可读存储介质 | |
US9438603B2 (en) | Method for managing access right of terminal to resource by server in wireless communication system, and device for same | |
EP3059907B1 (en) | Network packet forwarding method and device | |
CN113573381A (zh) | 非ip类型数据的传输处理方法、设备、装置及介质 | |
WO2024067385A1 (zh) | 局域网通信方法、电子设备、车辆、系统及介质 | |
WO2021134562A1 (zh) | 配置设备更换方法、装置、设备及存储介质 | |
CN113396600B (zh) | 信息验证方法、装置、设备及存储介质 | |
GB2589587A (en) | Method for establishing a wireless network and vehicle | |
CN115835370A (zh) | 智能设备的配网方法、装置、设备以及介质 | |
CN111541750B (zh) | 智能灯的控制方法、装置和计算机设备 | |
US11729140B2 (en) | Method and system for managing DHCP servers | |
CN108712782B (zh) | 一种隧道建立方法、装置、电子设备及可读存储介质 | |
CN111147269B (zh) | 接入点配置方法、组网系统、接入点和存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23870616 Country of ref document: EP Kind code of ref document: A1 |