Abstract: A distributed processing method based on a consistency protocol is provided. The method includes: transmitting a decree prepare request including a first decree number, the decree prepare request requesting other nodes to promise to no longer accept a fast write operation initiated by a leader node whose leader number is less than the first decree number, the first decree number representing a leader number of a current node, and the leader number representing a number of a decree at which the current node that becomes a leader node is located; and in response to receiving decree promises from at least a preset quantity of nodes among the other nodes, enabling the fast write operation from a subsequent decree number of a second decree number determined based on the decree promises, each of the decree promises including the first decree number.
Type:
Grant
Filed:
September 1, 2020
Date of Patent:
January 17, 2023
Assignee:
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Abstract: A speaker comprises a housing, a transducer residing inside the housing, and at least one sound guiding hole located on the housing. The transducer generates vibrations. The vibrations produce a sound wave inside the housing and cause a leaked sound wave spreading outside the housing from a portion of the housing. The at least one sound guiding hole guides the sound wave inside the housing through the at least one sound guiding hole to an outside of the housing. The guided sound wave interferes with the leaked sound wave in a target region. The interference at a specific frequency relates to a distance between the at least one sound guiding hole and the portion of the housing.
Abstract: The present application discloses a signal channel switching method, a display terminal and a computer-readable storage medium. The signal channel switching method includes the following operations: establishing a data connection with a first external device connected with a first hot plug pin; obtaining a first voltage detected by a second hot plug pin, and judging whether the first voltage conforms to a preset rule; if the first voltage conforms to the preset rule, obtaining information of a second external device connected with the second hot plug pin; cutting off the data connection with the first external device and establishing a data connection with the second external device according to the information of the second external device.
Abstract: A self-stabilizing vehicle includes a mass gyroscope which is fixed at an occupant compartment chassis corresponding to a portion where occupants sit. The occupant compartment portion may tilt outwards in response to the centrifugal force. If the vehicle has three or more wheels, the load is evenly distributed on the left wheel and the right wheel which move oppositely up and down about an effectively centrally-mounted shaft pin. Further, the present disclosure proposes a method for operating the self-stabilizing vehicle. According to the self-stabilizing vehicle and the operating method thereof, a vehicle having a narrow body may be used. When the vehicle undergoes external forces such as the centrifugal force and the crosswind, the occupant compartment can maintain the vertical stability even though the wheels may slide sideways.
Abstract: The invention discloses a water toothpick, which includes a high-pressure gas generator, a water tank, a valve, a nozzle assembly and a water supply, wherein the high-pressure gas generator is communicated with the nozzle assembly, the valve is arranged between the high-pressure gas generator and the nozzle assembly, and the water supply is respectively communicated with the water tank and the nozzle assembly, so as to convey water in the water tank to the nozzle assembly. When the water toothpick is used, the high-pressure gas generator transmits generated high-pressure gas to the valve, and after a certain amount of water is stored in the nozzle assembly, the valve is opened, and the high-pressure gas at the valve is instantaneously discharged into the nozzle assembly, mixed with the water in the nozzle assembly to form compressed vapor, and then sprayed out from the nozzle assembly to complete one cleaning action.
Type:
Grant
Filed:
February 24, 2020
Date of Patent:
January 17, 2023
Assignee:
SHENZHEN YUNDING INFORMATION TECHNOLOGY CO., LTD.
Abstract: Embodiments of this application provide a hybrid-cloud data storage method and apparatus, a related device, and a cloud system. The data storage method includes: obtaining, by a gateway of a private cloud, to-be-stored data; determining partial data to be encrypted in the to-be-stored data, to obtain first target data; obtaining a first ciphertext obtained after the first target data is encrypted, the first target data being encrypted according to a first key provided by an encryption chip connected to the gateway; generating second target data including the first ciphertext according to the first ciphertext; generating a data slice corresponding to the second target data according to the second target data; and transmitting the data slice corresponding to the second target data to a public cloud for storage.
Type:
Grant
Filed:
January 15, 2020
Date of Patent:
January 17, 2023
Assignee:
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Inventors:
Bin Sun, Jian Wang, Jie Li, Xianbin Wu, Yupeng Qu, Ailing Wei, Shu Cai, Youlan Gong, Lihu Wang
Abstract: A portable read-write pen and a control method for a portable read-write pen. The control method for a portable read-write pen includes the following steps: step S1 of detecting a state of a pen point of the portable read-write pen; and step S2 of controlling, according to the state of the pen point of the portable read-write pen, the portable read-write pen to enable a touch-read mode or a write-record mode.
Abstract: The present disclosure provides an electronic atomizing apparatus and an atomizer, a power supply assembly, a control method thereof. The electronic atomizing apparatus may include a housing and a heater, a battery, an angle detection mechanism and a processor arranged in the housing. The housing may be configured to define a liquid storage chamber and a mouthpiece. The liquid storage chamber may be configured to storage aerosol-generating liquid and may be arranged between the mouthpiece and the heater. The heater may be configured to be powered by the power supply assembly. The angle detection mechanism may be configured to detect the tilt angle of the electronic atomizing apparatus. The processor may be connected with both the heater and the angle detection mechanism and may be configured to control the heater to stop heating when it is determined that a tilt angle is greater or equal to an angle threshold.
Abstract: A mobile terminal, an on-the-go (OTG) control and configuration method, and a storage medium, wherein the method includes: obtaining an accumulated number of changes of differences in voltages of at least one of a positive data line and a negative data line in an OTG data cable at intervals; according to the accumulated number of changes of the differences in the voltages of at least one of the positive data line and the negative data line in the OTG cable, querying a lookup table pre-stored in the mobile terminal for a current value corresponding to the number of changes; and according to the queried current value, controlling the mobile terminal to set the current value as a current limit for an OTG peripheral device.