Multi-device communication method and device and optical storage and charging system
By constructing a master-slave communication architecture in the optical storage and charging equipment, the problem of the equipment being unable to obtain network changes in a timely manner was solved, and the stability of local area network communication and normal operation of the equipment were achieved.
Patent Information
- Application Number
- CN202511480803.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-16
- Publication Date
- 2026-02-13
AI Technical Summary
In the local area network of optical storage and charging equipment, devices that are not directly connected cannot obtain information about changes in the network service provider in a timely manner, resulting in duplicate IP addresses or communication with IP network segments that have not been changed, which affects normal operation.
Establish a communication architecture between master and slave devices. The master device monitors the status of network service providers and promptly sends request commands to the slave device to update network configuration parameters when it detects that the device has been replaced, restarted, or crashed, thus avoiding the need to power on/off or unplug and replug the network cable.
It ensured the normal operation of local area network communication, improved the stability of equipment networking, reduced network load, and ensured the normal operation of optical storage and charging equipment.
Smart Images

Figure CN121530845A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the field of optical storage and charging, and particularly relates to a communication method and device for multiple devices and an optical storage and charging system. BACKGROUND
[0002] In the multiple-device operation scenario of the optical storage and charging device, in the hand-in-hand local area network networking or star-type local area network networking, only the optical storage and charging device directly connected with the network service providing device can perceive the device replacement, restart and downtime of the network service providing device, while other optical storage and charging devices cannot timely acquire the change of the network service providing device, leading to the use of repeated IP addresses or non-replaced IP network segment communication in the local area network, thereby causing abnormal local area network communication and affecting the normal operation of the optical storage and charging device. SUMMARY
[0003] The present application aims to at least solve one of the technical problems in the prior art. To this end, the present application provides a communication method and device for multiple devices and an optical storage and charging system, which can timely acquire and update new network configuration parameters, and each device does not need to be re-powered on or off or plug in the network cable, thereby ensuring normal local area network communication and normal operation of the optical storage and charging device.
[0004] In a first aspect, the present application provides a communication method for multiple devices, applied to a first device in the multiple devices; the method comprises: receiving a first request instruction sent by a second device; the first request instruction is an instruction sent by the second device to each first device based on a target trigger strategy after receiving first information, the first information being information sent by at least one first device to represent network service providing device exception; the second device being a device other than all the first devices in the multiple devices, or being another device independent of the multiple devices; broadcasting a second request instruction in response to the first request instruction, the second request instruction being used to acquire network configuration parameters; receiving the network configuration parameters sent by the network service providing device.
[0005] According to the communication method for multiple devices of the present application, by constructing the communication architecture between the master and slave devices, when any first device detects that the network service providing device is replaced, restarted or down, the second device can be timely informed, so that the second device sends a first request instruction to each first device to inform each first device of the change of the network service providing device, so that each first device can timely acquire and update new network configuration parameters, and each device does not need to be re-powered on or off or plug in the network cable, thereby improving the stability of device networking, ensuring normal local area network communication and normal operation of the optical storage and charging device.
[0006] According to one embodiment of the present application, the broadcasting of the second request instruction in response to the first request instruction comprises: broadcasting the second request instruction based on the first delay time length corresponding to each of the first devices in response to the first request instruction, wherein the first delay time length corresponding to each of the first devices is not completely the same.
[0007] According to one embodiment of the present application, the broadcasting of the second request instruction in response to the first request instruction based on the first delay time length corresponding to each of the first devices comprises: randomly determining a time value of the first delay time length in response to the first request instruction; broadcasting the second request instruction after the first delay time length.
[0008] According to one embodiment of the present application, before the receiving of the first request instruction sent by the second device, the method further comprises: sending the first information to the second device in the case of monitoring that the network service providing device is abnormal.
[0009] According to one embodiment of the present application, the monitoring that the network service providing device is abnormal comprises: monitoring that the physical network port line access state of the first device is abnormal, and / or monitoring that the communication state between the first device and the network service providing device is abnormal.
[0010] In a second aspect, the present application provides a multi-device communication method applied to a second device, which comprises: receiving first information, wherein the first information is information sent by at least one first device for representing that a network service providing device is abnormal, the first device is a device in the multi-device, the second device is a device in the multi-device except all the first devices, or the second device is another device independent of the multi-device; sending a first request instruction to each of the first devices based on a target trigger strategy, wherein the first request instruction is used to instruct each of the first devices to acquire a network configuration parameter.
[0011] According to the multi-device communication method of the present application, by constructing a communication architecture between master and slave devices, in the case that any first device detects that the network service providing device is replaced, restarted or down, the second device can be timely informed, so that the second device sends a first request instruction to each of the first devices to inform each of the first devices of the change of the network service providing device, so that each of the first devices can timely acquire and update a new network configuration parameter, and each device does not need to be powered on and off or plug in and out a network line, thereby ensuring normal local area network communication and normal operation of optical storage and charging devices.
[0012] In a third aspect, the present application provides a multi-device communication device, applied to a first device in the multi-device; the device comprises: a first processing module, configured to receive a first request instruction sent by a second device; the first request instruction is an instruction sent by the second device to each of the first devices based on a target trigger strategy after receiving first information, the first information is information sent by at least one of the first devices to represent an exception of a network service providing device; the second device is a device other than all the first devices in the multi-device, or is another device independent of the multi-device; a second processing module, configured to broadcast a second request instruction in response to the first request instruction, the second request instruction being used to acquire network configuration parameters; a third processing module, configured to receive the network configuration parameters sent by the network service providing device.
[0013] According to the multi-device communication device of the present application, by constructing a communication architecture between the master and slave devices, in the case that any of the first devices detects that the network service providing device is replaced, restarted or down, the second device can be timely informed, so that the second device sends a first request instruction to each of the first devices to inform each of the first devices of the change of the network service providing device, so that each of the first devices can timely acquire and update new network configuration parameters, and each device does not need to be powered on and off or unplugged, thereby ensuring normal local area network communication and normal operation of the optical storage and charging device.
[0014] In a fourth aspect, the present application provides a multi-device communication device, applied to a second device; the device comprises: a fourth processing module, configured to receive first information; the first information is information sent by at least one of the first devices to represent an exception of a network service providing device, the first device is a device in the multi-device, and the second device is a device other than all the first devices in the multi-device, or the second device is another device independent of the multi-device; a fifth processing module, configured to send a first request instruction to each of the first devices based on a target trigger strategy, the first request instruction being used to instruct each of the first devices to acquire network configuration parameters.
[0015] According to the multi-device communication apparatus of the present application, by constructing the communication architecture between the master and slave devices, in the case that any first device detects that the network service providing device has device replacement, restart, and downtime, the second device can be timely informed, so that the second device sends a first request instruction to each first device to inform each first device of the change of the network service providing device, so that the first device can timely obtain and update the new network configuration parameters, and each device does not need to be re-powered on or off or plug in the network cable, thereby ensuring normal LAN communication and normal operation of the optical storage and charging device.
[0016] In a fifth aspect, the present application provides an optical storage and charging system, comprising: a plurality of devices, each of the devices comprising at least one of a photovoltaic device and an energy storage device; a network service providing device directly connected to at least one of the plurality of devices; The optical storage and charging system is configured to perform the multi-device communication method of the first aspect or the second aspect.
[0017] In a sixth aspect, the present application provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the multi-device communication method of the first aspect described above.
[0018] In a seventh aspect, the present application provides a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the multi-device communication method of the first aspect described above.
[0019] The one or more technical solutions described above in the embodiments of the present application have at least one of the following technical effects: By constructing the communication architecture between the master and slave devices, in the case that any first device detects that the network service providing device has device replacement, restart, and downtime, the second device can be timely informed, so that the second device sends a first request instruction to each first device to inform each first device of the change of the network service providing device, so that the first device can timely obtain and update the new network configuration parameters, and each device does not need to be re-powered on or off or plug in the network cable, thereby ensuring normal LAN communication and normal operation of the optical storage and charging device.
[0020] Further, after the first device receives the first request instruction, a certain delay is triggered before the network configuration parameters are obtained, which can realize staggered communication of each first device in the multi-device networking scenario, reduce the risk of excessive data pressure on the network service providing device due to the simultaneous request for configuration parameters from the devices in the networking scenario, and ensure the normal and efficient operation of the network service providing device.
[0021] Further, by delaying the issuance of the first request instruction when the second device senses that the network service providing device is abnormal, the risk of high network load rate due to excessive message volume caused by multiple devices sensing the state of the network providing device and the second device issuing the first request instruction multiple times can be reduced. By setting a second delay time, the second device can initiate the instruction to obtain the network configuration parameters to each first device after the network recovers to a stable state, effectively reducing the network load rate and ensuring normal LAN communication and normal operation of the optical storage and charging device.
[0022] Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following and / or by practice of the application. BRIEF DESCRIPTION OF DRAWINGS
[0023] The above and / or additional aspects and advantages of the application will become apparent and be readily understood by considering the following detailed description, from which the aspects and advantages of the application will be readily understood, taken in conjunction with the accompanying drawings. Figure 1 is one of the flow diagrams of the communication method of the multiple devices provided by the embodiments of the application; Figure 2 is another flow diagram of the communication method of the multiple devices provided by the embodiments of the application; Figure 3 is a third flow diagram of the communication method of the multiple devices provided by the embodiments of the application; Figure 4 is a fourth flow diagram of the communication method of the multiple devices provided by the embodiments of the application; Figure 5 is a fifth flow diagram of the communication method of the multiple devices provided by the embodiments of the application; Figure 6 is one of the network structure diagrams of the communication method of the multiple devices provided by the embodiments of the application; Figure 7 is another network structure diagram of the communication method of the multiple devices provided by the embodiments of the application; Figure 8 is a third network structure diagram of the communication method of the multiple devices provided by the embodiments of the application; Figure 9 is a fourth network structure diagram of the communication method of the multiple devices provided by the embodiments of the application; Figure 10 is one of the structure diagrams of the communication device of the multiple devices provided by the embodiments of the application; Figure 11 is another structure diagram of the communication device of the multiple devices provided by the embodiments of the application; Figure 12FIG. 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art are within the scope of protection of the present application.
[0025] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship.
[0026] The multi-device communication method, multi-device communication apparatus, electronic device, and readable storage medium provided by the embodiments of the present application will be described in detail below with reference to the drawings and specific embodiments and their application scenarios.
[0027] The multi-device communication method can be applied to a terminal, and can be executed by hardware or software in the terminal.
[0028] The multi-device communication method provided by the embodiments of the present application can be executed by an electronic device or a functional module or functional entity in the electronic device capable of implementing the multi-device communication method. The electronic device mentioned in the embodiments of the present application includes but is not limited to a mobile phone, a tablet computer, a computer, a camera, a wearable device, and the like. The multi-device communication method provided by the embodiments of the present application will be described below with the electronic device as an example of an execution subject.
[0029] It should be noted that the multi-device communication method can be used in a multi-device scenario, which includes a control core and a controlled object. The control core can be any device in the plurality of devices, or a controller independent of each device. The controlled object is each device except the control core. For ease of description, the first device represents the controlled object, and the second device represents the control core.
[0030] In some embodiments, the multi-device can include, but is not limited to, the pure storage device, the pure light device, and the light storage and charging device, and the like. It can be understood that the categories of the devices in the multi-device can be the same or not completely the same.
[0031] The communication method of the multi-device will be described below with the first device and the second device as the execution subject respectively.
[0032] As shown in Figure 1 The communication method of the multi-device is applied to the first device in the multi-device; the communication method of the multi-device includes steps 110, 120, and 130.
[0033] In step 110, the first device receives the first request instruction sent by the second device. In this step, the first device is a pure storage device, a pure light device, or a light storage and charging device, and the like; the second device is a device other than all the first devices in the multi-device, or is another device independent of the multi-device, such as a host computer or a controller, and the like.
[0034] The first request instruction is an instruction for requesting to obtain a new network configuration parameter.
[0035] The first information is information sent by at least one first device for representing an exception of a network service providing device, including but not limited to, an exception of a physical network port network line access state and an exception of a communication state of a network service providing device, and the like.
[0036] The network service providing device is a device for providing network service, including a router and a switch, and the like. In some embodiments, the network service providing device can also be a specific network device used in the light storage system and field environment.
[0037] The first request instruction is an instruction sent by the second device to each first device based on a target trigger strategy after receiving the first information, wherein the target trigger strategy is a strategy for triggering the first request instruction, and is used to control the time, frequency, and delay of sending the first request instruction, and the like.
[0038] In some embodiments, the target trigger strategy can be to send the first request instruction to each first device immediately after the second device receives the first information.
[0039] In another embodiment, the target trigger strategy can be to send the first request instruction to each first device after a certain time delay after the second device receives the first information.
[0040] In some embodiments, the target trigger strategy can be based on user self-defined settings.
[0041] In step 120, the first device broadcasts a second request instruction in response to the first request instruction. In this step, the second request instruction is used to obtain the network configuration parameter.
[0042] In some embodiments, after receiving the first request instruction, the first device can broadcast the second request instruction in response to the first request instruction.
[0043] In some embodiments, after receiving the first request instruction, the first device can broadcast the second request instruction after a certain delay, and the delay time of each first device can be the same or different.
[0044] In some embodiments, broadcasting the second request instruction in response to the first request instruction comprises: Broadcasting the second request instruction based on the first delay time corresponding to the first device in response to the first request instruction, and the first delay time corresponding to each first device is not completely the same.
[0045] In this embodiment, the first delay time is the time length between receiving the first request instruction and broadcasting the second request instruction by the first device.
[0046] The first delay time can be customized by the user, and the first delay time corresponding to different first devices can be set to different time lengths to realize staggered communication of the first devices.
[0047] According to the multi-device communication method provided in the embodiments of the present application, after the first device receives the first request instruction, a certain delay is triggered before obtaining the network configuration parameter, which can realize staggered communication of the first devices in the multi-device networking scenario, reduce the risk of large data pressure on the network service providing device caused by the devices in the networking simultaneously requesting configuration parameters from the network service providing device when the number of devices is large, and ensure the normal and efficient operation of the network service providing device.
[0048] In some embodiments, broadcasting the second request instruction based on the first delay time corresponding to the first device in response to the first request instruction comprises: Randomly determining the time value of the first delay time in response to the first request instruction; Broadcasting the second request instruction after the first delay time.
[0049] In this embodiment, each first device can randomly set its own first delay time through a random algorithm, and broadcast the second request instruction after the first delay time from receiving the first request instruction.
[0050] According to the multi-device communication method provided in the embodiments of the present application, the first delay time is randomly set, which is simple, convenient and easy to implement.
[0051] Step 130, the first device receives the network configuration parameter sent by the network service providing device.
[0052] In this step, the network configuration parameter can include IP, etc.
[0053] In actual implementation process, the first device broadcasts the second request instruction, the network service providing device receives the second request instruction, and sends new network configuration parameter to the first device in response to the second request instruction, the first device receives the new network configuration parameter, sends a request for using the network configuration parameter to the network service providing device, the network service providing device replies to the request for using the network configuration parameter, and after the first device receives the reply, the first device can perform network configuration based on the newly received network configuration parameter, so as to ensure normal communication.
[0054] The inventor finds in the research and development process that in the hand-in-hand local area network networking or star type local area network networking, only the optical storage and charging device directly connected with the network service providing device can perceive the device replacement, restart and downtime of the network service providing device, and other optical storage and charging devices cannot obtain the change of the network service providing device in time, which leads to the use of repeated IP addresses or non-replaced IP network segment communication in the local area network, thereby causing abnormal local area network communication and affecting the normal operation of the optical storage and charging device.
[0055] According to the communication method of the plurality of devices provided in the embodiment of the application, by constructing the communication architecture between the master device and the slave device, when any first device detects that the network service providing device appears device replacement, restart and downtime, the second device can be timely informed, so that the second device sends the first request instruction to each first device to inform each first device of the change of the network service providing device, so that the first device can obtain and update the new network configuration parameter in time, and each device does not need to be powered on and off or plug and unplug the network cable, thereby improving the device networking stability, ensuring the normal local area network communication, and ensuring the normal operation of the optical storage and charging device.
[0056] In some embodiments, before receiving the first request instruction sent by the second device, the method further includes: The first device sends first information to the second device when monitoring that the network service providing device is abnormal.
[0057] In this embodiment, the first information is information sent by at least one first device for representing that the network service providing device is abnormal, including but not limited to: physical network port network line access state abnormality and network service providing device communication state abnormality, etc.
[0058] It should be noted that the first device for sending the first information can be the same device as the present first device, or can be a different device.
[0059] In some embodiments, the network service providing device is monitored for abnormality, including: The physical network port network line access state of the first device is monitored for abnormality, and / or the communication state between the first device and the network service providing device is monitored for abnormality.
[0060] In this embodiment, in the case where any one of the first devices detects that any one or more of the above faults occurs, it is determined that the network service providing device is abnormal. In actual implementation, each first device can monitor the state of its own network port to monitor whether the network service providing device is abnormal, or a certain period can be set, and in the period, the first device is controlled to send information to the network service providing device, and whether the network service providing device is abnormal is monitored based on the information sending and receiving situation, which is not limited in the present application.
[0061] It should be noted that in the present application, the first device and the network service providing device adopt a hand-in-hand networking mode or a star-shaped local area network networking mode.
[0062] Figures 6 to 9 Various networking modes between the first devices and the network service providing device are exemplified, such as Figure 6 As shown in FIG. 1, the network service providing device is a router, any one of the devices is directly connected to the router, and the other devices are sequentially connected one by one. Figure 7 As shown in FIG. 2, the network service providing device includes a router and a switch directly connected to the router, any one of the devices is directly connected to the switch, and the other devices are sequentially connected one by one. Figure 8 As shown in FIG. 3, the network service providing device includes a router and a switch directly connected to the router, part of the devices are directly connected to the switch, and the devices not directly connected to the switch are connected to other optical storage devices. Figure 9 As shown in FIG. 4, the network service providing device includes a router, part of the devices are directly connected to the router, and the devices not directly connected to the router are connected to other optical storage devices.
[0063] In actual implementation, when any one of the first devices in the networking system perceives that the communication state between the first device and the network service providing device is abnormal, or the physical network port network line access of the first device is abnormal, it is considered that the network service providing device is abnormal, and the first information is sent to the second device to inform the second device that the network service providing device is abnormal. After the second device receives the first information, the first request instruction is sent to each first device based on the target trigger strategy, and each first device acquires the network configuration parameter in response to the first request instruction.
[0064] According to the multi-device communication method provided in the embodiments of this application, by constructing a communication architecture between master and slave devices, the first device monitors the status of the network service provider device. In the event that any first device detects that the network service provider device has been replaced, restarted, or crashed, it can promptly notify the second device. The second device can then send a first request instruction to each first device to inform each first device of the changes in the network service provider device. This allows the first device to obtain and update new network configuration parameters in a timely manner, thereby ensuring normal local area network communication and the normal operation of the optical storage and charging equipment.
[0065] The following describes the multi-device communication method of this application, taking the second device as the implementing entity.
[0066] This application also provides a communication method for multiple devices.
[0067] like Figure 2 As shown, the multi-device communication method is applied to a second device; the method includes steps 210 and 220.
[0068] Step 210: The second device receives the first information; In this step, the first device is one of many devices, which can be a pure storage device, a pure optical device, or an optical storage and charging device. The first device can be a device that communicates directly with the network service provider; or it can be a device that communicates with other first devices and communicates indirectly with the network service provider through other communication devices.
[0069] The second device serves as the control core, used for overall control of all devices within the multi-device setup. The second device can be any device other than all the first devices, or it can be any other device independent of the multi-device setup.
[0070] The first information is information sent by at least one first device to characterize an anomaly in the network service providing device.
[0071] Step 220: The second device sends a first request instruction to each of the first devices based on the target triggering strategy. The first request instruction is used to instruct each of the first devices to obtain network configuration parameters.
[0072] In this step, the target triggering strategy is a strategy used to trigger the issuance of the first request instruction, which controls the time, frequency, and delay of the issuance of the first request instruction.
[0073] According to the multi-device communication method provided in the embodiments of this application, by constructing a communication architecture between master and slave devices, if any first device detects that the network service provider device has been replaced, restarted, or crashed, it can promptly notify the second device, so that the second device can send a first request instruction to each first device to inform each first device of the changes in the network service provider device. This enables the first device to obtain and update new network configuration parameters in a timely manner, and each device does not need to be powered on or off or have its network cable unplugged and plugged in, thereby ensuring normal local area network communication and the normal operation of the optical storage and charging equipment.
[0074] The implementation method of the target triggering strategy will be explained below.
[0075] In some embodiments, sending a first request instruction to each first device based on a target triggering strategy includes: If new first information is received within the second delay period, the second delay period is reset; If no new first information is received within the second delay period, a first request instruction is sent to each of the first devices respectively.
[0076] In this embodiment, the second delay duration can be user-defined, and this application does not limit it.
[0077] like Figure 3 As shown, in actual execution, each first device monitors the status of the network service provider in real time and sends the status of the network service provider to the second device in real time. The second device can obtain the status of the network service provider monitored by any device. If the second device detects an abnormality in the physical network port cable access status of the first device, and / or detects an abnormality in the communication status between the first device and the network service provider, such as when the second device receives the first information sent by any first device, it triggers a second delay period and continues to receive the status of the network service provider sent by each first device within the second delay period.
[0078] If no first information is received from other devices within the second delay period, then after the second delay period ends, a first request instruction is sent to each first device to instruct each first device to broadcast a second request instruction to obtain new network configuration parameters.
[0079] If, within the second delay period, a first message is received from another device, the second delay period is refreshed, and the second delay period is extended again from the current moment. Within the new second delay period, the status of the network service provider device sent by each first device is continuously received, and so on, until no more first messages are received from other first devices within the second delay period. Then, after the second delay period ends, a first request instruction is sent to each first device respectively.
[0080] After each first device receives the first request instruction, it can randomly generate a first delay duration and broadcast the second request instruction after the first delay duration. The first delay durations randomly generated by each first device may not be exactly the same.
[0081] According to the multi-device communication method provided in this application embodiment, when the second device senses an abnormal delay in the network service provider, it issues a first request command. This reduces the risk of the second device issuing multiple first request commands due to multiple devices sensing the state of the network provider when the number of optical storage and charging devices is large. This could lead to a high network load due to a large number of short-term and repeated messages. By setting a second delay duration, the second device can send commands to each first device to obtain network configuration parameters only after the network has recovered to a stable state. This effectively reduces the network load, ensures normal local area network communication, and guarantees the normal operation of the optical storage and charging devices.
[0082] In some embodiments, sending a first request instruction to each first device based on a target triggering strategy includes: Send a first request instruction to each of the first devices respectively; Upon receiving the new first information, and after a third delay, the first request instruction is resent to each of the first devices.
[0083] In this embodiment, the third delay duration can be user-defined, and this application does not limit it here.
[0084] like Figure 4 As shown, during actual execution, each first device monitors the status of the network service provider in real time and sends the status of the network service provider to the second device in real time. The second device can obtain the status of any network service provider monitored by any device. If the second device detects an abnormality in the physical network port cable access status of the first device, and / or detects an abnormality in the communication status between the first device and the network service provider, such as if the second device receives a first message sent by any first device, it broadcasts a first request instruction to instruct each first device to reacquire network configuration parameters and triggers a delay of the third delay duration.
[0085] During the third delay period, regardless of whether the first message is received from other devices, the first request command will not be sent again. If the first message is received from other devices during the third delay period, the first request command will be rebroadcast after the third delay period ends.
[0086] After each first device receives the first request instruction, a first delay duration can be randomly generated respectively, and the second request instruction can be broadcasted after the first delay duration. The first delay duration randomly generated by each first device can not be exactly the same.
[0087] In some embodiments, as shown in Figure 5 Each first device monitors the state of the network service providing device in real time, and sends the state of the network service providing device to the second device in real time. The second device can obtain the state of the network service providing device monitored by any device. In the case that the second device monitors that the physical network port access state of the first device is abnormal, and / or, monitors that the communication state between the first device and the network service providing device is abnormal, such as the case that the second device receives the first information sent by any first device, the first request instruction is broadcasted to indicate each first device to reacquire the network configuration parameter, and trigger the delay of the fourth delay duration.
[0088] The fourth delay duration can be based on user-defined settings.
[0089] During the fourth delay duration, no matter whether the first information sent by other devices is received, no first request instruction is sent during this period.
[0090] After the fourth delay duration, the next round of trigger period can be entered.
[0091] According to the multi-device communication method provided by the embodiments of the present application, by setting multiple target trigger strategies, the matched trigger mode can be selected according to the actual demand, which has high flexibility and universality.
[0092] In some embodiments, after receiving the first information, the method further includes: After the first delay duration corresponding to the second device, the third request instruction is broadcasted, and the third request instruction is used to acquire the network configuration parameter; The network configuration parameter sent by the network service providing device is received.
[0093] In this embodiment, for the case that the second device is a device in the multi-device, such as an optical storage charging device, a pure optical device or a pure storage device, after receiving the first information, the second device itself can also send the third request instruction to the network service providing device after the first delay duration to acquire the new network configuration parameter replied by the network service providing device. The acquisition method of the network configuration parameter is similar to that of the first device, which is not described herein.
[0094] According to the multi-device communication method provided in the embodiments of this application, after the first delay duration corresponding to the second device, a third request instruction is broadcast to obtain network configuration parameters, so that the second device can obtain and update new network configuration parameters in a timely manner, thereby ensuring normal local area network communication and the normal operation of the optical storage and charging equipment.
[0095] The multi-device communication method provided in this application can be executed by a multi-device communication device. This application uses an example of a multi-device communication device executing the multi-device communication method to illustrate the multi-device communication device provided in this application.
[0096] This application also provides a communication device for multiple devices.
[0097] like Figure 10 As shown, the multi-device communication device is applied to the first device in the multi-device setup; the device includes: a first processing module 1010, a second processing module 1020 and a third processing module 1030.
[0098] The first processing module 1010 is used to receive a first request instruction sent by the second device; the first request instruction is an instruction sent by the second device to each first device based on a target triggering strategy after receiving the first information; the first information is information sent by at least one first device to characterize an abnormality of the network service providing device; the second device is a device other than all the first devices among the multiple devices, or a device independent of the multiple devices. The second processing module 1020 is used to respond to the first request instruction and broadcast a second request instruction, the second request instruction being used to obtain network configuration parameters; The third processing module 1030 is used to receive network configuration parameters sent by the network service provider device.
[0099] According to the multi-device communication device provided in the embodiments of this application, by constructing a communication architecture between master and slave devices, if any first device detects that the network service provider device has been replaced, restarted, or crashed, it can promptly notify the second device, so that the second device can send a first request instruction to each first device to inform each first device of the changes in the network service provider device. This enables the first device to obtain and update new network configuration parameters in a timely manner, and each device does not need to be powered on or off or have its network cable unplugged and plugged in, thereby ensuring normal local area network communication and the normal operation of the optical storage and charging equipment.
[0100] In some embodiments, the second processing module 1020 is configured to: In response to the first request instruction, a second request instruction is broadcast based on the first delay duration corresponding to the first device. The first delay durations corresponding to each first device are not exactly the same.
[0101] In some embodiments, the second processing module 1020 is configured to: randomly determine a time value of the first time delay duration in response to the first request instruction; broadcast the second request instruction after the first time delay duration.
[0102] In some embodiments, the apparatus further comprises a sixth processing module configured to: send the first information to the second device in a case where the network service providing device is monitored to be abnormal before receiving the first request instruction sent by the second device.
[0103] In some embodiments, the sixth processing module is configured to: monitor that the physical network port access state of the first device is abnormal, and / or monitor that the communication state between the first device and the network service providing device is abnormal.
[0104] Embodiments of the present application further provide a multi-device communication apparatus.
[0105] As shown in Figure 11 the multi-device communication apparatus is applied to a second device; the apparatus comprises a fourth processing module 1110 and a fifth processing module 1120.
[0106] The fourth processing module 1110 is configured to receive first information; the first information is information sent by at least one first device for representing that a network service providing device is abnormal, the first device is a device in a multi-device, and the second device is a device in the multi-device except all the first devices, or the second device is another device independent of the multi-device; The fifth processing module 1120 is configured to send a first request instruction to each first device based on a target trigger strategy, the first request instruction being used for instructing each first device to acquire a network configuration parameter.
[0107] According to the multi-device communication apparatus provided by the embodiments of the present application, by constructing the communication architecture between the master and slave devices, in a case where any first device detects that the network service providing device is replaced, restarted or down, the second device can be timely informed, so as to send the first request instruction to each first device to inform each first device of the change of the network service providing device, so that each first device can timely acquire and update the new network configuration parameter, and each device does not need to be powered on and off or plug in and out the network cable, thereby ensuring the normal operation of the local area network communication and the normal operation of the optical storage and charging device.
[0108] In some embodiments, the fifth processing module 1120 is configured to: reset the second time delay duration in a case where new first information is received within the second time delay duration; In a case that no new first information is received in the second time duration, the first request instruction is sent to each first device respectively.
[0109] In some embodiments, the fifth processing module 1120 is configured to: send the first request instruction to each first device respectively; In a case that the new first information is received and after the third time duration, the first request instruction is re-sent to each first device respectively.
[0110] In some embodiments, the apparatus further includes a seventh processing module configured to: After the first information is received, the method further includes: after the first time duration corresponding to the second device, the third request instruction is broadcasted, and the third request instruction is used to acquire the network configuration parameter; receive the network configuration parameter sent by the network service providing device.
[0111] The multi-device communication apparatus in the embodiments of the present applicationapplicationbe an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic deviceapplicationbe a terminal or other devices than a terminal. For example, the electronic deviceapplicationbe a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), andapplicationbe a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application are not limited in this regard.
[0112] The multi-device communication apparatus in the embodiments of the present applicationapplicationbe a device with an operating system. The operating systemapplicationbe an Android operating system, an IOS operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0113] The multi-device communication apparatus provided in the embodiments of the present applicationapplicationimplement the method embodiments to achieve various processes, and details are not described herein again to avoid repetition. Figures 1 to 5 The multi-device communication apparatus provided in the embodiments of the present applicationapplicationimplement the method embodiments to achieve various processes, and details are not described herein again to avoid repetition.
[0114] In some embodiments, as shown in Figure 12 The electronic device 1200 includes a processor 1201, a memory 1202, and a computer program stored in the memory 1202 and executable on the processor 1201. The computer program is executed by the processor 1201 to implement the processes of the above-mentioned multi-device communication method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0115] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.
[0116] The non-transitory computer readable storage medium stores a computer program. The computer program is executed by the processor to implement the processes of the above-mentioned multi-device communication method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0117] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0118] The computer program product includes a computer program. The computer program is executed by the processor to implement the above-mentioned multi-device communication method.
[0119] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0120] The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run a program or an instruction to implement the processes of the above-mentioned multi-device communication method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0121] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc.
[0122] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a", "comprising", or "comprises" does not, without more constraints, preclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element. Additionally, it should be noted that the terms "one embodiment", "some embodiments", "certain embodiments", "certain examples", or "some examples" as used in the present document are intended to refer to one or more embodiments or examples that do not necessarily have to cover all embodiments or examples of the present application. In other words, use of the above terms does not necessarily refer to the same embodiment or example. Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0123] From the above description of the embodiments, it is apparent that the above-described method of the embodiments can be realized by means of software and general-purpose hardware platforms, of course, but in many cases the former is a better embodiment. Based on such an understanding, the technical solutions of the present application, essentially or in other words, the part that contributes to the prior art, can be embodied in the form of a computer software product stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions to make a terminal (which can be a mobile phone, computer, server, or network equipment, etc.) execute the methods described in various embodiments of the present application.
[0124] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the specific embodiments described above, which are merely illustrative rather than restrictive, and a person of ordinary skill in the art can make many forms without departing from the purpose of the present application and the scope protected by the claims.
[0125] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "exemplary embodiment", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the exemplary description of the above terms does not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described can be combined in any suitable manner in any one or more embodiments or examples.
[0126] While the embodiments of the application have been shown and described, it is to be understood that the embodiments can be varied, modified, substituted and changed by those skilled in the art without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.
Claims
1. A multi-device communication method, characterized in that, Applied to the first device among the multiple devices; the method includes: The system receives a first request instruction sent by a second device. The first request instruction is an instruction sent by the second device to each of the first devices based on a target triggering strategy after receiving the first information. The first information is information sent by at least one first device to characterize an anomaly of the network service providing device. The second device is a device other than all of the first devices among the multiple devices, or a device independent of the multiple devices. In response to the first request instruction, a second request instruction is broadcast, the second request instruction being used to obtain network configuration parameters; Receive the network configuration parameters sent by the network service providing device.
2. The multi-device communication method according to claim 1, characterized in that, The step of broadcasting a second request instruction in response to the first request instruction includes: In response to the first request instruction, a second request instruction is broadcast based on the first delay duration corresponding to the first device. The first delay durations corresponding to each first device are not exactly the same.
3. The multi-device communication method according to claim 2, characterized in that, The step of broadcasting a second request instruction in response to the first request instruction, based on a first delay duration corresponding to the first device, includes: In response to the first request instruction, a time value for the first delay duration is randomly determined; After the first delay duration, the second request instruction is broadcast.
4. The multi-device communication method according to any one of claims 1-3, characterized in that, Before receiving the first request instruction sent by the second device, the method further includes: If an anomaly is detected in the network service provider device, the first information is sent to the second device.
5. The multi-device communication method according to claim 4, characterized in that, The detected anomaly in the network service provider device includes: An abnormal physical network port connection status of the first device was detected, and / or an abnormal communication status was detected between the first device and the network service provider.
6. A multi-device communication method, characterized in that, Applied to a second device; the method includes: Receive first information; the first information is information sent by at least one first device to characterize an anomaly of the network service providing device, wherein the first device is a device among the multiple devices, and the second device is a device among the multiple devices other than all the first devices, or the second device is a device other than the multiple devices. Based on the target triggering strategy, a first request instruction is sent to each of the first devices, and the first request instruction is used to instruct each of the first devices to obtain network configuration parameters.
7. The multi-device communication method according to claim 6, characterized in that, The step of sending a first request instruction to each of the first devices based on the target triggering strategy includes: If new first information is received within the second delay period, the second delay period is reset; If no new first information is received within the second delay period, the first request instruction is sent to each of the first devices respectively.
8. The multi-device communication method according to claim 6, characterized in that, The step of sending a first request instruction to each of the first devices based on the target triggering strategy includes: Send the first request instruction to each of the first devices respectively; Upon receiving the new first information, and after a third delay, the first request instruction is resent to each of the first devices.
9. The multi-device communication method according to any one of claims 6-8, characterized in that, After receiving the first information, the method further includes: After the first delay duration corresponding to the second device, a third request instruction is broadcast, which is used to obtain network configuration parameters; Receive the network configuration parameters sent by the network service providing device.
10. A multi-device communication apparatus, characterized in that, Applied to the first device among the multiple devices; the device includes: The first processing module is configured to receive a first request instruction sent by the second device; the first request instruction is an instruction sent by the second device to each of the first devices based on a target triggering strategy after receiving the first information; the first information is information sent by at least one first device to characterize an anomaly of the network service providing device; the second device is a device other than all the first devices among the multiple devices, or a device independent of the multiple devices. The second processing module is used to respond to the first request instruction by broadcasting a second request instruction, the second request instruction being used to obtain network configuration parameters; The third processing module is used to receive the network configuration parameters sent by the network service providing device.
11. A multi-device communication apparatus, characterized in that, Applied to a second device; the device includes: The fourth processing module is used to receive first information; the first information is information sent by at least one first device to characterize an abnormality of the network service providing device, wherein the first device is a device among the multiple devices, and the second device is a device among the multiple devices other than all the first devices, or the second device is a device other than the multiple devices. The fifth processing module is used to send a first request instruction to each of the first devices based on the target triggering strategy. The first request instruction is used to instruct each of the first devices to obtain network configuration parameters.
12. A photovoltaic energy storage and charging system, characterized in that, include: Multiple devices, each of which includes at least one of photovoltaic devices and energy storage devices; A network service providing device is directly connected to at least one of the plurality of devices; The optical storage and charging system is used to perform the multi-device communication method as described in any one of claims 1-9.
13. The photovoltaic energy storage and charging system according to claim 12, characterized in that, The multiple devices are connected to the network service provider through a daisy-chain local area network (LAN) or a star-shaped local area network (SLAN).
14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the multi-device communication method as described in any one of claims 1-9.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the multi-device communication method as described in any one of claims 1-9.