Communication systems and methods
Systems and methods for establishing communication between a terminal and a device are disclosed. According to certain embodiments, a method used in the device includes receiving a plurality of multicast packets from the terminal. The method also includes determining, according to the multicast packets, wireless connection information of a wireless network. The method further includes connecting to the wireless network according to the wireless connection information. The method further includes generating a notification indicating a password associated with the device.
1. A method for establishing communication between a device and a terminal, comprising:
obtaining wireless connection information of a wireless network;
generating a plurality of multicast packets including wireless connection information of the wireless network;
sending the multicast packets to the device; and
after the device is connected to the wireless network, trigger, by the terminal, the device to generate a notification indicating a password associated with the device; and
sending the password associated with the device to a cloud server for verification.
2. The method according to claim 1 , wherein
the plurality of multicast packets comprise one or more first multicast packets and one or more second multicast packets; and
generating the plurality of multicast packets further comprises:
writing into the one or more first multicast packets an identification of the terminal and a length of a wireless password associated with the wireless network; and
writing into each second multicast packet a serial number and at least a part of the wireless password corresponding to the serial number.
3. The method according to claim 1 , wherein generating the plurality of multicast packets further comprises:
encrypting the information included in the plurality of multicast packets.
4. A terminal, comprising:
a memory storing instructions; and
a processor configured to execute the instructions to:
obtain wireless connection information of a wireless network;
generate a plurality of multicast packets including wireless connection information of the wireless network;
send the multicast packets to a device; and
after the device is connected to the wireless network, trigger the device to generate a notification indicating a password associated with the device; and
sending the password associated with the device to a cloud server for verification.
5. The terminal according to claim 4 , wherein
the plurality of multicast packets comprise one or more first multicast packets and one or more second multicast packets; and
the processor is further configured to execute the instructions to:
write into the one or more first multicast packets an identification of the terminal and a length of a wireless password associated with the wireless network; and
write into each second multicast packet a serial number and at least a part of the wireless password corresponding to the serial number.
6. The terminal according to claim 4 , wherein the processor is further configured to execute the instructions to:
encrypt the information included in the multicast packets.
7. A non-transitory computer-readable storage medium storing instructions for establishing communication between a device and a terminal, the instructions causing a processor to perform operations comprising:
obtaining wireless connection information of a wireless network;
generating a plurality of multicast packets including wireless connection information of the wireless network;
sending the multicast packets to the device; and
after the device is connected to the wireless network, trigger, by the terminal, the device to generate a notification indicating a password associated with the device; and
sending the password associated with the device to a cloud server for verification.
8. The non-transitory computer-readable storage medium of claim 7 , wherein
the plurality of multicast packets comprise one or more first multicast packets and one or more second multicast packets; and
the operations further comprise:
writing into the one or more first multicast packets an identification of the terminal and a length of a wireless password associated with the wireless network; and
writing into each second multicast packet a serial number and at least a part of the wireless password corresponding to the serial number.
9. The non-transitory computer-readable storage medium of claim 7 , wherein the operations further comprise:
encrypting the information included in the multicast packets.