安圣二开设备说明


4G专属命令

<p>[TOC]</p> <table> <thead> <tr> <th>4G喇叭</th> <th>4G开关</th> <th>WiFi喇叭</th> <th>WiFi开关</th> </tr> </thead> <tbody> <tr> <td>&lt;font color=&quot;green&quot;&gt;<strong>&amp;radic;</strong>&lt;/font&gt;</td> <td>&lt;font color=&quot;green&quot;&gt;<strong>&amp;radic;</strong>&lt;/font&gt;</td> <td>&lt;font color=&quot;red&quot;&gt;<strong>&amp;times;</strong>&lt;/font&gt;</td> <td>&lt;font color=&quot;red&quot;&gt;<strong>&amp;times;</strong>&lt;/font&gt;</td> </tr> </tbody> </table> <p>支持此功能的设备类型:&lt;font color=&quot;green&quot;&gt;<strong>&amp;radic;</strong>&lt;/font&gt;-支持 &lt;font color=&quot;red&quot;&gt;<strong>&amp;times;</strong>&lt;/font&gt;-不支持</p> <h2>设置时间(setTime)</h2> <p><strong>简要描述</strong> 设置设备时间。</p> <p><strong>命令参数</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必须</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>method</td> <td>是</td> <td>string</td> <td>setTime</td> </tr> <tr> <td>timestamp</td> <td>是</td> <td>int</td> <td>秒级时间戳</td> </tr> <tr> <td>frameId</td> <td>否</td> <td>string</td> <td>帧ID</td> </tr> </tbody> </table> <p><strong>命令示例</strong></p> <pre><code>{ &amp;quot;method&amp;quot;: &amp;quot;setTime&amp;quot;, &amp;quot;timestamp&amp;quot;: 1745456483, &amp;quot;frameId&amp;quot;: &amp;quot;1745456483900&amp;quot; }</code></pre> <p><strong>应答参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>method</td> <td>string</td> <td>setTime</td> </tr> <tr> <td>result</td> <td>string</td> <td>返回结果。ok-成功;其他-具体失败原因</td> </tr> <tr> <td>imei</td> <td>string</td> <td>设备imei</td> </tr> <tr> <td>frameId</td> <td>string</td> <td>同命令frameId</td> </tr> <tr> <td>timestamp</td> <td>int</td> <td>秒级时间戳</td> </tr> </tbody> </table> <p><strong>应答示例</strong></p> <pre><code>{ &amp;quot;method&amp;quot;: &amp;quot;getSimCheck&amp;quot;, &amp;quot;result&amp;quot;: &amp;quot;ok&amp;quot;, &amp;quot;timestamp&amp;quot;: 1745456483, &amp;quot;imei&amp;quot;: &amp;quot;864536072949900&amp;quot;, &amp;quot;frameId&amp;quot;: &amp;quot;1745456483900&amp;quot; }</code></pre> <p><strong>备注</strong> 无</p> <h2>设置开机物联卡预警信息(setSimCheck)</h2> <p><strong>简要描述</strong> 设置开机物联卡预警信息。</p> <p><strong>命令参数</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必须</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>method</td> <td>是</td> <td>string</td> <td>setSimCheck</td> </tr> <tr> <td>enabled</td> <td>是</td> <td>bool</td> <td>true-启动,false-不启动</td> </tr> <tr> <td>leftDays</td> <td>是</td> <td>int</td> <td>0-播报剩余天数;大于0则在剩余天数内播报</td> </tr> <tr> <td>dataBalance</td> <td>是</td> <td>int</td> <td>0-播报剩余流量;大于0则在剩余流量内播报(单位MB)</td> </tr> <tr> <td>frameId</td> <td>否</td> <td>string</td> <td>帧ID</td> </tr> </tbody> </table> <p><strong>命令示例</strong></p> <pre><code>{ &amp;quot;method&amp;quot;: &amp;quot;setSimCheck&amp;quot;, &amp;quot;enabled&amp;quot;: true, &amp;quot;leftDays&amp;quot;: 0, &amp;quot;dataBalance&amp;quot;: 0, &amp;quot;frameId&amp;quot;: &amp;quot;1745456483900&amp;quot; }</code></pre> <p><strong>应答参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>method</td> <td>string</td> <td>setSimCheck</td> </tr> <tr> <td>result</td> <td>string</td> <td>返回结果。ok-成功;其他-具体失败原因</td> </tr> <tr> <td>enabled</td> <td>bool</td> <td>true-启动,false-不启动</td> </tr> <tr> <td>imei</td> <td>string</td> <td>设备imei</td> </tr> <tr> <td>leftDays</td> <td>int</td> <td>0-播报剩余天数;大于0则在剩余天数内播报</td> </tr> <tr> <td>dataBalance</td> <td>int</td> <td>0-播报剩余流量;大于0则在剩余流量内播报(单位MB)</td> </tr> <tr> <td>frameId</td> <td>string</td> <td>同命令frameId</td> </tr> <tr> <td>timestamp</td> <td>int</td> <td>秒级时间戳</td> </tr> </tbody> </table> <p><strong>应答示例</strong></p> <pre><code>{ &amp;quot;method&amp;quot;: &amp;quot;setSimCheck&amp;quot;, &amp;quot;result&amp;quot;: &amp;quot;ok&amp;quot;, &amp;quot;enabled&amp;quot;: true, &amp;quot;leftDays&amp;quot;: 0, &amp;quot;dataBalance&amp;quot;: 0, &amp;quot;timestamp&amp;quot;: 1745456483, &amp;quot;imei&amp;quot;: &amp;quot;864536072949900&amp;quot;, &amp;quot;frameId&amp;quot;: &amp;quot;1745456483900&amp;quot; }</code></pre> <p><strong>备注</strong> 无</p> <h2>物联卡预警(simCheck)</h2> <p><strong>简要描述</strong> 根据设置的参数进行物联卡预警。</p> <p><strong>命令参数</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必须</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>method</td> <td>是</td> <td>string</td> <td>simCheck</td> </tr> <tr> <td>frameId</td> <td>否</td> <td>string</td> <td>帧ID</td> </tr> </tbody> </table> <p><strong>命令示例</strong></p> <pre><code>{ &amp;quot;method&amp;quot;: &amp;quot;simCheck&amp;quot;, &amp;quot;frameId&amp;quot;: &amp;quot;1745456483900&amp;quot; }</code></pre> <p><strong>应答参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>method</td> <td>string</td> <td>simCheck</td> </tr> <tr> <td>result</td> <td>string</td> <td>返回结果。ok-成功;其他-具体失败原因</td> </tr> <tr> <td>imei</td> <td>string</td> <td>设备imei</td> </tr> <tr> <td>frameId</td> <td>string</td> <td>同命令frameId</td> </tr> <tr> <td>timestamp</td> <td>int</td> <td>秒级时间戳</td> </tr> </tbody> </table> <p><strong>应答示例</strong></p> <pre><code>{ &amp;quot;method&amp;quot;: &amp;quot;simCheck&amp;quot;, &amp;quot;result&amp;quot;: &amp;quot;ok&amp;quot;, &amp;quot;imei&amp;quot;: &amp;quot;864536072949900&amp;quot;, &amp;quot;timestamp&amp;quot;: 1745456483, &amp;quot;frameId&amp;quot;: &amp;quot;1745456483900&amp;quot; }</code></pre> <p><strong>备注</strong> 无</p>

页面列表

ITEM_HTML