服务热线:130-0715-9689 控制台 v1.0 手机版
GemeOpen 智能云广播控制主机 (型号:GSSM2P) - 开发者指令
# 智能云广播控制主机 (型号:GSSM2P) - 开发者指令
## 产品基本描述
本款智能云广播控制主机采用钣金金属外壳,坚固耐用。
设备支持远程音频播报、远程音频插播以及 TTS 文字转语音合成;配备丰富接口,可搭配无源音箱实现左右双声道输出60W总功率。
供电方式灵活,支持电源适配器供电、接线端子直流供电两种方案可选,自带1GB内存卡,可本地存储大约500首音频;自带天线接口,可安装于电箱内部,实现园区、校园等场景的语音广播、音频插播等需求。
## 产品主要特点
WiFi+以太网/4G+以太网连接,左右双声道60W功放,DC12-24V供电
支持MQTT/TCP/HTTP协议,自带原生MCP Server 接受Agent控制
支持本地云端音频播放,TTS文字转语音,48种拟人音色
## 产品图
<https://smart-bird-oss.smart-bird.cn/images/2026/09/18/150711766907528.png>
<https://smart-bird-oss.smart-bird.cn/images/2026/09/18/1507165607474523.png>
<https://smart-bird-oss.smart-bird.cn/images/2026/09/18/1507229230838550.png>
<https://smart-bird-oss.smart-bird.cn/images/2026/09/18/1507263085126101.png>
<https://smart-bird-oss.smart-bird.cn/images/2026/09/18/1507293225477035.png>
## 官网产品资料
### 品牌信息说明
品牌LOGO <https://smart-bird-oss.smart-bird.cn/images/2026/02/18/1722133698642421.png>
智鸟科技GemeOpen专注为软件开发者提供商用智能设备,软件工程师通过简单的测试即可完成项目设备选型,使用标准的MQTT/TCP协议,发送JSON指令控制设备通断电、查询设备用电信息。能够极大节省项目实施时间与自研设备风险,与厂商云解耦,搭建私有化MQTT服务,完全掌控设备且无任何捆绑与隐性成本!
### 如何购买产品
全网搜索 智鸟科技、GemeOpen 可查询官网信息,或者 京东搜索 **GEMEOPEN官方旗舰店** 、淘宝搜索 **GemeOpen** 、 **智鸟科技**
### 产品详细信息
<null>
### 淘宝购买网址
<https://item.taobao.com/item.htm?id=1089165538014>
### 京东购买网址
<https://item.jd.com/10237126988274.html>
### 开发者文档
<https://www.smart-bird.cn/doc/product/GSSM/device/GSSM2P/command>
## 客户常见问题
### 设备可以连接到自己的阿里云服务器吗,数据不需要通过您那边中转吧?
是的,配置MQTT参数,即可连接到指定的服务器,数据完全不经过厂商
### 二次开发对接要额外收费吗?
不收费。接入自己的平台没有额外费用。
### 自定义 MQTT 配置好了为什么不生效?
自定义 MQTT 必须重启设备后才生效(拔插电源,或在配置首页点「重新启动」)。只在配置页点保存不会生效。
### 设备是否支持连接TSL加密服务器?是否支持mqtts?
该功能正在研发中,即将更新。可在自定义 MQTT 中配置 mqtts / TLS 加密连接,端口与证书参数按开发文档设置,配置后重启设备生效。
### 为什么控制台上一直显示设备离线/未激活?
请先确认: 1、设备是否已经配置了单频的2.4G WiFi,或者4G物联网卡是否正常; 2、是否进行过自定义MQTT操作,自定义MQTT的设备会和控制台MQTT断开连接,此时控制台显示设备离线或未激活是正常的
### 支持二次开发写入我们自己内部的运维平台吗?
支持。设备开放 MQTT / TCP协议与指令文档,可直接连接用户自有服务器平台,接入不收取额外费用。
### 能接入哪些系统或平台?支持接入米家/华为生态/涂鸦吗?
1、【支持】自建服务器 / 自建平台:你自己的 MQTT Broker(Mosquitto、EMQX、HiveMQ 等)+ 自研业务系统; 2、【支持】第三方物联网云平台:阿里云 IoT、华为云 IoT、腾讯云 IoT等; 3、【支持】开源 / 第三方平台:ThingsBoard、Home Assistant、 4、【不支持】暂不支持接入米家、华为 HiLink、涂鸦等第三方公有生态; 总结:设备面向开发者免费开放MQTT/TCP协议,适合接入自建平台做深度集成。
### 可不可以连接我们的内网服务器?
可以。 1、WiFi设备:连接您的内网WiFi后,自定义 MQTT 直连您的内网服务器; 2、4G设备:可安装使用您自己专网卡,自定义MQTT后直连您的内网服务器。 配置完成后重启设备生效,数据不经过厂商。
### 能不能按我提供的MQTT信息批量写入到设备里?
支持。可联系工作人员获取批量配置表格。在表单内填写您的服务器参数信息后,由技术人员上传表格至智鸟ERP系统生效。 后续我们还将提供客户运维管理系统(vip.smart-bird.cn),企业客户可通过该平台自己批量维护。
### 是否需要连接网关?
不需要。设备WiFi/4G正常通信后,通过协议直连您的服务器平台,无需网关。
### 支持API调用吗?
可通过HTTP调用GemeOpen控制台接口。控制台仅供用户测试使用,不能保证稳定性,常会因为其他用户极限测试,影响平台设备正常使用。 如果您是做商用项目,建议通过MQTT/TCP接入您自己搭建的服务器平台,更稳定,更便于后续二次开发。
### 我们是做商用项目的,GemeOpen可不可以提供中性产品?
开关、插座类强制认证过的产品,不支持提供中性产品。所有信息均在认证机构做过照片备案,无法修改。 其他非强制认证类产品,外壳支持自定义打标,可修改为用户自有品牌型号信息。
### 自定义mqtt后,客户端发布消息,为什么收不到订阅回复?
常见原因: ①订阅/发布的主题与开发文档定义不一致,可尝试将订阅主题发布主题交换位置填写; ②修改自定义 MQTT 后未重启设备; ③服务器参数填写错误,服务器端 ACL 未放行。
## 产品电气参数
---
| 参数名 | 参数值 |
|------|------|
| 品牌 | GemeOpen |
| 上市日期 | 2026年10月 |
| 产品类型 | 以太网/WiFi云广播 |
| 产品型号 | GSSM2P |
| 外观尺寸 | 97mm*71mm*28mm |
| 输入电压 | 直流12-24V |
| 工作电流 | 2A |
| 通讯方式 | 2.4GHz WiFi/以太网 |
| 通讯模块 | 乐鑫ESP32-S3 |
| 供电接口 | DC 电源线/接线端子 |
| 阻抗功率 | 4Ω/60W |
| 振动膜规格 | 需要搭配功放音箱设备使用 |
| 扬声器喇叭 | 外接无源音箱*2(L+R) |
| 扬声器功率 | 双声道60W |
| 外壳材质 | 钣金外壳 |
| 控制协议 | MQTT、TCP、HTTP、MCP、蓝牙 |
---
## 广播控制
### 音量加
*player-add-vol*

