
# USB模式切换
#### 应用场景
启用此项后，大屏USB接口的使用模式将跟随当前系统自动切换。
#### 前提条件
已完成登录认证，参考[登录认证](https://support.huaweicloud.com/ideahub-api/ideahub_05_0013.html#ZH-CN_TOPIC_0000001309671840)。
#### 接口概述
本接口可以切换USB模式以适应系统，接口详情请参考[USB模式切换](https://support.huaweicloud.com/ideahub-api/ideahub_05_0302.html#ZH-CN_TOPIC_0000001309512304)
#### 请求URL
/action.cgi?ActionID=WEB_SaveCfgParamAPI
```
private static void WEB_SaveCfgParamAPI() {
        String uri = baseUrl + "/action.cgi?ActionID=WEB_SaveCfgParamAPI";
        JSONObject itemInt = new JSONObject();
        itemInt.put("CfgItemID","usbOpsMode");
        itemInt.put("CfgItemInfo",1);
        JSONArray itemIntArray = new JSONArray();
        itemIntArray.add(itemInte);
        JSONArray itemStrArray = new JSONArray();
        JSONObject obj = new JSONObject(); 
        obj.put("CfgItemInt", itemIntArray);
        obj.pub("CfgItemString", itemStrArray);
        obj.put("acCSRFToken", token);
        JSONObject result = HttpClientUtil.post(uri, obj, null);
   }
```
#### token的值为上述login操作获取的值，USB模式切换成功返回报文
{"success":1,"data":""}
