openydt-device
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCRITICAL — 开始前 MUST 先用 Read 工具读取:其中包含认证 / profile / 签名 / 状态码 / 限速 / 安全等通用约定。未读基座规范不要执行任何命令。../openydt-shared/SKILL.md
CRITICAL — MUST use the Read tool to readbefore starting: It contains general conventions such as authentication / profile / signature / status code / rate limit / security. Do not execute any commands without reading the base specification.../openydt-shared/SKILL.md
何时用本技能
When to Use This Skill
当用户意图是「对停车场现场设备下指令或读设备状态」时使用本技能,例如:远程开闸/关闸、把闸机切到常开模式、给显示屏推文字、让设备语音播报/喊话、抓拍车辆图片、控制云端扫码机(开始扫码/停止扫码/语音/更新配置)、查询设备在线状态。
意图路由:
- 「开闸 / 关闸 / 抬杆 / 落杆 / 远程开门」→ 传统/云场用 ;纯云场按通道 ID 开关用
op-gate。cloud-open-gate - 「常开 / 恢复正常 / 改闸机模式」→ 。
change-channel-mode - 「显示屏 / LED 显示 / 语音播报 / 喊话」→ ;设置默认屏显图片轮播 →
op-show-voice。set-default-screen - 「抓拍 / 拍照」→ 。
channel-snap - 「扫码机 / 二维码支付设备」→ 扫码 、停止
cloud-scan-qr-code、语音cloud-stop-scan-code、更新配置cloud-scan-voice。cloud-scan-update-config - 「设备状态 / 是否在线」→ 。
get-cloud-equip-status
不涉及现场设备的查询(车辆在场、订单、月票、券)请改用对应业务域技能(/openydt parking/openydt trade/openydt ticket等)。openydt coupon
Use this skill when the user intends to "issue commands to or read the status of on-site parking lot devices", such as: remote gate opening/closing, switching the gate to always-open mode, pushing text to the display screen, enabling device voice broadcasting/announcement, capturing vehicle images, controlling cloud QR code scanners (start scanning/stop scanning/voice broadcasting/update configuration), querying device online status.
Intent Routing:
- "Open gate / Close gate / Lift bar / Lower bar / Remote door opening" → Use for traditional/cloud parking lots; use
op-gatefor pure cloud parking lots to open/close by channel ID.cloud-open-gate - "Always open / Restore normal / Change gate mode" → .
change-channel-mode - "Display screen / LED display / Voice broadcasting / Announcement" → ; set default display image carousel →
op-show-voice.set-default-screen - "Snapshot / Take photo" → .
channel-snap - "QR code scanner / QR code payment device" → Scan with , stop with
cloud-scan-qr-code, voice broadcasting withcloud-stop-scan-code, update configuration withcloud-scan-voice.cloud-scan-update-config - "Device status / Whether online" → .
get-cloud-equip-status
For queries not involving on-site devices (vehicles on site, orders, monthly passes, coupons), please use corresponding business domain skills (/openydt parking/openydt trade/openydt ticket, etc.).openydt coupon
可用命令
Available Commands
| 中文名 | 命令 | 读/写 | 关键参数 |
|---|---|---|---|
| 修改一体机闸机模式 | | 写 | parkCode, channelCode, mode(0常开/1正常) |
| 手动抓拍 | | 写 | parkCode, channelCode, operator(可选) |
| 云场通道开/关闸 | | 写 | parkCode, channelId, opType(0开/1关) |
| 扫码机下发扫码 | | 写 | parkCode, scanMachineId, deviceType, timeLength, voiceType |
| 扫码机更新配置 | | 写 | scanMachineId, channelId |
| 扫码机语音播报 | | 写 | parkCode, scanMachineId, voiceType, voiceNum, voiceInterval |
| 扫码机停止扫码 | | 写 | parkCode, scanMachineId, deviceType(可选) |
| 获取云端设备状态 | | 读 | equipType(0一体机/2卡机/3扫码机), clientId |
| 开/关闸 | | 写 | parkCode, channelCode, opType(0开/1关), operator, operateTime, carNo(可选) |
| 显示屏/语音播报 | | 写 | parkCode, channelCode, show/voice(至少一个), qrCode(可选), operator, operateTime |
| 设置默认屏显内容 | | 写 | parkCode, deviceType, channelCode, templateData.imageArray |
除(读)外,以上全部为写操作,执行时必须加get-cloud-equip-status确认。--yes
| Chinese Name | Command | Read/Write | Key Parameters |
|---|---|---|---|
| Modify All-in-One Gate Mode | | Write | parkCode, channelCode, mode(0=Always Open/1=Normal) |
| Manual Snapshot | | Write | parkCode, channelCode, operator(optional) |
| Cloud Parking Lot Channel Open/Close | | Write | parkCode, channelId, opType(0=Open/1=Close) |
| Issue Scanning Command to QR Code Scanner | | Write | parkCode, scanMachineId, deviceType, timeLength, voiceType |
| Update QR Code Scanner Configuration | | Write | scanMachineId, channelId |
| QR Code Scanner Voice Broadcasting | | Write | parkCode, scanMachineId, voiceType, voiceNum, voiceInterval |
| Stop QR Code Scanner Scanning | | Write | parkCode, scanMachineId, deviceType(optional) |
| Get Cloud Device Status | | Read | equipType(0=All-in-One/2=Card Machine/3=QR Code Scanner), clientId |
| Open/Close Gate | | Write | parkCode, channelCode, opType(0=Open/1=Close), operator, operateTime, carNo(optional) |
| Display Screen/Voice Broadcasting | | Write | parkCode, channelCode, show/voice(at least one), qrCode(optional), operator, operateTime |
| Set Default Display Content | | Write | parkCode, deviceType, channelCode, templateData.imageArray |
Except for(read), all the above are write operations, and must be executed withget-cloud-equip-statusfor confirmation.--yes
业务流程
Business Process
设备控制属于直接作用于现场硬件的高危操作。标准顺序:先定位设备 → 干预前可先查状态 → 用 预览 → 确认无误再加 真正下发。务必把前序命令响应里的字段透传到后续命令入参,不要手填臆测值。
--dry-run--yes-
定位通道 / 设备:在停车场域(/
openydt parking)拿到openydt park、通道parkCode或channelCode、设备channelId/scanMachineId。这些是后续所有设备命令的入参来源。clientId -
(可选)先查设备在线状态:对云端设备先跑(
get-cloud-equip-status+equipType),响应里设备在线/状态字段确认设备可用,再决定是否下发指令。clientId即扫码机的clientId。scanMachineId -
预览写指令(高危,务必先 dry-run):对、
op-gate、cloud-open-gate、op-show-voice、change-channel-mode、set-default-screen及扫码机系列命令,先用channel-snap查看将要发送的请求体与目标,核对--dry-run/parkCode/channelCode/channelId等无误。opType -
确认下发:复核 dry-run 输出后,把同一组参数加正式执行。
--yes- 开关闸:传统场/云场用 (
op-gate+channelCode);纯云场按通道 ID 用opType(用第 1 步拿到的cloud-open-gate而非 channelCode)。channelId - 闸机常开:(
change-channel-mode常开 /mode=0正常)。mode=1 - 屏显/喊话:(
op-show-voice与show至少给一个);扫码机喊话用voice(cloud-scan-voice取自第 1/2 步)。scanMachineId - 扫码流程:开始扫码 →(需要时)
cloud-scan-qr-code提示 →cloud-scan-voice停止,三者复用同一cloud-stop-scan-code。scanMachineId
- 开关闸:传统场/云场用
-
核对结果:看返回状态码(参见基座规范)。开关闸等动作可再次或在停车场域复查在场记录确认生效。
get-cloud-equip-status
Device control is a high-risk operation that directly affects on-site hardware. Standard sequence:Locate the device first → Check the status before intervention → Preview with → Confirm and add to actually issue the command. Be sure to pass the fields from the previous command response to the subsequent command parameters; do not fill in values by guesswork.
--dry-run--yes-
Locate Channel / Device: Obtain, channel
parkCodeorchannelCode, devicechannelId/scanMachineIdin the parking lot domain (clientId/openydt parking). These are the parameter sources for all subsequent device commands.openydt park -
(Optional) Check Device Online Status First: For cloud devices, run(
get-cloud-equip-status+equipType) first, confirm the device is available through the online/status field in the response, then decide whether to issue the command.clientIdis theclientIdof the QR code scanner.scanMachineId -
Preview Write Command (High Risk, Must Use dry-run First): For commands such as,
op-gate,cloud-open-gate,op-show-voice,change-channel-mode,set-default-screenand QR code scanner series commands, usechannel-snapfirst to view the request body and target to be sent, and verify that--dry-run/parkCode/channelCode/channelIdare correct.opType -
Confirm Issuance: After reviewing the dry-run output, addto the same set of parameters to officially execute.
--yes- Gate opening/closing: Use (
op-gate+channelCode) for traditional/cloud parking lots; useopTypefor pure cloud parking lots by channel ID (usecloud-open-gateobtained in step 1 instead of channelCode).channelId - Gate always open: (
change-channel-modefor Always Open /mode=0for Normal).mode=1 - Display screen/announcement: (at least one of
op-show-voiceandshowis required); usevoicefor QR code scanner announcement (cloud-scan-voiceobtained from step 1/2).scanMachineId - Scanning process: to start scanning → (if needed)
cloud-scan-qr-codefor prompt →cloud-scan-voiceto stop, all reuse the samecloud-stop-scan-code.scanMachineId
- Gate opening/closing: Use
-
Verify Result: Check the return status code (refer to the base specification). For actions such as gate opening/closing, you can runagain or review the on-site record in the parking lot domain to confirm effectiveness.
get-cloud-equip-status
示例
Examples
bash
undefinedbash
undefined1) 开闸(写,高危):先预览
1) Open gate (write, high risk): Preview first
openydt device op-gate
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --dry-run
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --dry-run
openydt device op-gate
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --dry-run
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --dry-run
预览无误后真正执行
Execute after preview is correct
openydt device op-gate
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --yes
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --yes
openydt device op-gate
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --yes
--park-code 2KNTYVWC --channel-code 001 --op-type 0
--operator operator --operate-time "2017-09-11 14:04:04" --yes
2) 显示屏 + 语音播报(写,需 --yes;show/voice 至少一个)
2) Display screen + Voice broadcasting (write, requires --yes; at least one of show/voice)
openydt device op-show-voice
--park-code 2KNTYVWC --channel-code 001
--show show --voice voice
--operator operator --operate-time "2017-09-11 14:04:04" --yes
--park-code 2KNTYVWC --channel-code 001
--show show --voice voice
--operator operator --operate-time "2017-09-11 14:04:04" --yes
openydt device op-show-voice
--park-code 2KNTYVWC --channel-code 001
--show show --voice voice
--operator operator --operate-time "2017-09-11 14:04:04" --yes
--park-code 2KNTYVWC --channel-code 001
--show show --voice voice
--operator operator --operate-time "2017-09-11 14:04:04" --yes
3) 查询云端扫码机状态(读,无需 --yes)
3) Query cloud QR code scanner status (read, no --yes required)
openydt device get-cloud-equip-status --equip-type 3 --client-id 3571F003
undefinedopenydt device get-cloud-equip-status --equip-type 3 --client-id 3571F003
undefined