增加设备音量。设备收到指令后音量上调(10),最高到最大音量,超出上限时保持最大值不变。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "add-volume",
"messageId" : "202201241610366046",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | add-volume |
| channel | String | 通道 | left |
| freq | int | 频率,单位(Khz) | 31 |
| gain | int | 增益,单位dB,范围-13到13。 | -13 |
| messageId | String | 消息ID字段 | 202201241610366046 |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-add-volume",
"mac" : "206ef1883b7c",
"message" : "OK",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true,
"volume" : 85
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| channel | String | 左右 | left |
| commandName | String | 指令名称 | player-add-volume |
| freq | int | 频率,单位(Khz) | 31 |
| gain | int | 增益,单位dB,范围-13到13。 | -13 |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 206ef1883b7c |
| message | String | 执行返回结果 | OK |
| messageId | String | 消息ID字段 | 202201241610366046 |
| name | String | 歌曲名字 | 001.mp3 |
| size | int | 歌曲大小(单位字节) | 12099546 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
| volume | int | 音量大小(0-100) | 85 |
---
### 删除SD卡音频文件
*player-delete*

从SD卡中删除指定歌曲,通过 name 参数指定歌曲名(不含扩展名),设备在播放列表中查找并删除该歌曲及其文件。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "delete",
"name" : "我爱中国",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | delete |
| name | String | 音频名 | 我爱中国 |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-delete",
"mac" : "206ef1883b7c",
"message" : "OK",
"messageId" : "202201241610366046",
"name" : "我爱中国",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-delete |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 206ef1883b7c |
| message | String | 执行返回结果 | OK |
| messageId | String | 消息ID字段 | 202201241610366046 |
| name | String | 歌曲名字 | 我爱中国 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 下载音频文件到SD卡
*player-download*

从指定URL下载音频并保存到SD卡,通过 name 参数指定保存的歌曲名、url 参数指定音频地址(仅支持 http,不支持 https)。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "download",
"name" : "饿狼传说",
"type" : "player",
"url" : "http://smart-bird-oss.smart-bird.cn/music/2025/%E9%A5%BF%E7%8B%BC%E4%BC%A0%E8%AF%B4.mp3"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | download |
| name | String | 保存到在sd,歌曲名字 | 饿狼传说 |
| type | String | 指令类型 | player |
| url | String | 下载的http地址 | http://smart-bird-oss.smart-bird.cn/music/2025/%E9%A5%BF%E7%8B%BC%E4%BC%A0%E8%AF%B4.mp3 |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-download",
"mac" : "2026bb16aa14",
"progress" : 0,
"source" : "command",
"status" : 0
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-download |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 2026bb16aa14 |
| progress | int | 进度值(0-100%) | 0 |
| source | String | 指令回复“command" | command |
| status | int | 状态 0:开始 ,1:进行中 ,2:结束 | 0 |
---
### 获取播放器参数
*player-getParams*

