import{d as N,n as A,a3 as L,r as u,b as y,o as c,c as F,e as o,j as n,w as p,i as h,f as E,g as l,h as t,K as r,S as U,a5 as k,a6 as D,_ as Z}from"./index-4789ca0a.js";import{T as S}from"./index-296c76cc.js";const e=i=>(k("data-v-b00c7a1a"),i=i(),D(),i),B={class:"form-container"},G=e(()=>l("b",null,"AT",-1)),$=e(()=>l("br",null,null,-1)),j=e(()=>l("b",null,"AT+CGSN",-1)),z=e(()=>l("br",null,null,-1)),K=e(()=>l("b",null,"AT+MODIMEI=串号",-1)),X=e(()=>l("br",null,null,-1)),q=e(()=>l("b",null,"AT+ZMODE=1",-1)),H=e(()=>l("br",null,null,-1)),J=e(()=>l("b",null,"AT+CIMI",-1)),P=e(()=>l("br",null,null,-1)),Q=e(()=>l("br",null,null,-1)),W=e(()=>l("b",null,"AT+CGMI",-1)),Y=e(()=>l("br",null,null,-1)),ll=e(()=>l("b",null,"AT+CGMM",-1)),el=e(()=>l("br",null,null,-1)),tl=e(()=>l("b",null,"AT+CGMR",-1)),ol=e(()=>l("br",null,null,-1)),nl=e(()=>l("br",null,null,-1)),sl=e(()=>l("b",null,"AT+ZLTELC?",-1)),_l=e(()=>l("br",null,null,-1)),ul=e(()=>l("b",null,"AT+ZLTELC=1,频点值",-1)),dl=e(()=>l("br",null,null,-1)),il=e(()=>l("b",null,"AT+ZLTELC=1,频点值,小区",-1)),al=e(()=>l("br",null,null,-1)),cl=e(()=>l("b",null,"AT+ZLTELC=0,65535,65535",-1)),rl=e(()=>l("br",null,null,-1)),ml=e(()=>l("br",null,null,-1)),Rl=e(()=>l("br",null,null,-1)),bl=e(()=>l("li",null,"AT+CFUN=0",-1)),pl=e(()=>l("li",null,"AT+CFUN=1",-1)),hl=e(()=>l("b",null,"CME ERROR:",-1)),El=e(()=>l("br",null,null,-1)),Ml=e(()=>l("br",null,null,-1)),fl=e(()=>l("br",null,null,-1)),Cl=e(()=>l("br",null,null,-1)),Tl=e(()=>l("br",null,null,-1)),Il=e(()=>l("br",null,null,-1)),Al=e(()=>l("br",null,null,-1)),yl=e(()=>l("br",null,null,-1)),Sl=e(()=>l("br",null,null,-1)),vl=e(()=>l("br",null,null,-1)),Ol=e(()=>l("br",null,null,-1)),xl=e(()=>l("br",null,null,-1)),gl=e(()=>l("b",null,"CMS ERROR:",-1)),wl=e(()=>l("br",null,null,-1)),Vl=e(()=>l("br",null,null,-1)),Nl=e(()=>l("br",null,null,-1)),Ll=e(()=>l("br",null,null,-1)),Fl=e(()=>l("br",null,null,-1)),Ul=e(()=>l("br",null,null,-1)),kl=e(()=>l("br",null,null,-1)),Dl=e(()=>l("br",null,null,-1)),Zl=e(()=>l("br",null,null,-1)),Bl=e(()=>l("br",null,null,-1)),Gl=e(()=>l("br",null,null,-1)),$l=N({name:"AT",__name:"AT",setup(i){const M=A(["1","3"]);let a=A(!1);const _=L({cmd:"",result:""});function v(){a.value=!0,_.cmd.length<=0&&r("请输入AT命令",{type:"error"}),/AT/.test(_.cmd)||r("AT指令可能不正确",{type:"error"}),U({at_cmd:_.cmd,goformId:"EXECUTE_AT_COMMAND"}).then(s=>{a.value=!1,_.result+=s.result,r("执行成功",{type:"success"})}).catch(s=>{a.value=!1,r("请求失败",{type:"error"})})}return(O,s)=>{const f=u("el-input"),m=u("el-button"),R=u("el-form-item"),x=u("el-form"),C=u("el-card"),T=u("el-col"),b=u("el-collapse-item"),g=u("el-collapse"),w=u("el-row"),V=y("loading"),I=y("motion");return c(),F("div",null,[o(w,{gutter:24},{default:n(()=>[p((c(),h(T,{xs:24,sm:24,md:16,lg:16,xl:16,class:"mb-[5px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:200}}},{default:n(()=>[p((c(),h(C,{shadow:"never"},{header:n(()=>[o(E(S),{className:"type-it1",values:["AT命令"],cursor:!1,speed:60})]),default:n(()=>[l("div",B,[o(x,{ref:"ruleFormRef",model:_,"status-icon":"",class:"demo-ruleForm","label-position":"left"},{default:n(()=>[o(R,{label:"AT命令",prop:"cmd"},{default:n(()=>[o(f,{modelValue:_.cmd,"onUpdate:modelValue":s[0]||(s[0]=d=>_.cmd=d),type:"text",autocomplete:"off",style:{width:"calc(100% - 70px)"}},null,8,["modelValue"]),o(m,{style:{"margin-left":"10px",width:"50px"},type:"primary",onClick:s[1]||(s[1]=d=>v())},{default:n(()=>[t("应用")]),_:1})]),_:1}),o(R,{label:"AT响应",prop:"result"},{default:n(()=>[o(f,{modelValue:_.result,"onUpdate:modelValue":s[2]||(s[2]=d=>_.result=d),autosize:{minRows:19,maxRows:200},type:"textarea",disabled:""},null,8,["modelValue"])]),_:1}),o(R,{class:"form-buttons"},{default:n(()=>[o(m,{type:"warning",onClick:s[3]||(s[3]=d=>_.result="")},{default:n(()=>[t("清空")]),_:1})]),_:1}),o(m,{style:{visibility:"hidden"}})]),_:1},8,["model"])])]),_:1})),[[V,E(a)]])]),_:1})),[[I]]),p((c(),h(T,{xs:24,sm:24,md:8,lg:8,xl:8,class:"mb-[5px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:200}}},{default:n(()=>[o(C,{shadow:"never"},{header:n(()=>[o(E(S),{className:"type-it2",values:["其他设置说明"],cursor:!1,speed:60})]),default:n(()=>[o(g,{modelValue:M.value,"onUpdate:modelValue":s[4]||(s[4]=d=>M.value=d)},{default:n(()=>[o(b,{title:"常用AT指令",name:"1"},{default:n(()=>[G,t("： 测试设备是否处于响应状态"),$,j,t("： 查询设备序列号（IMEI）"),z,K,t("： 修改设备序列号（IMEI）"),X,q,t("： 修改IMEI失败时，可执行此命令并重启，再进行修改IMEI"),H,J,t("： 查询SIM卡IMSI值"),P,Q,W,t("： 查询设备制造商信息"),Y,ll,t("： 查询产品名称信息"),el,tl,t("： 查询软件版本信息"),ol,nl,sl,t("： 查询锁定小区信息"),_l,ul,t("： 锁频点"),dl,il,t("： 锁小区"),al,cl,t("： 解除锁定"),rl,ml,t("对小区或频点进行操作之后，按顺序执行下面指令，则不需要重启即可重新搜寻信号"),Rl,bl,pl]),_:1}),o(b,{title:"常见AT错误代码",name:"2"},{default:n(()=>[hl,El,t(" CME ERROR: 0 - 操作成功完成"),Ml,t(" CME ERROR: 3 - 与设备通信超时"),fl,t(" CME ERROR: 6 - 不支持的操作"),Cl,t(" CME ERROR: 10 - SIM 卡不可用"),Tl,t(" CME ERROR: 13 - SIM 卡未找到"),Il,t(" CME ERROR: 16 - 网络拒绝"),Al,t(" CME ERROR: 22 - 不正确的参数"),yl,t(" CME ERROR: 27 - 内存短缺"),Sl,t(" CME ERROR: 30 - SIM 卡被锁定"),vl,t(" CME ERROR: 42 - 不支持的 SIM 卡"),Ol,t(" CME ERROR: 100 - 未指定错误"),xl,gl,wl,t(" CMS ERROR: 300 - ME 处理 SIM 卡失败"),Vl,t(" CMS ERROR: 302 - ME SIM 错误"),Nl,t(" CMS ERROR: 310 - SIM 卡未插入"),Ll,t(" CMS ERROR: 313 - SIM 卡锁定"),Fl,t(" CMS ERROR: 316 - SIM 卡错误"),Ul,t(" CMS ERROR: 321 - SIM 卡拒绝"),kl,t(" CMS ERROR: 500 - ME 不支持该功能"),Dl,t(" CMS ERROR: 515 - ME 内存短缺"),Zl,t(" CMS ERROR: 517 - ME 不正确的参数"),Bl,t(" CMS ERROR: 600 - ME 未知错误"),Gl]),_:1}),o(b,{title:"温馨提示",name:"3"},{default:n(()=>[t(" 输入错误的AT指令可能导致设备一直重启，断电重新插拔就恢复了。 ")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})),[[I]])]),_:1})])}}});const Kl=Z($l,[["__scopeId","data-v-b00c7a1a"]]);export{Kl as default};
