小程序开发——获取设备信息 API(一)

ty.device.getDeviceInfo

获取设备的设备信息

需引入DeviceKit,且在>=1.2.6版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdstringdeviceId 设备 id 支持跨面板获取其他的设备信息,当前面板可以传当前设备的 id 来进行获取
dpsanydps
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success
属性类型说明
schemaarray产品信息,schema,功能定义都在里面
dpsanydps 设备的功能点状态,可以根据对应的 dpid 拿到具体的状态值去做业务逻辑
attributenumberattribute 产品属性定义,在 backend-ng 平台上可查到对应配置,使用二进制位运算的方式进行管理
capabilitynumbercapability 产品能力值,在 backend-ng 平台上可以查询对应的勾选项,整体业务逻辑会根据该数据进行划分 区分设备类型也可以根据该属性进行调整,按二进制位运算的方式进行管理
dpNameanydpName 自定义 dp 的名字,通常在面板里会使用到
abilitynumberability 目前业务很少使用,用于区分特殊类型的设备
iconstringicon 设备的 icon url
devIdstringdevId 设备的唯一 id
verSwstringverSw 设备固件版本号
isSharebooleanisShare 是否为分享设备,true 则是分享设备
bvstringbv 设备的基线版本号
uuidstringuuid 设备的固件唯一标识
panelConfiganypanelConfig 产品面板里的配置项,通常在 IoT 平台上可以查看到对应的配置
activeTimenumberactiveTime 设备激活时间,时间戳
devAttributenumberdevAttribute 设备的业务能力拓展,二进制位的方式进行运算
pccstringpcc Thing 自研蓝牙 mesh 产品的分类标识
nodeIdstringnodeId 子设备的短地址
parentIdstringparentId 上级节点 id,子设备/或蓝牙 mesh 设备通常会有该字段,用于内部寻找相关的网关或上级模型来进行业务处理
categorystringcategory 产品的分类

standSchema

Model

objectstandSchemaModel 标准产品功能集定义模型
productIdstringproductId 设备对应的产品 id
bizAttributenumberbizAttribute 设备自主上报的能力位
meshIdstringmeshId Thing 自研的蓝牙 mesh id
sigmeshIdstringsigmeshId 当前设备所属行业属性对应的蓝牙 mesh id
metaanymeta 设备自定义配置元属性,用于存放业务数据
isLocalOnlinebooleanisLocalOnline 本地局域网是否在线
isCloudOnlineboolean设备云端在线情况
isOnlinebooleanisOnline 设备总的在线情况,只要一个情况在线,就是在线,复合在线情况
namestringname 设备名称
groupIdstringgroupId
dpCodesanydpCodes 标准功能集 code
devTimezoneIdstring时区信息
dpsTimeany设备的功能点执行的时间
latitudestring设备纬度
longitudestring设备经度
ipstring设备 ip 地址
isVirtualDeviceboolean是否为虚拟设备

isZigbeeInstall

Code