查询设备当前播放器参数。设备收到指令后返回当前音量、播放模式等信息,用于查看设备播放状态。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "getParams",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | getParams |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-getParams",
"eqGains" : [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, -13, -10, -5, 0, 3, 5, 3, 0, -5, -10],
"mac" : "2026bb16aa14",
"playMode" : "ListLoopPlay",
"sdCardFreeSpace" : 256,
"sdCardTotalSpace" : 512,
"sdCardUsage" : 26,
"source" : "command",
"volume" : 70
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-getParams |
| eqGains | List | eqGains: int[20] EQ均衡器增益值 前10个为左声道,后10个为右声道,一一对应以下10个频段: 频段(Hz): 31 62 125 250 500 1K 2K 4K 8K 16K 每个频段增益范围: -13 ~ +13 -13 = 最大削减 0 = 不调整(原始) +13 = 最大增益 示例(左右声道相同): [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, ← 左声道 -13, -10, -5, 0, 3, 5, 3, 0, -5, -10] ← 右声道 | [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, -13, -10, -5, 0, 3, 5, 3, 0, -5, -10] |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 2026bb16aa14 |
| playMode | String | 播放模式:(OnePlay:播完一首就停),(OneLoopPlay:单曲循环),(RandomPlay:随机播放),(ListLoopPlay:列表循环) | ListLoopPlay |
| sdCardFreeSpace | int | 内存卡剩余空间,单位:MB | 256 |
| sdCardTotalSpace | int | 内存卡总大小,单位:MB | 512 |
| sdCardUsage | int | 内存卡使用率,单位:% | 26 |
| source | String | 指令回复“command" | command |
| volume | int | 音量大小(0-100) | 70 |
---
### 查询SD卡音频文件
*player-getSongList*

获取SD卡内的歌曲列表,设备返回播放列表中的所有歌曲名称。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "getSongList",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | getSongList |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-getSongList",
"fileCount" : 1,
"mac" : "2026bb16aa14",
"songs" :
{
"name" : "我爱中国",
"size" : 8504797
},
"source" : "command"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-getSongList |
| fileCount | int | 歌曲数量 | 1 |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 2026bb16aa14 |
| name | String | 歌曲名字 | 我爱中国 |
| size | int | 歌曲大小(单位字节) | 8504797 |
| songs | Object | 所有歌曲信息 | |
| source | String | 指令回复“command" | command |
---
### 播放网络音频
*player-http-play*

播放指定URL的网络音频,通过 url 参数传入音频地址(仅支持 http,不支持 https)。priority 为 high 时走高优先级通道优先播放,否则按普通优先级播放。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "http-play",
"messageId" : 20260520,
"priority" : high,
"type" : "player",
"url" : "http://smart-bird-oss.smart-bird.cn/music/2025/%E9%9F%B3%E7%AE%B1%E7%AE%80%E4%BB%8B.mp3"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定字段 | http-play |
| messageId | null | 业务流水号。由请求方生成的唯一标识,响应方原样回显,用于请求与响应的关联匹配。 | 20260520 |
| priority | null | 若有这个字段,表示插播, | high |
| type | String | 指令类型 | player |
| url | String | url地址 | http://smart-bird-oss.smart-bird.cn/music/2025/%E9%9F%B3%E7%AE%B1%E7%AE%80%E4%BB%8B.mp3 |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-http-play",
"mac" : "2026bb16aa14",
"message" : "ok",
"source" : "command",
"success" : true,
"url" : "http://smart-bird-oss.smart-bird.cn/music/2025/%E9%9F%B3%E7%AE%B1%E7%AE%80%E4%BB%8B.mp3"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-http-play |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 2026bb16aa14 |
| message | String | 执行返回结果 | ok |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
| url | String | url地址 | http://smart-bird-oss.smart-bird.cn/music/2025/%E9%9F%B3%E7%AE%B1%E7%AE%80%E4%BB%8B.mp3 |
---
### 播放下一曲
*player-next*

播放SD卡播放列表中的下一首歌曲。设备收到指令后切换到当前歌曲的下一曲并播放,若当前为最后一首则循环到第一首。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "next",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | next |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-next",
"mac" : "4CEBD60BFD62",
"message" : "OK",
"messageId" : "202201241610366046",
"name" : "我爱中国",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-next |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行返回结果 | OK |
| messageId | String | 消息ID字段 | 202201241610366046 |
| name | String | 歌曲名字 | 我爱中国 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 设置播放器参数
*player-params-set*

