When developing and interacting with hardware, it is often necessary to convert byte data into basic types: 1. Splicing of byte data 2. Merging of byte data 3. Interception of byte data 4. Convert bytes to basic type data, and convert basic type data to byte array… public class ByteArrayUtil { /** * byte array […]
Tag: iot
IoTDB in springboot2 (1) Integration and writing
IoTDB in springboot2 (1) Integration and writing into springboot Due to the needs of the company’s business, it is necessary to record and display equipment-related indicator information. After trying the practical applications of mysql and MongoDB, I found that it is still too slow in front of a large amount of data. If MongoDB queries […]
4. Use MediaExtractor+MediaCodec+AudioTrack to play audio files
Use MediaExtractor + MediaCodec + AudioTrack to play audio files First look at a picture: If you want to play a video, you have to deprotocol and decapsulate the video file. Then you can get the audio data and video data (separately), decode them separately again, and finally play them synchronously (because the devices that […]
An attempt at WebRTC communication mechanism in IoT scenarios
Specific implementation steps Run https://github.com/Jhuster/RTCStartupDemo to see the actual effect Replace the warehouse’s RTCSignalClient with the gateway’s communication mechanism, check whether the project source code can be used: Github, and reconstruct the project. The final runtime is: 2023/05/ 28 WebRTC related knowledge Transport protocol used by WebRTC: ICE (Interactive Connectivity Establishment): This is a framework […]
Implement configurable and scalable IOT services based on Vertx
The goal of building the framework I believe that partners who have written IOT services should know that faced with various strange communication protocols, especially the hexadecimal message protocols, some protocols are indeed a bit troublesome to read. But there are also many commonalities among these protocols, and there is no need to write out […]
SpringBoot integrates IotDB (using Mybatis and Session)
After creating the spring boot project, add dependencies. Note that the dependency version is consistent with your IotDB version <!–iotdb dependency–> <dependency> <groupId>org.apache.iotdb</groupId> <artifactId>iotdb-session</artifactId> <version>0.13.2</version> </dependency> <dependency> <groupId>org.apache.iotdb</groupId> <artifactId>iotdb-jdbc</artifactId> <version>0.13.2</version> </dependency> <!–mybatis dependency–> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.2.0</version> </dependency> Option 1: Integrate using mybatis Add to configuration file server: port: 8080 #iotdb spring: datasource: username: root […]
Go language constant decryption: constant values (const and iota) (with code examples)
Table of Contents Declaration and definition of constants Declare constants in batches Complete code example Constant naming rules Common constant types iota Code example 1 Code example 2 Code example 3 Code example 4 Constant usage scenarios Summarize ?Original text: Go language constant decryption: constant values (const and iota) (with code examples) For more related […]
MultiOTPDocker installs MultiOTP to make Windows login more secure (MFA)
Preface In the current digital age, cybersecurity has become a very important topic. As more people and organizations rely on computer systems to do their jobs and store sensitive information, keeping authentication secure has become critical. Two-factor authentication (2FA) is a powerful security measure that adds another layer of protection beyond the traditional username and […]
iot–mqtt gets data
iot–mqtt gets data MQTT tool operations package com.sc.equipmentiot.core.mqtt; import lombok.extern.slf4j.Slf4j; import org.eclipse.paho.client.mqttv3.*; import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence; import org.springframework.stereotype.Component; /** *MQTT tool operations */ @Slf4j @Component public class MQTTConnect { private String HOST = “tcp://IP:port”; //The address and port number of the mqtt server private final String clientId = “DC” + (int) (Math.random() * 100000000); private MqttClient mqttClient; […]
[RNN+encrypted traffic C] An encrypted traffic classification model based on the raw traffic and spatiotemporal….
Article directory Introduction to the paper Summary Problems Paper contribution 1. method 2. Experiment and result analysis Introduction to the paper Original title: An encrypted traffic classification model based on the raw traffic and spatiotemporal characteristics Chinese title: Encrypted traffic classification model based on original traffic and spatiotemporal characteristics Conference: EITCE 2022: 2022 6th International […]