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

    【设备】震动(Vibration)

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

    1.1K30发布于 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

    29610编辑于 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

    35710编辑于 2025-03-18
  • 工业物联网功能设计(一)

    "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

    35110编辑于 2025-08-29
  • 来自专栏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.2K10编辑于 2025-03-28
  • 来自专栏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}这就是典型的 “边缘预警”:边缘设备先把关键问题抓出来,避免等云端处理时已经晚了。

    45910编辑于 2025-09-14
  • 来自专栏鸿蒙开发笔记

    纯血鸿蒙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

    36210编辑于 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

    21910编辑于 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

    57510编辑于 2024-11-23
  • 来自专栏前端开发随记

    没了解过的Web API

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

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

    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

    38030编辑于 2022-11-10
  • 来自专栏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) },

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

    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

    90530编辑于 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

    19900编辑于 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.2K10发布于 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在垂直领域优势显著,但仍需应对三重挑战: 用户习惯迁移成本:企业从通用工具转向专用系统需重新培训员工

    61210编辑于 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

    32710编辑于 2025-08-01
  • 来自专栏harmonyos从入门到精通

    190.HarmonyOS NEXT系列教程之图案锁振动反馈功能实现

    记录错误代码记录错误信息3.2 回调处理(error: BusinessError) => { if (error) { console.error(`Failed to start vibration Code: ${error.code}, message: ${error.message}`); } else { console.info(`Success to start vibration

    23500编辑于 2025-03-22
  • 来自专栏harmonyos从入门到精通

    202.HarmonyOS NEXT系列教程之图案锁错误处理机制详解

    错误处理 const error: BusinessError = err as BusinessError; console.error(`Failed to start vibration 错误处理方法状态恢复用户反馈2.2 回调错误处理(error: BusinessError) => { if (error) { console.error(`Failed to start vibration // 提供用户反馈 this.showErrorFeedback(); } else { console.info(`Success to start vibration

    28300编辑于 2025-03-23
  • 工业物联网功能设计(二)

    producer.flush() # 示例设备数据 data = { "device_id": "machine_101", "temperature": 67.2, "vibration time_stamps = ['2024-12-10 10:00', '2024-12-10 11:00', '2024-12-10 12:00'] temperature = [65.5, 68.0, 72.3] vibration time_stamps, y=temperature, mode='lines+markers', name='温度')) fig.add_trace(go.Scatter(x=time_stamps, y=vibration

    22710编辑于 2025-08-29
领券