设置设备音量(volume,0-100)、播放模式(playMode:OnePlay播放一次/OneLoopPlay单曲循环/ListLoopPlay列表循环/RandomPlay随机播放)和EQ音效(eqGains,20个数值,左右声道各10段,范围-13~13),未传字段保持不变。<br/><br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "setParams",
"eqGains" : [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, -13, -10, -5, 0, 3, 5, 3, 0, -5, -10],
"playMode" : "ListLoopPlay",
"type" : "player",
"volume" : 85
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | setParams |
| eqGains | List | eqGains: int[20] EQ均衡器增益值 前10个为左声道,后10个为右声道,一一对应以下10个频段: 频段(Hz): 31 62 125 250 500 1K 2K 4K 8K 16K 每个频段增益范围: -13 ~ +13 -13 = 最大削减 0 = 不调整(原始) +13 = 最大增益 示例(左右声道相同): [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, ← 左声道 -13, -10, -5, 0, 3, 5, 3, 0, -5, -10] ← 右声道 | [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, -13, -10, -5, 0, 3, 5, 3, 0, -5, -10] |
| playMode | String | 播放模式:(OnePlay:播完一首就停),(OneLoopPlay:单曲循环),(RandomPlay:随机播放),(ListLoopPlay:列表循环) | ListLoopPlay |
| type | String | 指令类型 | player |
| volume | int | 音量大小(0-100) | 85 |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-params-set",
"eqGains" : [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, -13, -10, -5, 0, 3, 5, 3, 0, -5, -10],
"mac" : "2026bb16aa14",
"message" : "ok",
"playMode" : "ListLoopPlay",
"source" : "command",
"success" : true,
"volume" : 85
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-params-set |
| eqGains | List | eqGains: int[20] EQ均衡器增益值 前10个为左声道,后10个为右声道,一一对应以下10个频段: 频段(Hz): 31 62 125 250 500 1K 2K 4K 8K 16K 每个频段增益范围: -13 ~ +13 -13 = 最大削减 0 = 不调整(原始) +13 = 最大增益 示例(左右声道相同): [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, ← 左声道 -13, -10, -5, 0, 3, 5, 3, 0, -5, -10] ← 右声道 | [-13, -10, -5, 0, 3, 5, 3, 0, -5, -10, -13, -10, -5, 0, 3, 5, 3, 0, -5, -10] |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 2026bb16aa14 |
| message | String | 执行返回结果 | ok |
| playMode | String | 播放模式:(OnePlay:播完一首就停),(OneLoopPlay:单曲循环),(RandomPlay:随机播放),(ListLoopPlay:列表循环) | ListLoopPlay |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
| volume | int | 音量大小(0-100) | 85 |
---
### 暂停播放
*player-pause*

暂停当前正在播放的音频。设备收到指令后暂停播放,可通过继续播放指令恢复。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "pause",
"messageId" : "202201241610366046",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | pause |
| messageId | String | 消息ID字段 | 202201241610366046 |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-pause",
"mac" : "4CEBD60BFD62",
"message" : "OK",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-pause |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行返回结果 | OK |
| messageId | String | 消息ID字段 | 202201241610366046 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 播放SD卡音频
*player-play*

播放SD卡内存储的歌曲。

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "play",
"messageId" : "202201241610366046",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | play |
| messageId | String | 消息ID字段 | 202201241610366046 |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-play",
"mac" : "4CEBD60BFD62",
"message" : "OK",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-play |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行返回结果 | OK |
| messageId | String | 消息ID字段 | 202201241610366046 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 播放上一曲
*player-prev*

播放SD卡播放列表中的上一首歌曲。设备收到指令后切换到当前歌曲的上一曲并播放,若当前为第一首则循环到最后一首。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "prev",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 指令名称 | prev |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-prev",
"mac" : "4CEBD60BFD62",
"message" : "OK",
"messageId" : "202201241610366046",
"name" : "晴天",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-prev |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行返回结果,播放的歌曲地址 | OK |
| messageId | String | 消息ID字段 | 202201241610366046 |
| name | String | 歌曲名字 | 晴天 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 播放指定SD卡歌曲
*player-sd-play*

高优先级播放SD卡中指定的歌曲,通过 name 参数指定歌曲名(不含扩展名)。priority 为 high 时走高优先级通道优先播放,可打断当前正在播放的音频。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "sd-play",
"name" : "明天-会更好",
"priority" : "high",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定字段 | sd-play |
| name | String | 歌曲名字,无需后缀 | 明天-会更好 |
| priority | String | 若有这个字段,表示插播, | high |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-sd-play",
"mac" : "2026bb16aa14",
"message" : "ok",
"name" : "半岛铁盒",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-sd-play |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 2026bb16aa14 |
| message | String | 执行返回结果 | ok |
| name | String | 歌曲名字 | 半岛铁盒 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 停止播放
*player-stop*

停止当前正在播放的音频。设备收到指令后停止播放并释放播放资源,与暂停不同,停止后需重新下发播放指令。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "stop",
"messageId" : "202201241610366046",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | stop |
| messageId | String | 消息ID字段 | 202201241610366046 |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-stop",
"mac" : "4CEBD60BFD62",
"message" : "OK",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-stop |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行返回结果 | OK |
| messageId | String | 消息ID字段 | 202201241610366046 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 音量减
*player-sub-vol*

