首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Html5知典

    【设备】震动(Vibration)

    概述 设备方向(Orientation) API 是通过vibrate()方法来实现的,通过该方法, 当有事件通知时,WEB应用程序可以让设备震动以达到提醒用户的目的。

    1.2K30发布于 2019-11-26
  • 来自专栏联远智维

    实时仿真之数据传输

    " # 替换为你的上行请求 Topic # 下行响应 Topic down_topic = "$thing/down/property/00x/vibration" # 替换为你的下行响应 Topic (registeraddress=0, functioncode=3)), "accx": transform_sensor_data(sensor_vibration.read_register (registeraddress=12, functioncode=3)), "vx": transform_sensor_data(sensor_vibration.read_register (registeraddress=1, functioncode=3)), "vy": transform_sensor_data(sensor_vibration.read_register (registeraddress=2, functioncode=3)), "vz": transform_sensor_data(sensor_vibration.read_register

    35010编辑于 2025-09-04
  • 来自专栏联远智维

    机器人智能运维——振动监测

    " # 替换为你的上行请求 Topic# 下行响应 Topicdown_topic = "$thing/down/property/00x/vibration" # 替换为你的下行响应 Topic# (registeraddress=0, functioncode=3)), "accx": transform_sensor_data(sensor_vibration.read_register (registeraddress=12, functioncode=3)), "vx": transform_sensor_data(sensor_vibration.read_register (registeraddress=1, functioncode=3)), "vy": transform_sensor_data(sensor_vibration.read_register (registeraddress=2, functioncode=3)), "vz": transform_sensor_data(sensor_vibration.read_register

    43010编辑于 2025-03-18
  • 来自专栏应用实践

    IoT设备群体分析实战:用DolphinDB实现从异常诊断到健康评分

    ) as avgVib, std(vibration) as stdVib, percentile(vibration, 99) as p99Vib, max(vibration) as ) / avg(vibration) as cvVibration, std(temperature) / avg(temperature) as cvTemperature, std(rpm 4.2 pivot by:设备对比矩阵pivot by 可以把长表转为矩阵格式,方便做跨设备的热力图:// 每台设备每小时的平均振动值,转为矩阵(行=小时,列=设备)exec avg(vibration 6.2 评分实现// Step 1: 计算原始指标rawMetrics = select deviceId, avg(vibration) as avgVib, max(vibration) ) as avgVib, (1.0 - rank(avg(vibration), true) / count(avg(vibration))) * 100 as dailyVibScore

    10510编辑于 2026-06-12
  • 工业物联网功能设计(一)

    "device_id": "machine_1", "temperature": round(random.uniform(20, 80), 2), "vibration return data # 模拟边缘网关接收到数据 raw_data = { "device_id": "machine_1", "temperature": 72.0, "vibration ) # 插入数据 def insert_data(data): sql = """ INSERT INTO device_data (device_id, temperature, vibration values) db.commit() # 示例数据 data = { "device_id": "machine_1", "temperature": 25.0, "vibration app.run(debug=True) 报警触发示例: def check_for_alarm(data): if data['temperature'] > 75 or data['vibration

    42510编辑于 2025-08-29
  • 告别Kafka+Flink拼装:用DolphinDB重构IoT数据分析平台

    , "vibration", `ts`deviceId)// 低频状态数据表(1Hz采样)status = table(1:0, `ts`deviceId`rpm`pressure`power`status _20240115.csv", parse_dates=["ts"])# 直接写入DolphinDB分区表sess.run("tableInsert{loadTable('dfs://iot', 'vibration 3.2 滑动窗口分析:振动趋势监测计算每台设备振动幅值的滑动平均,用于观察振动趋势:// 计算振动幅值update vibration set amplitude = sqrt(xAxis*xAxis 4.2 传统方案的痛苦在 pandas 里,通常的做法是:# 合并前先重采样对齐vibration_resampled = vibration.set_index('ts').groupby('deviceId ').resample('1s').mean()merged = pd.merge_asof(vibration_resampled, status, on='ts', by='deviceId')问题

    25410编辑于 2026-05-24
  • 工业时序数据实战:基于 DolphinDB 流计算引擎的实现与调优原创

    53.3 规则三:振动标准差突然增大计算滑动窗口标准差,并与历史基线比较:// 计算60秒滑动窗口标准差,基线为前300秒的均值select deviceId, timestamp, value as vibration value, 60), 300) as stdDeviationfrom loadTable("dfs://iot_monitor", "sensorData")where metricType = `vibration 1000), `temperature, 50 + norm(0, 2)) insert into t values(dev, timestamp(ts + i*1000), `vibration vibMax=6.12, tempDelta=0 critical2024-06-06 10:30:15 device_3 vibration_threshold vibMax = "device_3", 1, 0)) as falsePositive from data where metricType = `vibration

    13710编辑于 2026-06-06
  • 来自专栏Python项目实战

    边缘计算:让数据不再“绕远路”,实时处理能力这样提升!

    模拟传感器实时数据def sensor_data(): return { "temperature": random.uniform(20, 100), # 温度 "vibration def edge_process(data): if data["temperature"] > 80: print("⚠️ 高温警报:", data) elif data["vibration range(5): d = sensor_data() edge_process(d) time.sleep(1)运行效果可能是这样的:正常: {'temperature': 35.6, 'vibration ': 2.3}⚠️ 高温警报: {'temperature': 92.1, 'vibration': 3.2}正常: {'temperature': 50.2, 'vibration': 4.1}⚠️ 异常震动: {'temperature': 45.3, 'vibration': 9.2}这就是典型的 “边缘预警”:边缘设备先把关键问题抓出来,避免等云端处理时已经晚了。

    55510编辑于 2025-09-14
  • 来自专栏HarmonyOS知识集合

    【HarmonyOS NEXT】如何读取Raw下的JSON文件内容

    getContext().resourceManager.getRawFileContent("vibration.json")2.通过util.TextDecoder设置编码,解析字节流内容转化为string * 获取JSON */ private getRawJson(){ try { getContext().resourceManager.getRawFileContent("vibration.json fontSize(50) .fontWeight(FontWeight.Bold) } } .height('100%') .width('100%') }}vibration.json

    1.6K10编辑于 2025-03-28
  • 来自专栏鸿蒙开发笔记

    纯血鸿蒙APP实战开发——使用弹簧曲线实现抖动动画及手机振动效果案例

    vibrator.startVibration({ type: 'time', // 持续触发马达振动时间600ms duration: CONFIGURATION.VIBRATION_TIME alarm', }, (error: BusinessError) => { if (error) { logger.error(`Failed to start vibration error.code}, message: ${error.message}`); return; } logger.info('Succeed in starting vibration

    41610编辑于 2025-01-10
  • 来自专栏联远智维

    实时仿真 — 数据采集器

    串口配置 ser = serial.Serial('COM5', baudrate=19200, bytesize=8, parity='N', stopbits=1, timeout=1) sensor_vibration # 读取寄存器 1002 和 1003 reg_1002 = sensor_vibration.read_register (registeraddress=1002, functioncode=3) reg_1003 = sensor_vibration.read_register

    27910编辑于 2025-12-25
  • 智慧矿山AI安全监管方案

    = get_vibration_data() temperature = get_temperature_data() pressure = get_pressure_data() # 获取设备运行状态标签 label = get_device_status() return vibration, temperature, pressure, label# 数据预处理函数 def preprocess_data(vibration, temperature, pressure): # 数据标准化 scaler = StandardScaler() data = np.array([vibration, temperature, pressure]).T normalized_data = scaler.fit_transform(data) , temperature, pressure, label = collect_data() data = preprocess_data(vibration, temperature, pressure

    67110编辑于 2024-11-23
  • 来自专栏AI SPPECH

    007_执行模块的物理安全防护:防范侧信道攻击与机械篡改的多维保障

    self.thresholds['temperature']: anomalies.append('温度异常') if readings['vibration '] > self.thresholds['vibration']: anomalies.append('振动异常') if readings[ mean': np.mean(temp_values), 'std': np.std(temp_values) }, 'vibration ': { 'min': min(vibration_values), 'max': max(vibration_values), 'mean': np.mean(vibration_values), 'std': np.std(vibration_values) },

    30310编辑于 2025-11-19
  • 来自专栏杨丝儿的小站

    SP Module 2 – Acoustics of Consonants and Vowels

    Fundamental period is the lowest frequency of a vibration object. the length of time that passes between the release of a stop consonant and the onset of voicing, the vibration

    42830编辑于 2022-11-10
  • 来自专栏前端开发随记

    没了解过的Web API

    console.log("页面正在从内存中卸载") // 有的浏览器不支持此功能 break; } }) 参考链接:visibilitychange 有关页面生命周期可参考阮一峰的文章 Vibration window.navigator.vibrate([200, 100, 200]) // 振动200ms 暂停100ms 振动200ms // 停止震动 window.navigator.vibrate() 参考链接:Vibration

    77810编辑于 2022-12-15
  • 来自专栏杨丝儿的小站

    SP Modules Review Contents

    Sounds produced with vocal fold vibration are voiced. In contrast, voiceless sounds are those made without vibration of the vocal folds Place of articulation object or an air column are amplified by an outside force of the same natural frequency (sympathetic vibration

    97630编辑于 2022-11-15
  • 来自专栏速入大数据

    当数据遇上能源:未来能源产业的“外挂BUFF”是这么装上的

    示例给你看看如何做风机振动预警:展开代码语言:PythonAI代码解释importnumpyasnp#假设风机振动传感器数据vibration=np.load("vibration.npy")#简单异常检测 :Z-Scoremean=vibration.mean()std=vibration.std()z_scores=(vibration-mean)/stdanomaly=np.where(z_scores

    23800编辑于 2025-11-15
  • 来自专栏wOw的Android小站

    [Android][Framework] 无障碍快捷方式相关代码

    owningPackage = mContext.getOpPackageName(); } if (pattern.length == 1) { // One-shot vibration mVibrator.vibrate(owningUid, owningPackage, pattern[0], VIBRATION_ATTRIBUTES); } else { // Pattern vibration mVibrator.vibrate(owningUid, owningPackage, pattern, -1, VIBRATION_ATTRIBUTES

    2.3K10发布于 2018-09-18
  • 来自专栏C++开发

    从算法到落地:DeepSeek如何突破AI工具的同质化竞争困局

    # 自定义振动分析算法插件 from deepseek_sdk import register_plugin @register_plugin(name="custom_vibration_analysis # 返回故障特征向量 return extract_features(processed) # 替换默认分析模块 pm_api.replace_analyzer( target="vibration ", plugin="custom_vibration_analysis" ) 四、未来挑战与突围方向 尽管DeepSeek在垂直领域优势显著,但仍需应对三重挑战: 用户习惯迁移成本:企业从通用工具转向专用系统需重新培训员工

    65410编辑于 2025-02-10
  • 来自专栏人工智能应用

    【KWDB 创作者计划】_玩转数据库——纯硬核的工业级KWDB数据库产品评测报告(附测试代码)

    48ms 113ms 三、高级特性评测 3.1 自适应压缩算法 测试代码: def test_compression(): # 原始振动数据写入 vib_data = generate_vibration_waveform raw_size = sys.getsizeof(pickle.dumps(vib_data)) # KWDB压缩存储 db_manager.insert_data("vibration_data = db_manager.execute_query(""" SELECT pg_column_size(waveform) as stored_size FROM vibration_data SELECT device_id, IN_SITU_FFT(waveform, 1024) as spectrum FROM vibration_data # 对比传统方式 start = time.time() raw_data = db_manager.execute_query("SELECT waveform FROM vibration_data

    38110编辑于 2025-08-01
领券