From: azao <821478748@qq.com> Date: Thu, 4 Dec 2025 08:15:59 +0000 (+0800) Subject: 服务器迁移 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=32f895be9a8867f0a2ecefed1cc0a3c453d0d9e3;p=mirrors%2FASR1603_G5.git 服务器迁移 --- diff --git a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py index 170d35cc..91323ad2 100644 --- a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py +++ b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/ai_VC.py @@ -1807,7 +1807,7 @@ class device_res_author(Abstract): if dev_type == "7PIN_BK_EU":#英文小瑞 url = "http://dmp-global.raisound.com/bz-api/dev/time" else: - url = "http://dmp.raisound.com/bz-api/dev/time" + url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/time" response = request.get(url,timeout=5) data = response.json() print("dev_NTP:{}".format(data)) @@ -1937,7 +1937,7 @@ class device_res_author(Abstract): if dev_type == "7PIN_BK_EU":#英文小瑞 url = "http://dmp-global.raisound.com/bz-api/dev/auth/active" else: - url = "http://dmp.qipai.com.cn:30461/dev/auth/active" + url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/auth/active" # url = "http://dmp-dev.raisound.com/bz-api/dev/auth/active" data =ujson.dumps(data) response = None @@ -2050,7 +2050,7 @@ class device_res_author(Abstract): if dev_type == "7PIN_BK_EU":#英文小瑞 sign_url = "http://dmp-global.raisound.com/bz-api/dev/auth/sign_in" #登入地址 else: - sign_url = "http://dmp.qipai.com.cn:30461/dev/auth/sign_in" #登入地址 + sign_url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/auth/sign_in" #登入地址 # sign_url = "http://dmp-dev.raisound.com/bz-api/dev/auth/sign_in" #登入地址 #获取验证码 #url = "http://dmp.qipai.com.cn:30461/dev/device/bind-code/860132066060377" @@ -2123,7 +2123,7 @@ class device_res_author(Abstract): if dev_type == "7PIN_BK_EU":#英文小瑞 url = "http://dmp-global.raisound.com/bz-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid) else: - url = "http://dmp.qipai.com.cn:30461/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid) + url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid) print("{} H:{}".format(url,headers_T)) response = request.post(url,headers = headers_T) if response.status_code == 200: @@ -2162,7 +2162,7 @@ class device_res_author(Abstract): dev_tokenip = "http://dmp-global.raisound.com/bz-api/dev/auth/token" #设备新令牌更新地址 else: dev_tokenip = "http://dmp-dev.raisound.com/bz-api/dev/auth/token" #设备新令牌更新地址 - dev_tokenip = "http://dmp.qipai.com.cn:30461/dev/auth/token" #设备新令牌更新地址 + dev_tokenip = "https://qipai-dev.dobell.top/qp-dmp-api/dev/auth/token" #设备新令牌更新地址 token = self.dev_token if token == None: @@ -2237,7 +2237,7 @@ class OTA(): # if dev_type == "7PIN" or dev_type == "7PIN_coze":#柒牌 # url = "http://ota.qipai.com/bz-cmp-api/api/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion) # else: - url = "http://dmp.raisound.com/bz-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion) + url = "https://qipai-dev.dobell.top/qp-dmp-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion) print(url) response = request.get(url,timeout=5) @@ -2307,7 +2307,7 @@ class OTA(): # if dev_type == "7PIN" or dev_type == "7PIN_coze":#柒牌 # url = "http://ota.qipai.com/bz-cmp-api/api/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion) # else: - url = "http://dmp.raisound.com/bz-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion) + url = "https://qipai-dev.dobell.top/qp-dmp-api/ota/task?deviceId={}&sourceVersion={}".format(modem.getDevImei(),sourceVersion) print(url) response = request.get(url,timeout=5) @@ -2405,7 +2405,7 @@ class OTA(): if dev_type == "7PIN" or dev_type == "7PIN_1_5" or dev_type == "7PIN_coze":#柒牌 url = "http://ota.qipai.com/bz-cmp-api/api/result?deviceId={}¤tVersion={}".format(modem.getDevImei(),currentVersion) else: - url = "http://dmp.raisound.com/bz-api/ota/result?deviceId={}¤tVersion={}".format(modem.getDevImei(),currentVersion) + url = "https://qipai-dev.dobell.top/qp-dmp-api/ota/result?deviceId={}¤tVersion={}".format(modem.getDevImei(),currentVersion) print(url) response = request.post(url,timeout=5) if response.status_code == 200: @@ -2437,7 +2437,7 @@ class OTA(): if dev_type == "7PIN_BK_EU":#英文小瑞 url = "http://dmp-global.raisound.com/bz-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid) else: - url = "http://dmp.raisound.com/bz-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid) + url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/iccid?deviceId={}&iccid={}".format(modem.getDevImei(),iccid) print("{} H:{}".format(url,headers_T)) response = request.post(url,headers = headers_T,timeout=5) if response.status_code == 200: @@ -2599,7 +2599,7 @@ class AI_VC(Abstract): # self.server_ip="118.145.158.207:22082" # self.server_ip="118.145.158.207:22080/22087" #self.server_ip="ai.qipai.com" - self.server_ip="dmp.qipai.com.cn:30746" + self.server_ip="115.190.35.37:22082" #self.server_ip="sevenpin1.qipai.com.cn:22082" elif dev_type == "G10": self.server_ip="115.190.94.208:22080" @@ -3135,7 +3135,7 @@ class AI_VC(Abstract): elif dev_type == "7PIN" or dev_type == "7PIN_1_5" or dev_type == "7PIN_coze":#柒牌 url = "http://ota.qipai.com/bz-cmp-api/api/config/{}".format(modem.getDevImei()) else: - url = "http://dmp.raisound.com/bz-api/dev/config/{}".format(modem.getDevImei()) + url = "https://qipai-dev.dobell.top/qp-dmp-api/dev/config/{}".format(modem.getDevImei()) print(url) diff --git a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py index 4ac8efe8..e9d023df 100644 --- a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py +++ b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py @@ -1452,7 +1452,7 @@ class SockMangager(Abstract): try: if token != None: self.connect_web_timer_count = 0 - url_t = "ws://220.160.104.34:30800/ws-hub/dev/v1?qp-dt={}".format(token) + url_t = "wss://qipai-dev.dobell.top/qp-iot-api/ws-hub/dev/v1?qp-dt={}".format(token) try: self.iot_protocol_client=uwebsocket.Client.connect(url_t, debug=True) self.reconnect_count=0 @@ -2705,6 +2705,13 @@ def ai_cmd_handle(cmd): EventMesh.publish("set_history_voice_flag",1)#修改标志位 EventMesh.publish("clean_unread_vocie")#清空未读多条一起下发记录 pass + elif "语速倍速设置为:" in cmd:#修改对话模式 + voice_start_index = cmd.index("语速倍速设置为:") + len("语速倍速设置为:")#动态判断截取部分 + find = cmd[voice_start_index:]#查询截取 + print("find = {}".format(find)) + EventMesh.publish("SET_SPEECH_RATE",float(find)) + tts_play_str = "语速已经改为" + find + EventMesh.publish("play_tts",[tts_play_str,0]) #NLP指令 class IOTWeb_Nlp_ConfigProtoCol(ProtoCol):