减小设备音量。设备收到指令后音量下调10,最低到音量 0(静音),到达下限时保持不变。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "sub-volume",
"messageId" : "202201241610366046",
"type" : "player"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 固定动作 | sub-volume |
| messageId | String | 消息ID字段 | 202201241610366046 |
| type | String | 指令类型 | player |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-sub-volume",
"mac" : "4CEBD60BFD62",
"message" : "ok",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true,
"volume" : 80
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| 001.MP3 | String | 歌曲名字 | |
| channel | String | 左右通道 | left |
| commandName | String | 指令名称 | player-sub-volume |
| freq | int | 频率,单位(Khz) | 31 |
| gain | int | 增益,单位dB,范围-13到13。 | -13 |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行返回结果 | ok |
| messageId | String | 消息ID字段 | 202201241610366046 |
| name | String | 歌曲名字 | 003.mp3 |
| size | int | 歌曲大小(单位字节) | 12041911 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
| volume | int | 音量大小(0-100) | 80 |
---
## TTS云端合成
### TTS语音合成
*controller-play*

将指定文本合成为语音并播放,text 为要播报的文本(最大150个中文字),voice 为音色名称,两者均必填。voice 支持:Cherry、Serena、Ethan、Chelsie、Momo、Vivian、Moon、Maia、Kai、Nofish、Bella、Jennifer、Ryan、Katerina、Aiden、Eldric_Sage、Mia、Mochi、Bellona、Vincent、Bunny、Neil、Elias、Arthur、Nini、Ebona、Seren、Pip、Stella、Bodega、Sonrisa、Alek、Dolce、Sohee、Ono_Anna、Lenn、Emilien、Andre、Radio_Gol、Jada、Dylan、Li、Marcus、Roy、Peter、Sunny、Eric、Rocky、Kiki。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"action" : "tts-play",
"text" : "您好,我是 Rocky,各个国家都有各个国家的国歌,啲啲国家都有啲啲国家嘅国歌",
"type" : "player",
"voice" : "Rocky"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| action | String | 学习红外码指令默认填"learn" | tts-play |
| text | String | 文字转语音文本 | 您好,我是 Rocky,各个国家都有各个国家的国歌,啲啲国家都有啲啲国家嘅国歌 |
| type | String | 固定值"player" | player |
| voice | String | 通义大模型,千问TTS 音色选择 | Rocky |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "player-tts-play",
"mac" : "9070691a66f4",
"message" : "OK",
"source" : "command",
"success" : true,
"text" : "您好,我是 Rocky,各个国家都有各个国家的国歌,啲啲国家都有啲啲国家嘅国歌"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | player-tts-play |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 9070691a66f4 |
| message | String | 执行结果描述:对命令执行结果的文本说明。执行完成且无异常:ok ;如果出现异常,返回异常结果描述。 | OK |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果,执行成功:true;执行失败:false | true |
| text | String | 文字转语音文本 | 您好,我是 Rocky,各个国家都有各个国家的国歌,啲啲国家都有啲啲国家嘅国歌 |
---
## 设备维护
### 重置/恢复出厂设置
*controller-reset*

恢复出厂设置后配网信息和自定义信息都会清空,请谨慎操作!

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"messageId" : "202201241610366046",
"system" : "reset",
"type" : "setting"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| messageId | String | 消息ID字段 | 202201241610366046 |
| system | String | 复位 | reset |
| type | String | 设置 | setting |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "controller-reset",
"mac" : "206ef1883b7c",
"message" : "ok",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | controller-reset |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 206ef1883b7c |
| message | String | 执行返回结果 | ok |
| messageId | String | 消息ID字段 | 202201241610366046 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 设备软重启
*controller-restart*

软重启后,通过指令设置的参数将生效,同时设备将重新连接Wifi/4G网络,注意设备IP地址可能发生变化

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"messageId" : "202201241610366046",
"system" : "restart",
"type" : "setting"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| messageId | String | 消息ID字段 | 202201241610366046 |
| system | String | 重启 | restart |
| type | String | 设备设置固定传"setting" | setting |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "controller-restart",
"mac" : "206ef1883b7c",
"message" : "ok",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | controller-restart |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 206ef1883b7c |
| message | String | 执行返回结果 | ok |
| messageId | String | 消息ID字段 | 202201241610366046 |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果 | true |
---
### 获取设备信息
*info-all*

获取设备信息一般会包含:设备通断电状态、MAC/IMEI、固件版本、设备内网IP地址、设备WIFI网络名称等信息,不同的产品返回的信息有所差异

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"messageId" : "7518068202",
"type" : "info"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| messageId | String | 业务流水号。由请求方生成的唯一标识,响应方原样回显,用于请求与响应的关联匹配。 | 7518068202 |
| type | String | 固定值"xxx" | info |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"code" : "GSSM2P",
"commandName" : "info-all",
"ip" : "192.168.1.113",
"keyLock" : 0,
"mac" : "44b176dc6620",
"messageId" : "7518068202",
"source" : "command",
"version" : "1.0.2",
"wifiLock" : 0
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| code | String | 设备型号代码 | GSSM2P |
| commandName | String | 指令名称 | info-all |
| ip | String | 设备连接WIFI后获取的IP | 192.168.1.113 |
| keyLock | int | 按键锁,0:关闭,1:开启 | 0 |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 44b176dc6620 |
| messageId | String | 业务流水号。由请求方生成的唯一标识,响应方原样回显,用于请求与响应的关联匹配。 | 7518068202 |
| source | String | 指令回复“command" | command |
| version | String | 当前固件版本号 | 1.0.2 |
| wifiLock | int | 配网锁,0:关闭,1:开启 | 0 |
---
### 查询网络连接信息
*info-connect*