booleanzigbeeInstallCode to the cloud to mark the gateway with installation code ability
  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.getDeviceInfo({deviceId: '64710761ecfabcaaf553',
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

返回示例

{"latitude": "30.3029","dps": {"101": false,"102": 10,"103": "121100","104": 1,"105": false,"106": 2,"107": "0d01","109": true,"116": 9,"117": "4","121": false,"122": false,"123": false,"124": false,"125": false,"126": false,"127": "0103497f0f01010a010a0a000002d07f0f01010a010a0a000002d07f0f01010a010a0a000002d07f0f01010a010a0a00","128": "0001010a1e011e0f1e01","129": true,"130": false},"protocolAttribute": 0,"dpName": {"101": "灯","105": "收音机","109": "闹钟1","121": "入睡","122": "闹钟2","123": "闹钟3","124": "闹钟4","130": "贪睡"},"schema": [{"code": "led","id": 101,"property": {"type": "bool"},"name": "日常灯开关","mode": "rw","type": "obj"}, {"code": "led_light","id": 102,"property": {"unit": "","min": 1,"scale": 0,"step": 1,"type": "value","max": 20},"name": "日常灯亮度","mode": "rw","type": "obj"}, {"code": "time_set","id": 103,"property": {"type": "string","maxlen": 255},"name": "设备时间","mode": "rw","type": "obj"}, {"code": "panel_light","id": 104,"property": {"unit": "","min": 0,"scale": 0,"step": 1,"type": "value","max": 2},"name": "面板亮度","mode": "rw","type": "obj"}, {"code": "Radio","id": 105,"property": {"type": "bool"},"name": "Radio开关","mode": "rw","type": "obj"}, {"code": "volume","id": 106,"property": {"unit": "","min": 1,"scale": 0,"step": 1,"type": "value","max": 16},"name": "Radio音量","mode": "rw","type": "obj"}, {"code": "Radiolist","id": 107,"name": "Radio总台数及当前播放台号","mode": "rw","type": "raw"}, {"code": "clock1","id": 109,"property": {"type": "bool"},"name": "闹钟1开关","mode": "rw","type": "obj"}, {"code": "Delay_time","id": 116,"property": {"unit": "分钟","min": 8,"scale": 0,"step": 1,"type": "value","max": 15},"name": "推迟启动时间","mode": "rw","type": "obj"}, {"code": "close_mode_set","id": 117,"property": {"range": ["1", "2", "3", "4"],"type": "enum"},"name": "推迟关闭模式","mode": "rw","type": "obj"}, {"code": "sleep","id": 121,"property": {"type": "bool"},"name": "伴睡开关","mode": "rw","type": "obj"}, {"code": "clock2","id": 122,"property": {"type": "bool"},"name": "闹钟2开关","mode": "rw","type": "obj"}, {"code": "clock3","id": 123,"property": {"type": "bool"},"name": "闹钟3开关","mode": "rw","type": "obj"}, {"code": "clock4","id": 124,"property": {"type": "bool"},"name": "闹钟4开关","mode": "rw","type": "obj"}, {"code": "Internet_time","id": 125,"property": {"type": "bool"},"name": "网络校时","mode": "rw","type": "obj"}, {"code": "Radio_search","id": 126,"property": {"type": "bool"},"name": "Radio搜台开关","mode": "rw","type": "obj"}, {"code": "clock_set","id": 127,"name": "闹钟设置","mode": "rw","type": "raw"}, {"code": "sleep_set","id": 128,"name": "伴睡设置","mode": "rw","type": "raw"}, {"code": "colorLight","id": 129,"property": {"type": "bool"},"name": "彩灯开关","mode": "rw","type": "obj"}, {"code": "Delay","id": 130,"property": {"type": "bool"},"name": "推迟开关","mode": "rw","type": "obj"}],"isOnline": false,"activeTime": 1644559537,"bizAttribute": 0,"category": "dj","dpsTime": {"101": 1644559633434,"102": 1644559632880,"103": 1644559690125,"104": 1644559540946,"105": 1644559723564,"106": 1644559675644,"107": 1644559540785,"109": 1644559540946,"116": 1644559540946,"117": 1644559540946,"121": 1644559540946,"122": 1644559540946,"123": 1644559540946,"124": 1644559540946,"125": 1644559540946,"126": 1644559723681,"127": 1644559540828,"128": 1644559540879,"129": 1644559633434,"130": 1644559540946},"capability": 1,"hasWifi": true,"isShare": false,"baseAttribute": 1024,"attribute": 274878695808,"bluetoothCapability": "","roomName": "","devAttribute": 3,"dpCodes": {"switch_led": false,"bright_value": 10},"isSupportOTA": true,"switchDp": 0,"icon": "https://images.tuyacn.com/smart/icon/ay1524204424146aiEgV/1d70743480aacffbc520f4fe1a8f73a9.png","uuid": "64710761ecfabcaaf553","isSupportGroup": false,"mac": "ecfabcaaf553","connectionStatus": 0,"isTripartiteMatter": false,"pcc": "","wifiEnableState": 2,"isLocalOnline": false,"devId": "64710761ecfabcaaf553","isZigBeeSubDev": false,"name": "唤醒灯","isSupportAppleHomeKit": true,"longitude": "120.0636","isCloudOnline": false,"isMatter": false,"verSw": "3.1.1","switchDps": [],"isZigbeeInstallCode": false,"bv": "5.42","ability": 0,"iconUrl": "https://images.tuyacn.com/smart/icon/ay1524204424146aiEgV/1d70743480aacffbc520f4fe1a8f73a9.png","attributeString": "100000000000000000011000000100110000000","isVirtualDevice": false,"isSupportLink": true,"isGW": false,"ip": "124.90.34.114","cadv": "","devTimezoneId": "Asia/Shanghai","productId": "ORL6E2BCxSYVpfs4","configMetas": {}
}

👉 立即开发。 

ty.device.getDeviceListByDevIds

通过设备 id 队列获取设备的设备信息队列, 用于批量获取设备信息。

需引入DeviceKit,且在>=3.3.0 @ray-js/ray >= 0.9.0版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdsarraydeviceId 设备 ids
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success
属性类型说明
deviceInfosArray<DeviceInfo>设备信息队列

DeviceInfo

属性类型说明
schemaarray产品信息,schema,功能定义都在里面
dpsanydps 设备的功能点状态,可以根据对应的 dpid 拿到具体的状态值去做业务逻辑
attributenumberattribute 产品属性定义,在 backend-ng 平台上可查到对应配置,使用二进制位运算的方式进行管理
capabilitynumbercapability 产品能力值,在 backend-ng 平台上可以查询对应的勾选项,整体业务逻辑会根据该数据进行划分 区分设备类型也可以根据该属性进行调整,按二进制位运算的方式进行管理
dpNameanydpName 自定义 dp 的名字,通常在面板里会使用到
abilitynumberability 目前业务很少使用,用于区分特殊类型的设备
iconstringicon 设备的 icon url
devIdstringdevId 设备的唯一 id
verSwstringverSw 设备固件版本号
isSharebooleanisShare 是否为分享设备,true 则是分享设备
bvstringbv 设备的基线版本号
uuidstringuuid 设备的固件唯一标识
panelConfiganypanelConfig 产品面板里的配置项,通常在 IoT 平台上可以查看到对应的配置
activeTimenumberactiveTime 设备激活时间,时间戳
devAttributenumberdevAttribute 设备的业务能力拓展,二进制位的方式进行运算
pccstringpcc Thing 自研蓝牙 mesh 产品的分类标识
nodeIdstringnodeId 子设备的短地址
parentIdstringparentId 上级节点 id,子设备/或蓝牙 mesh 设备通常会有该字段,用于内部寻找相关的网关或上级模型来进行业务处理
categorystringcategory 产品的分类

standSchema

Model

objectstandSchemaModel 标准产品功能集定义模型
productIdstringproductId 设备对应的产品 id
bizAttributenumberbizAttribute 设备自主上报的能力位
meshIdstringmeshId Thing 自研的蓝牙 mesh id
sigmeshIdstringsigmeshId 当前设备所属行业属性对应的蓝牙 mesh id
metaanymeta 设备自定义配置元属性,用于存放业务数据
isLocalOnlinebooleanisLocalOnline 本地局域网是否在线
isCloudOnlineboolean设备云端在线情况
isOnlinebooleanisOnline 设备总的在线情况,只要一个情况在线,就是在线,复合在线情况
namestringname 设备名称
groupIdstringgroupId
dpCodesanydpCodes 标准功能集 code
devTimezoneIdstring时区信息
dpsTimeany设备的功能点执行的时间
latitudestring设备纬度
longitudestring设备经度
ipstring设备 ip 地址
isVirtualDeviceboolean是否为虚拟设备

isZigbeeInstall

Code

booleanzigbeeInstallCode to the cloud to mark the gateway with installation code ability
  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.getDeviceListByDevIds({deviceIds: ['64710761ecfabcaaf553', '6c87332fc414a65029ovfr'],
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

返回示例

{"deviceInfos": [{"latitude": "30.3029","dps": {"101": false,"102": 10,"103": "121100","104": 1,"105": false,"106": 2,"107": "0d01","109": true,"116": 9,"117": "4","121": false,"122": false,"123": false,"124": false,"125": false,"126": false,"127": "0103497f0f01010a010a0a000002d07f0f01010a010a0a000002d07f0f01010a010a0a000002d07f0f01010a010a0a00","128": "0001010a1e011e0f1e01","129": true,"130": false},"protocolAttribute": 0,"dpName": {"101": "灯","105": "收音机","109": "闹钟1","121": "入睡","122": "闹钟2","123": "闹钟3","124": "闹钟4","130": "贪睡"},"schema": [{"code": "led","id": 101,"property": {"type": "bool"},"name": "日常灯开关","mode": "rw","type": "obj"}, {"code": "led_light","id": 102,"property": {"unit": "","min": 1,"scale": 0,"step": 1,"type": "value","max": 20},"name": "日常灯亮度","mode": "rw","type": "obj"}, {"code": "time_set","id": 103,"property": {"type": "string","maxlen": 255},"name": "设备时间","mode": "rw","type": "obj"}, {"code": "panel_light","id": 104,"property": {"unit": "","min": 0,"scale": 0,"step": 1,"type": "value","max": 2},"name": "面板亮度","mode": "rw","type": "obj"}, {"code": "Radio","id": 105,"property": {"type": "bool"},"name": "Radio开关","mode": "rw","type": "obj"}, {"code": "volume","id": 106,"property": {"unit": "","min": 1,"scale": 0,"step": 1,"type": "value","max": 16},"name": "Radio音量","mode": "rw","type": "obj"}, {"code": "Radiolist","id": 107,"name": "Radio总台数及当前播放台号","mode": "rw","type": "raw"}, {"code": "clock1","id": 109,"property": {"type": "bool"},"name": "闹钟1开关","mode": "rw","type": "obj"}, {"code": "Delay_time","id": 116,"property": {"unit": "分钟","min": 8,"scale": 0,"step": 1,"type": "value","max": 15},"name": "推迟启动时间","mode": "rw","type": "obj"}, {"code": "close_mode_set","id": 117,"property": {"range": ["1", "2", "3", "4"],"type": "enum"},"name": "推迟关闭模式","mode": "rw","type": "obj"}, {"code": "sleep","id": 121,"property": {"type": "bool"},"name": "伴睡开关","mode": "rw","type": "obj"}, {"code": "clock2","id": 122,"property": {"type": "bool"},"name": "闹钟2开关","mode": "rw","type": "obj"}, {"code": "clock3","id": 123,"property": {"type": "bool"},"name": "闹钟3开关","mode": "rw","type": "obj"}, {"code": "clock4","id": 124,"property": {"type": "bool"},"name": "闹钟4开关","mode": "rw","type": "obj"}, {"code": "Internet_time","id": 125,"property": {"type": "bool"},"name": "网络校时","mode": "rw","type": "obj"}, {"code": "Radio_search","id": 126,"property": {"type": "bool"},"name": "Radio搜台开关","mode": "rw","type": "obj"}, {"code": "clock_set","id": 127,"name": "闹钟设置","mode": "rw","type": "raw"}, {"code": "sleep_set","id": 128,"name": "伴睡设置","mode": "rw","type": "raw"}, {"code": "colorLight","id": 129,"property": {"type": "bool"},"name": "彩灯开关","mode": "rw","type": "obj"}, {"code": "Delay","id": 130,"property": {"type": "bool"},"name": "推迟开关","mode": "rw","type": "obj"}],"isOnline": false,"activeTime": 1644559537,"bizAttribute": 0,"category": "dj","dpsTime": {"101": 1644559633434,"102": 1644559632880,"103": 1644559690125,"104": 1644559540946,"105": 1644559723564,"106": 1644559675644,"107": 1644559540785,"109": 1644559540946,"116": 1644559540946,"117": 1644559540946,"121": 1644559540946,"122": 1644559540946,"123": 1644559540946,"124": 1644559540946,"125": 1644559540946,"126": 1644559723681,"127": 1644559540828,"128": 1644559540879,"129": 1644559633434,"130": 1644559540946},"capability": 1,"hasWifi": true,"isShare": false,"baseAttribute": 1024,"attribute": 274878695808,"bluetoothCapability": "","roomName": "","devAttribute": 3,"dpCodes": {"switch_led": false,"bright_value": 10},"isSupportOTA": true,"switchDp": 0,"icon": "https://images.tuyacn.com/smart/icon/ay1524204424146aiEgV/1d70743480aacffbc520f4fe1a8f73a9.png","uuid": "64710761ecfabcaaf553","isSupportGroup": false,"mac": "ecfabcaaf553","connectionStatus": 0,"isTripartiteMatter": false,"pcc": "","wifiEnableState": 2,"isLocalOnline": false,"devId": "64710761ecfabcaaf553","isZigBeeSubDev": false,"name": "唤醒灯","isSupportAppleHomeKit": true,"longitude": "120.0636","isCloudOnline": false,"isMatter": false,"verSw": "3.1.1","switchDps": [],"isZigbeeInstallCode": false,"bv": "5.42","ability": 0,"iconUrl": "https://images.tuyacn.com/smart/icon/ay1524204424146aiEgV/1d70743480aacffbc520f4fe1a8f73a9.png","attributeString": "100000000000000000011000000100110000000","isVirtualDevice": false,"isSupportLink": true,"isGW": false,"ip": "124.90.34.114","cadv": "","devTimezoneId": "Asia/Shanghai","productId": "ORL6E2BCxSYVpfs4","configMetas": {}}, {"isGW": false,"latitude": "30.3028","isVirtualDevice": false,"bluetoothCapability": "","isSupportOTA": false,"dpsTime": {"1": 1603956864511,"2": 1603956864511,"3": 1603956864511,"4": 1603956864511,"5": 1603956864511,"6": 1603956864511,"7": 1603956864511,"8": 1603956864511,"9": 1603956864511,"10": 1603956864511,"11": 1603956864511,"12": 1603956864511,"13": 1603956864511,"101": 1684974921187,"102": 1684974921187,"103": 1684974921187,"104": 1684974921187,"105": 1603956864511},"baseAttribute": 0,"uuid": "6c87332fc414a65029ovfr","configMetas": {},"ability": 0,"pcc": "","iconUrl": "https://images.tuyacn.com/smart/icon/1538039048p03rjhzm8as_0.png","longitude": "120.0632","nodeId": "e922f00ac014e46b","devTimezoneId": "Asia/Shanghai","connectionStatus": 1,"capability": 8192,"dpName": {},"bizAttribute": 0,"isZigbeeInstallCode": false,"isLocalOnline": false,"attribute": 824634640768,"cadv": "","devAttribute": 0,"isZigBeeSubDev": false,"switchDps": [],"dps": {"1": "send_ir","3": "","4": "","5": "","6": "","10": 0,"11": "","13": 0,"101": true,"102": "0","103": 16,"104": "0","105": false},"roomName": "","devId": "6c87332fc414a65029ovfr","dpCodes": {"windspeed": "0","temp_set": 16,"switch": true,"mode": "0"},"name": "空调","parentId": "vdevo160395678273817","ip": "","activeTime": 1603956864,"attributeString": "1100000000000000000011100000100110000000","schema": [{"code": "control","id": 1,"property": {"range": ["send_ir", "study", "study_exit", "study_key"],"type": "enum"},"name": "控制命令","mode": "wr","type": "obj"}, {"code": "study_code","id": 2,"name": "学习编码","mode": "ro","type": "raw"}, {"code": "ir_code","id": 3,"property": {"type": "string","maxlen": 255},"name": "红外编码","mode": "rw","type": "obj"}, {"code": "key_code","id": 4,"property": {"type": "string","maxlen": 255},"name": "码库按键参数","mode": "rw","type": "obj"}, {"code": "key_code2","id": 5,"property": {"type": "string","maxlen": 255},"name": "码库按键参数2","mode": "rw","type": "obj"}, {"code": "key_code3","id": 6,"property": {"type": "string","maxlen": 255},"name": "码库按键参数3","mode": "rw","type": "obj"}, {"code": "key_study","id": 7,"name": "来自学习参数下发","mode": "rw","type": "raw"}, {"code": "key_study2","id": 8,"name": "来自学习参数下发2","mode": "rw","type": "raw"}, {"code": "key_study3","id": 9,"name": "来自学习参数下发3","mode": "rw","type": "raw"}, {"code": "delay_time","id": 10,"property": {"unit": "ms","min": 0,"scale": 1,"step": 1,"type": "value","max": 65535},"name": "红外码发送延时","mode": "wr","type": "obj"}, {"code": "key_code4","id": 11,"property": {"type": "string","maxlen": 255},"name": "新按键参数","mode": "wr","type": "obj"}, {"code": "key_study4","id": 12,"name": "新学习参数","mode": "wr","type": "raw"}, {"code": "type","id": 13,"property": {"unit": "","min": 0,"scale": 1,"step": 1,"type": "value","max": 255},"name": "码库标识","mode": "rw","type": "obj"}, {"code": "switch_power","id": 101,"property": {"type": "bool"},"name": "开关","mode": "wr","type": "obj"}, {"code": "mode","id": 102,"property": {"range": ["0", "1", "2", "3", "4"],"type": "enum"},"name": "工作模式","mode": "rw","type": "obj"}, {"code": "temperature","id": 103,"property": {"unit": "","min": 16,"scale": 0,"step": 1,"type": "value","max": 30},"name": "温度","mode": "wr","type": "obj"}, {"code": "fan","id": 104,"property": {"range": ["0", "1", "2", "3"],"type": "enum"},"name": "风量","mode": "rw","type": "obj"}, {"code": "swing","id": 105,"property": {"type": "bool"},"name": "摆风","mode": "wr","type": "obj"}],"isMatter": false,"hasWifi": false,"category": "qt","isOnline": true,"verSw": "1.0","isSupportLink": true,"productId": "nr42aemawhabr9hu","isShare": false,"switchDp": 0,"icon": "https://images.tuyacn.com/smart/icon/1538039048p03rjhzm8as_0.png","isSupportAppleHomeKit": true,"isSupportGroup": true,"mac": "","bv": "0","isCloudOnline": true,"isTripartiteMatter": false,"wifiEnableState": 2,"protocolAttribute": 0}]
}

👉 立即开发。  

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/743049.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Grad_CAM图

我们要将网络学习到的特征进行可视化。 import os import cv2 import numpy as np import torch from PIL import Image import matplotlib.pyplot as plt from torchvision import models from torchvision import transforms from utils import GradCAM, show_cam_on_image,…

ES6(三):Iterator、Generator、类的用法、类的继承

一、迭代器Iterator 迭代器是访问数据的一个接口&#xff0c;是用于遍历数据结构的一个指针&#xff0c;迭代器就是遍历器 const items[one,two,three];//创建新的迭代器const ititems[Symbol.iterator]();console.log(it.next()); done&#xff1a;返回false表示遍历继续&a…

Python 查找PDF中的指定文本并高亮显示

在处理大量PDF文档时&#xff0c;有时我们需要快速找到特定的文本信息。本文将提供以下三个Python示例来帮助你在PDF文件中快速查找并高亮指定的文本。 查找并高亮PDF中所有的指定文本查找并高亮PDF某个区域内的指定文本使用正则表达式搜索指定文本并高亮 本文将用到国产第三方…

linux安全--CentOS7安装Tomcat,远程管理ManagerApp

目录 1.Tomcat安装 2.Tomcat远程管理 1.Tomcat安装 下载安装包并解压 tar xf apache-tomcat-7.0.54.tar.gz -C /usr/local/apache-tomcat_7.0.54/tomcat启停 启动 ./startup.sh 停止 ./shutdown.sh 2.Tomcat远程管理 找到tomcat文件夹中webapps/manager/META-INF/contex…

人工智能(AI)-机器学习-深度学习-大语言模型LLM(chatgtp)

【一文读懂“大语言模型” - CSDN App】 国产大语言模型是指由中国公司或机构开发的大规模预训练语言模型。目前&#xff0c;国产大语言模型主要有以下几种&#xff1a; 中文GPT&#xff08;GPT-3&#xff09;&#xff1a;由华为公司开发&#xff0c;是一个基于Transformer架…

Linux系统---Haproxy高性能负载均衡软件

目录 一、Haproxy介绍 1.Haproxy定义 2.Haproxy主要特性 3.Haproxy调度算法原理 3.1RR&#xff08;Round Robin&#xff09; 3.2LC&#xff08;Least Connections&#xff09; 3.3SH&#xff08;Source Hashing&#xff09; 二、安装Haproxy 1.yum安装 2.第三方rpm包安…

Android中compile,implementation和api的区别,以及gradle-wrapper的详解

前些天发现了一个蛮有意思的人工智能学习网站,8个字形容一下"通俗易懂&#xff0c;风趣幽默"&#xff0c;感觉非常有意思,忍不住分享一下给大家。 &#x1f449;点击跳转到教程 前言&#xff1a; compile,implementation和api的区别和其作用 compile和api会进行传递…

【深度学习目标检测】二十三、基于深度学习的行人检测计数系统-含数据集、GUI和源码(python,yolov8)

行人检测计数系统是一种重要的智能交通监控系统&#xff0c;它能够通过图像处理技术对行人进行实时检测、跟踪和计数&#xff0c;为城市交通规划、人流控制和安全管理提供重要数据支持。本系统基于先进的YOLOv8目标检测算法和PyQt5图形界面框架开发&#xff0c;具有高效、准确、…

叶子分享站PHP源码

叶子网盘分享站PHP网站源码&#xff0c;创建无限级文件夹&#xff0c;上传文件&#xff0c;可进行删除&#xff0c;下载等能很好的兼容服务器。方便管理者操作&#xff0c;查看更多的下载资源以及文章&#xff0c;新增分享功能&#xff0c;异步上传文件/资源等 PHP网盘源码优势…

蓝桥杯 递增三元组

Problem: 蓝桥杯 递增三元组 文章目录 思路解题方法复杂度前缀和Code二分Code双指针Code 思路 这是一个关于数组的问题&#xff0c;我们需要找到一个递增的三元组。这个三元组由三个数组中的元素组成&#xff0c;每个数组提供一个元素&#xff0c;并且这三个元素满足递增的关系…

Unix环境高级编程-学习-05-TCP/IP协议与套接字

目录 一、概念 二、TCP/IP参考模型 三、客户端和服务端使用TCP通信过程 1、同一以太网下 四、函数介绍 1、socket &#xff08;1&#xff09;声明 &#xff08;2&#xff09;作用 &#xff08;3&#xff09;参数 &#xff08;4&#xff09;返回值 &#xff08;5&…

三星泄露微软 Copilot 新功能:用自然语言操控各种功能

3 月 11 日消息&#xff0c;微软计划本月晚些时候发布新款 Surface 电脑和适用于 Windows 11 的 Copilot 新功能&#xff0c;但三星似乎等不及了&#xff0c;在其即将推出的 Galaxy Book4 系列产品宣传材料中泄露了一些即将到来的 Copilot 功能。 三星官网上发布的图片证实了此…

在centOS服务器安装docker,并使用docker配置nacos

遇到安装慢的情况可以优先选择阿里镜像 安装docker 更新yum版本 yum update安装所需软件包 yum install -y yum-utils device-mapper-persistent-data lvm2添加Docker仓库 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.rep…

SQLite—免费开源数据库系列文章目录

SQLite系列相关文章较多特开本文为了便于读者阅读特写了本索引和目录之用本文将不断更新中有需要的读者可以收藏本文便于导航到各个专题( 持续更新中......)。收藏一篇等于收藏一个系列文章 简介类&#xff1a; SQLite——世界上部署最广泛的免费开源数据库&#xff08;简介&…

【海贼王的数据航海】探究二叉树的奥秘

目录 1 -> 树的概念及结构 1.1 -> 树的概念 1.2 -> 树的相关概念 1.3 -> 树的表示 1.4 -> 树在实际中的运用(表示文件系统的目录树结构) 2 -> 二叉树概念及结构 2.1 -> 二叉树的概念 2.2 -> 现实中的二叉树 2.3 -> 特殊的二叉树 2.4 ->…

Post请求出现Request header is too large

问题描述&#xff1a; 在做项目的时候&#xff0c;前端请求体太大的时候&#xff0c;出现Request header is too large问题&#xff0c;后端接口如下&#xff1a; 前端请求接口返回问题如下&#xff1a; 解决方案&#xff1a; 问题原因&#xff1a;这是因为我们在做Springboo…

旅游管理系统|基于SpringBoot+ Mysql+Java+Tomcat技术的旅游管理系统设计与实现(可运行源码+数据库+设计文档+部署说明+视频演示)

推荐阅读100套最新项目 最新ssmjava项目文档视频演示可运行源码分享 最新jspjava项目文档视频演示可运行源码分享 最新Spring Boot项目文档视频演示可运行源码分享 目录 前台功能效果图 用户功能 管理员功能登录前台功能效果图 系统功能设计 数据库E-R图设计 lunwen参考 …

反爬虫技术:如何保护你的网站数据安全

在数字化时代&#xff0c;数据的价值日益凸显&#xff0c;而爬虫技术则成为了获取这些数据的重要手段之一。然而&#xff0c;对于网站运营者来说&#xff0c;非法爬虫不仅会导致数据泄露&#xff0c;还可能给网站带来巨大的流量压力和安全隐患。因此&#xff0c;本文将探讨如何…

您的 GStreamer 安装缺少插件

最近在学习QMLQT。 在弄一个多媒体播放的软件时&#xff0c;提示我系统缺少某些组件。我的系统是20.04.1-Ubuntu。 然后我看了很多帖子&#xff0c;大概思路就是&#xff0c;要装gstreamer 相关的组件。如果是比价低的ubunutu系统 就得装 gstreamer 0.10 的插件。如果是比价…

QT6.6 android下fftw-3.3.10库编译及调用so库方法

一.实现目标 fftw-3.3.10库在QT6.6的android环境下编译为so文件,然后在android项目中进行调用测试。 说明:编译的前提是要先部署好QT的android开发环境,具体可以参照本专栏文章《QT6.6 android开发环境搭建》,文章链接: https://blog.csdn.net/xieliru/article/detail…