查询设备以太网、wifi、4G联网信息

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"type" : "connect"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| type | String | 固定值"connect" | connect |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"bssid" : "a0c5f2b73086",
"commandName" : "info-connect",
"connMethod" : "wifi",
"dhcpEnable" : 1,
"gateway" : "10.168.1.1",
"local_ip" : "10.168.1.126",
"mac" : "9070691a688c",
"signal" : -75,
"source" : "command",
"ssid" : "gemeopen",
"subnet" : "255.255.255.0"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| bssid | String | 路由器 MAC 地址 | a0c5f2b73086 |
| commandName | String | 指令名称 | info-connect |
| connMethod | String | 网络连接方式wifi或者ethernet | wifi |
| dhcpEnable | int | 自动寻址1:开启, 0:关闭,默认开启 | 1 |
| gateway | String | 默认网关 | 10.168.1.1 |
| local_ip | String | IP地址 | 10.168.1.126 |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 9070691a688c |
| signal | int | 信号强度,显示规则为: signal<= 0 && signal>= -50 //信号最好 signal< -50 && signal>= -70 //信号较好 signal< -70 && signal>= -80 //信号一般 signal<-80 && signal>= -100 //信号较差 signal没有在0~(-100)之间,表示无信号 | -75 |
| source | String | 指令回复“command" | command |
| ssid | String | 设备当前连接的WIFI名称 | gemeopen |
| subnet | String | 子网掩码 | 255.255.255.0 |
---
### 获取设备通讯信息
*info-protocol*

获取设备通讯信息

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"messageId" : "202201241610366046",
"type" : "protocol"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| messageId | String | 消息ID字段 | 202201241610366046 |
| type | String | 通讯信息 | protocol |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"clientId" : "206ef1883b7c",
"commandName" : "info-protocol",
"mac" : "206ef1883b7c",
"messageId" : "202201241610366046",
"port" : "1883",
"protocol" : "mqtt",
"publish" : "/xneyoF/fHgbhpVjKJPH/206ef1883b7c/subscribe",
"server" : "mqtt.smart-bird.cn",
"source" : "command",
"subscribe" : "/topic/qos1 ",
"username" : "fHgbhpVjKJPH"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| clientId | String | 自定义MQTT客户端ID注意:不可重复 | 206ef1883b7c |
| commandName | String | 指令名称 | info-protocol |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 206ef1883b7c |
| messageId | String | 消息ID字段 | 202201241610366046 |
| port | String | 端口号 | 1883 |
| protocol | String | 协议类型,MQTT协议固定传"mqtt" | mqtt |
| publish | String | 自定义MQTT发布主题 注意:不可重复 | /xneyoF/fHgbhpVjKJPH/206ef1883b7c/subscribe |
| server | String | 自定义MQTT服务器地址 | mqtt.smart-bird.cn |
| source | String | 指令回复“command" | command |
| subscribe | String | 自定义设备MQTT订阅主题 注意:不可与发布主题重复 | /topic/qos1 |
| username | String | 自定义MQTT服务器用户名 | fHgbhpVjKJPH |
---
### 以太网静态IP配置
*setting-ethernet-dhcpEnable*

以太网连接情况下,通过当前指令,可以给设备配置固定IP。

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"connMethod" : "ethernet",
"dhcpEnable" : 0,
"dns" : "192.168.0.1",
"gateway" : "192.168.0.1",
"subnet" : "255.255.255.0",
"type" : "setting"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| connMethod | String | 网络连接方式wifi或者ethernet | ethernet |
| dhcpEnable | int | 自动寻址1:开启, 0:关闭,默认开启 | 0 |
| dns | String | DNS服务器地址 | 192.168.0.1 |
| gateway | String | 默认网关 | 192.168.0.1 |
| subnet | String | 子网掩码 | 255.255.255.0 |
| type | String | 固定值"xxx" | setting |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "setting-connMethod-config",
"mac" : "9070691a66f4",
"message" : "ok",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | setting-connMethod-config |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 9070691a66f4 |
| message | String | 执行结果描述:对命令执行结果的文本说明。执行完成且无异常:ok ;如果出现异常,返回异常结果描述。 | ok |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果,执行成功:true;执行失败:false | true |
---
### 自定义HTTP配置
*setting-http*

用于配置http回调地址,用来设备事件推送地址,注意不支持https

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"protocol" : "http",
"type" : "custom",
"url" : "http://192.168.0.137:8080"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| protocol | String | 协议类型 | http |
| type | String | 固定值"custom" | custom |
| url | String | url地址 | http://192.168.0.137:8080 |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "setting-http",
"mac" : "9070691a66f4",
"protocol" : "http",
"source" : "command",
"url" : "http://192.168.0.137:8080"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | setting-http |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 9070691a66f4 |
| protocol | String | 协议类型 | http |
| source | String | 指令回复“command" | command |
| url | String | url地址 | http://192.168.0.137:8080 |
---
### 设置按键控制锁
*setting-key-lock*

设置设备按键锁开关,keyLock 为 0 表示解锁(按键可用)、1 表示锁定(禁用按键),设置后立即生效。<br/><br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"keyLock" : 0,
"type" : "setting"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| keyLock | int | 按键锁,0:关闭,1:开启 | 0 |
| type | String | 固定值"setting" | setting |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"bssid" : "742ad779046",
"code" : "GSSM2P",
"commandName" : "setting-key-lock",
"ip" : "192.168.122.119",
"keyLock" : 0,
"mac" : "2026bb16aa14",
"signal" : -75,
"source" : "command",
"ssid" : "gemeopen",
"version" : "1.0.0",
"wifiLock" : 0
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| bssid | String | 路由器 MAC 地址 | 742ad779046 |
| code | String | 设备型号代码 | GSSM2P |
| commandName | String | 指令名称 | setting-key-lock |
| ip | String | 设备连接WIFI后获取的IP | 192.168.122.119 |
| keyLock | int | 按键锁,0:关闭,1:开启 | 0 |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 2026bb16aa14 |
| signal | int | 信号强度,显示规则为: signal<= 0 && signal>= -50 //信号最好 signal< -50 && signal>= -70 //信号较好 signal< -70 && signal>= -80 //信号一般 signal<-80 && signal>= -100 //信号较差 signal没有在0~(-100)之间,表示无信号 | -75 |
| source | String | 指令回复“command" | command |
| ssid | String | 设备当前连接的WIFI名称 | gemeopen |
| version | String | 当前固件版本号 | 1.0.0 |
| wifiLock | int | 配网锁,0:关闭,1:开启 | 0 |
---
### 自定义MQTT
*setting-mqtt*

设置设备连接的MQTT服务器,配置 server(服务器地址)、port(端口)、clientId(客户端ID)、username(用户名)、password(密码)、subscribe(订阅主题)、publish(发布主题),并指定 protocol 为 mqtt,保存后设备重启生效。<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"clientId" : "admin",
"password" : "123456",
"port" : "1883",
"protocol" : "mqtt",
"publish" : "/topic/qos0",
"server" : "192.168.0.66",
"subscribe" : "/topic/qos1",
"type" : "custom",
"username" : "admin"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| clientId | String | 自定义MQTT客户端ID注意:不可重复 | admin |
| password | String | 密码 | 123456 |
| port | String | 端口号 | 1883 |
| protocol | String | 协议类型 | mqtt |
| publish | String | 自定义MQTT发布主题 注意:不可重复 | /topic/qos0 |
| server | String | 自定义MQTT服务器地址 | 192.168.0.66 |
| subscribe | String | 自定义设备MQTT订阅主题 注意:不可与发布主题重复 | /topic/qos1 |
| type | String | 设备设置固定传"setting" | custom |
| username | String | 自定义MQTT服务器用户名 | admin |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"clientId" : "admin",
"commandName" : "setting-mqtt",
"mac" : "4CEBD60BFD62",
"port" : "1883",
"protocol" : "mqtt",
"publish" : "/topic/qos0",
"server" : "192.168.0.66",
"source" : "command",
"subscribe" : "/topic/qos1",
"username" : "admin
"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| clientId | String | 自定义MQTT客户端ID注意:不可重复 | admin |
| commandName | String | 指令名称 | setting-mqtt |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| port | String | 端口号 | 1883 |
| protocol | String | 协议类型 | mqtt |
| publish | String | 自定义MQTT发布主题 注意:不可重复 | /topic/qos0 |
| server | String | 自定义MQTT服务器地址 | 192.168.0.66 |
| source | String | 指令回复“command" | command |
| subscribe | String | 自定义设备MQTT订阅主题 注意:不可与发布主题重复 | /topic/qos1 |
| username | String | 自定义MQTT服务器用户名 | admin |
---
### 自定义TCP
*setting-tcp*

设备支持通过MQTT方式自定义TCP信息,注意:通过MQTT自定义TCP信息后,需要将设备断电重启或者向设备发送重启命令才可生效。

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"port" : "8080",
"protocol" : "tcp",
"server" : "192.168.0.137",
"type" : "custom"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| port | String | 端口号 | 8080 |
| protocol | String | 协议类型 | tcp |
| server | String | 自定义MQTT服务器地址 | 192.168.0.137 |
| type | String | 设备设置固定传"setting" | custom |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "setting-tcp",
"mac" : "4CEBD60BFD62",
"port" : "8080",
"protocol" : "tcp",
"server" : "192.168.0.66",
"source" : "command"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | setting-tcp |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| port | String | 端口号 | 8080 |
| protocol | String | 协议类型 | tcp |
| server | String | 自定义MQTT服务器地址 | 192.168.0.66 |
| source | String | 指令回复“command" | command |
---
### 设备WiFi信息配置
*setting-wifi-config*

设置设备连接的WiFi,通过 ssid 参数指定网络名称、password 参数指定密码,保存后设备重启生效。但当前产品,在网线连接且连通正常情况下,会优先以太网连接。

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"password" : "123456",
"ssid" : "GemeOpen",
"type" : "setting"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| password | String | 密码 | 123456 |
| ssid | String | 设备当前连接的WIFI名称 | GemeOpen |
| type | String | 固定值"xxx" | setting |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "setting-wifi-config",
"mac" : "4CEBD60BFD62",
"message" : "ok",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | setting-wifi-config |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行结果描述:对命令执行结果的文本说明。执行完成且无异常:ok ;如果出现异常,返回异常结果描述。 | ok |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果,执行成功:true;执行失败:false | true |
---
### WiFi静态IP信息配置
*setting-wifi-dhcpEnable*

设备默认为动态获取ip,通过该接口开启静态IP,需重启生效 配置的静态IP需和路由器处于同一网段下

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"dhcpEnable" : 0,
"dns" : "192.168.0.1",
"gateway" : "192.168.0.1",
"subnet" : "255.255.255.0",
"type" : "setting"
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| dhcpEnable | int | 自动寻址1:开启, 0:关闭,默认开启 | 0 |
| dns | String | DNS服务器地址 | 192.168.0.1 |
| gateway | String | 默认网关 | 192.168.0.1 |
| subnet | String | 子网掩码 | 255.255.255.0 |
| type | String | 固定值"xxx" | setting |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"commandName" : "setting-wifi-dhcpEnable",
"mac" : "4CEBD60BFD62",
"message" : "ok",
"source" : "command",
"success" : true
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| commandName | String | 指令名称 | setting-wifi-dhcpEnable |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| message | String | 执行结果描述:对命令执行结果的文本说明。执行完成且无异常:ok ;如果出现异常,返回异常结果描述。 | ok |
| source | String | 指令回复“command" | command |
| success | boolean | 执行结果,执行成功:true;执行失败:false | true |
---
### 设置WiFi配网锁
*setting-wifi-lock*

wifi配网锁定后,设备无法通过长按配网按钮进入配网操作,仅能通过MQTT/TCP协议解锁配网功能<br/>

**向设备发送指令(服务端向设备订阅topic发送消息)**
```json
{
"messageId" : "202201241610366046",
"type" : "setting",
"wifiLock" : 0
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| messageId | String | 消息ID字段 | 202201241610366046 |
| type | String | 类型 | setting |
| wifiLock | int | 配网锁,0:关闭,1:开启 | 0 |
---
**设备返回信息(设备向服务端订阅topic上报消息)**
```json
{
"bssid" : "742ad779046",
"code" : "GSSM2P",
"commandName" : "setting-wifi-lock",
"ip" : "192.168.122.119",
"keyLock" : 0,
"mac" : "4CEBD60BFD62",
"messageId" : "202201241610366046",
"signal" : -75,
"source" : "command",
"ssid" : "GemeOpen",
"version" : "1.0.9",
"wifiLock" : 0
}
```
#### 字段属性
---
| 字段名称 | 字段类型 | 字段说明 | 示例值 |
|------|------|------|------|
| bssid | String | 路由器 MAC 地址 | 742ad779046 |
| code | String | 设备型号代码 | GSSM2P |
| commandName | String | 指令名称 | setting-wifi-lock |
| ip | String | 设备连接网络后获取的IP | 192.168.122.119 |
| keyLock | int | 按键锁,0:关闭,1:开启 | 0 |
| mac | String | wifi设备MAC地址或4G设备的IMEI号,唯一标识 | 4CEBD60BFD62 |
| messageId | String | 消息ID字段 | 202201241610366046 |
| signal | int | 信号强度,显示规则为: signal<= 0 && signal>= -50 //信号最好 signal< -50 && signal>= -70 //信号较好 signal< -70 && signal>= -80 //信号一般 signal<-80 && signal>= -100 //信号较差 signal没有在0~(-100)之间,表示无信号 | -75 |
| source | String | 指令回复“command" | command |
| ssid | String | 设备当前连接的WIFI名称 | GemeOpen |
| version | String | 当前固件版本号 | 1.0.9 |
| wifiLock | int | 配网锁,0:关闭,1:开启 | 0 |
---
公司地址:湖北省武汉市高新大道光谷崇文中心B1栋1401、1409     /     体验店地址:光谷崇文中心B1栋104     /     电话:027-87001787
Copyright © 2020-2026 Smart-bird. All Rights Reserved. 武汉智鸟科技有限责任公司   版权所有     /    鄂ICP备2020020019号-1
微信扫一扫
企业微信 · 产品咨询
微信扫一扫
智鸟科技 · 微信公众号
淘宝扫一扫
智鸟科技GemeOpen官方店
京东扫一扫
GEMEOPEM官方旗舰店
爱采购扫一扫
GEMEOPEM官方旗舰店