pymammotion 0.5.69__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymammotion/__init__.py +53 -0
- pymammotion/agora/__init__.py +0 -0
- pymammotion/agora/agora_api.py +755 -0
- pymammotion/agora/agora_rtc_capabilities.py +748 -0
- pymammotion/agora/agora_websockets.py +1175 -0
- pymammotion/aliyun/__init__.py +1 -0
- pymammotion/aliyun/client.py +235 -0
- pymammotion/aliyun/cloud_gateway.py +982 -0
- pymammotion/aliyun/model/aep_response.py +21 -0
- pymammotion/aliyun/model/connect_response.py +51 -0
- pymammotion/aliyun/model/dev_by_account_response.py +195 -0
- pymammotion/aliyun/model/login_by_oauth_response.py +64 -0
- pymammotion/aliyun/model/regions_response.py +29 -0
- pymammotion/aliyun/model/session_by_authcode_response.py +19 -0
- pymammotion/aliyun/model/thing_response.py +12 -0
- pymammotion/aliyun/regions.py +62 -0
- pymammotion/aliyun/tea/core.py +297 -0
- pymammotion/aliyun/tmp_constant.py +171 -0
- pymammotion/bluetooth/__init__.py +1 -0
- pymammotion/bluetooth/ble.py +62 -0
- pymammotion/bluetooth/ble_message.py +676 -0
- pymammotion/bluetooth/const.py +27 -0
- pymammotion/bluetooth/data/__init__.py +0 -0
- pymammotion/bluetooth/data/convert.py +25 -0
- pymammotion/bluetooth/data/framectrldata.py +40 -0
- pymammotion/bluetooth/data/notifydata.py +62 -0
- pymammotion/bluetooth/model/__init__.py +0 -0
- pymammotion/bluetooth/model/atomic_integer.py +54 -0
- pymammotion/const.py +13 -0
- pymammotion/data/__init__.py +0 -0
- pymammotion/data/model/__init__.py +8 -0
- pymammotion/data/model/account.py +8 -0
- pymammotion/data/model/device.py +192 -0
- pymammotion/data/model/device_config.py +72 -0
- pymammotion/data/model/device_info.py +60 -0
- pymammotion/data/model/device_limits.py +49 -0
- pymammotion/data/model/enums.py +77 -0
- pymammotion/data/model/errors.py +12 -0
- pymammotion/data/model/events.py +14 -0
- pymammotion/data/model/generate_geojson.py +565 -0
- pymammotion/data/model/generate_route_information.py +26 -0
- pymammotion/data/model/hash_list.py +475 -0
- pymammotion/data/model/location.py +36 -0
- pymammotion/data/model/mowing_modes.py +77 -0
- pymammotion/data/model/rapid_state.py +45 -0
- pymammotion/data/model/raw_data.py +215 -0
- pymammotion/data/model/region_data.py +102 -0
- pymammotion/data/model/report_info.py +182 -0
- pymammotion/data/model/work.py +27 -0
- pymammotion/data/mower_state_manager.py +369 -0
- pymammotion/data/mqtt/__init__.py +1 -0
- pymammotion/data/mqtt/event.py +227 -0
- pymammotion/data/mqtt/mammotion_properties.py +276 -0
- pymammotion/data/mqtt/properties.py +203 -0
- pymammotion/data/mqtt/status.py +57 -0
- pymammotion/event/__init__.py +6 -0
- pymammotion/event/event.py +96 -0
- pymammotion/homeassistant/__init__.py +3 -0
- pymammotion/homeassistant/mower_api.py +514 -0
- pymammotion/homeassistant/rtk_api.py +54 -0
- pymammotion/http/__init__.py +0 -0
- pymammotion/http/encryption.py +220 -0
- pymammotion/http/http.py +673 -0
- pymammotion/http/model/__init__.py +0 -0
- pymammotion/http/model/camera_stream.py +31 -0
- pymammotion/http/model/http.py +249 -0
- pymammotion/http/model/response_factory.py +61 -0
- pymammotion/http/model/rtk.py +16 -0
- pymammotion/mammotion/__init__.py +0 -0
- pymammotion/mammotion/commands/__init__.py +0 -0
- pymammotion/mammotion/commands/abstract_message.py +24 -0
- pymammotion/mammotion/commands/mammotion_command.py +81 -0
- pymammotion/mammotion/commands/messages/__init__.py +0 -0
- pymammotion/mammotion/commands/messages/basestation.py +43 -0
- pymammotion/mammotion/commands/messages/driver.py +122 -0
- pymammotion/mammotion/commands/messages/media.py +87 -0
- pymammotion/mammotion/commands/messages/navigation.py +564 -0
- pymammotion/mammotion/commands/messages/network.py +205 -0
- pymammotion/mammotion/commands/messages/ota.py +38 -0
- pymammotion/mammotion/commands/messages/system.py +330 -0
- pymammotion/mammotion/commands/messages/video.py +33 -0
- pymammotion/mammotion/control/__init__.py +0 -0
- pymammotion/mammotion/control/joystick.py +145 -0
- pymammotion/mammotion/devices/__init__.py +29 -0
- pymammotion/mammotion/devices/base.py +163 -0
- pymammotion/mammotion/devices/mammotion.py +571 -0
- pymammotion/mammotion/devices/mammotion_bluetooth.py +496 -0
- pymammotion/mammotion/devices/mammotion_cloud.py +355 -0
- pymammotion/mammotion/devices/mammotion_mower_ble.py +48 -0
- pymammotion/mammotion/devices/mammotion_mower_cloud.py +39 -0
- pymammotion/mammotion/devices/managers/managers.py +81 -0
- pymammotion/mammotion/devices/mower_device.py +120 -0
- pymammotion/mammotion/devices/mower_manager.py +107 -0
- pymammotion/mammotion/devices/rtk_ble.py +89 -0
- pymammotion/mammotion/devices/rtk_cloud.py +115 -0
- pymammotion/mammotion/devices/rtk_device.py +50 -0
- pymammotion/mammotion/devices/rtk_manager.py +125 -0
- pymammotion/mqtt/__init__.py +6 -0
- pymammotion/mqtt/aliyun_mqtt.py +237 -0
- pymammotion/mqtt/linkkit/__init__.py +5 -0
- pymammotion/mqtt/linkkit/h2client.py +585 -0
- pymammotion/mqtt/linkkit/linkkit.py +3025 -0
- pymammotion/mqtt/mammotion_future.py +26 -0
- pymammotion/mqtt/mammotion_mqtt.py +214 -0
- pymammotion/mqtt/mqtt_models.py +66 -0
- pymammotion/proto/__init__.py +4841 -0
- pymammotion/proto/basestation.proto +51 -0
- pymammotion/proto/basestation_pb2.py +35 -0
- pymammotion/proto/basestation_pb2.pyi +89 -0
- pymammotion/proto/common.proto +7 -0
- pymammotion/proto/common_pb2.py +25 -0
- pymammotion/proto/common_pb2.pyi +13 -0
- pymammotion/proto/dev_net.proto +321 -0
- pymammotion/proto/dev_net_pb2.py +111 -0
- pymammotion/proto/dev_net_pb2.pyi +515 -0
- pymammotion/proto/luba_msg.proto +76 -0
- pymammotion/proto/luba_msg_pb2.py +41 -0
- pymammotion/proto/luba_msg_pb2.pyi +97 -0
- pymammotion/proto/luba_mul.proto +129 -0
- pymammotion/proto/luba_mul_pb2.py +61 -0
- pymammotion/proto/luba_mul_pb2.pyi +178 -0
- pymammotion/proto/mctrl_driver.proto +107 -0
- pymammotion/proto/mctrl_driver_pb2.py +57 -0
- pymammotion/proto/mctrl_driver_pb2.pyi +167 -0
- pymammotion/proto/mctrl_nav.proto +591 -0
- pymammotion/proto/mctrl_nav_pb2.py +136 -0
- pymammotion/proto/mctrl_nav_pb2.pyi +1067 -0
- pymammotion/proto/mctrl_ota.proto +80 -0
- pymammotion/proto/mctrl_ota_pb2.py +45 -0
- pymammotion/proto/mctrl_ota_pb2.pyi +128 -0
- pymammotion/proto/mctrl_pept.proto +34 -0
- pymammotion/proto/mctrl_pept_pb2.py +33 -0
- pymammotion/proto/mctrl_pept_pb2.pyi +58 -0
- pymammotion/proto/mctrl_sys.proto +741 -0
- pymammotion/proto/mctrl_sys_pb2.py +206 -0
- pymammotion/proto/mctrl_sys_pb2.pyi +1213 -0
- pymammotion/proto/message_pool.py +3 -0
- pymammotion/proto/py.typed +0 -0
- pymammotion/py.typed +0 -0
- pymammotion/utility/constant/__init__.py +3 -0
- pymammotion/utility/constant/device_constant.py +315 -0
- pymammotion/utility/conversions.py +5 -0
- pymammotion/utility/datatype_converter.py +124 -0
- pymammotion/utility/device_config.py +755 -0
- pymammotion/utility/device_type.py +489 -0
- pymammotion/utility/map.py +259 -0
- pymammotion/utility/movement.py +18 -0
- pymammotion/utility/mur_mur_hash.py +159 -0
- pymammotion/utility/periodic.py +106 -0
- pymammotion/utility/rocker_util.py +194 -0
- pymammotion-0.5.69.dist-info/METADATA +93 -0
- pymammotion-0.5.69.dist-info/RECORD +154 -0
- pymammotion-0.5.69.dist-info/WHEEL +4 -0
- pymammotion-0.5.69.dist-info/licenses/LICENSE +674 -0
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
|
2
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from google.protobuf import message as _message
|
|
5
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
APN_AUTH_CHAP: apn_auth_type
|
|
8
|
+
APN_AUTH_NONE: apn_auth_type
|
|
9
|
+
APN_AUTH_PAP: apn_auth_type
|
|
10
|
+
APN_AUTH_PAP_CHAP: apn_auth_type
|
|
11
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
|
+
DRV_RESULT_FAIL: DrvDevInfoResult
|
|
13
|
+
DRV_RESULT_NOTSUP: DrvDevInfoResult
|
|
14
|
+
DRV_RESULT_SUC: DrvDevInfoResult
|
|
15
|
+
DirectConnectWifi: WifiConfType
|
|
16
|
+
DisconnectWifi: WifiConfType
|
|
17
|
+
FILE_TYPE_ALL: DrvUploadFileFileType
|
|
18
|
+
FILE_TYPE_NAVLOG: DrvUploadFileFileType
|
|
19
|
+
FILE_TYPE_RTKLOG: DrvUploadFileFileType
|
|
20
|
+
FILE_TYPE_SYSLOG: DrvUploadFileFileType
|
|
21
|
+
ForgetWifi: WifiConfType
|
|
22
|
+
IOT_TYPE_OFFLINE: iot_conctrl_type
|
|
23
|
+
IOT_TYPE_ONLINE: iot_conctrl_type
|
|
24
|
+
IOT_TYPE_RESET: iot_conctrl_type
|
|
25
|
+
MNET_LINK_2G: mnet_link_type
|
|
26
|
+
MNET_LINK_3G: mnet_link_type
|
|
27
|
+
MNET_LINK_4G: mnet_link_type
|
|
28
|
+
MNET_LINK_5G: mnet_link_type
|
|
29
|
+
MNET_LINK_NONE: mnet_link_type
|
|
30
|
+
NET_TYPE_MNET: net_type
|
|
31
|
+
NET_TYPE_WIFI: net_type
|
|
32
|
+
ReconnectWifi: WifiConfType
|
|
33
|
+
SIM_INPUT_PIN: sim_card_sta
|
|
34
|
+
SIM_INPUT_PUK: sim_card_sta
|
|
35
|
+
SIM_INVALID: sim_card_sta
|
|
36
|
+
SIM_NONE: sim_card_sta
|
|
37
|
+
SIM_NO_CARD: sim_card_sta
|
|
38
|
+
SIM_OK: sim_card_sta
|
|
39
|
+
set_enable: WifiConfType
|
|
40
|
+
|
|
41
|
+
class BleLogUploadUpdateProgress(_message.Message):
|
|
42
|
+
__slots__ = ["bizId", "fIdx", "fNum", "fPath", "fSize", "prog", "speed", "status", "subProg", "ver"]
|
|
43
|
+
BIZID_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
FIDX_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
FNUM_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
FPATH_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
FSIZE_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
PROG_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
SPEED_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
SUBPROG_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
VER_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
bizId: str
|
|
54
|
+
fIdx: int
|
|
55
|
+
fNum: int
|
|
56
|
+
fPath: str
|
|
57
|
+
fSize: int
|
|
58
|
+
prog: int
|
|
59
|
+
speed: int
|
|
60
|
+
status: int
|
|
61
|
+
subProg: int
|
|
62
|
+
ver: int
|
|
63
|
+
def __init__(self, ver: _Optional[int] = ..., status: _Optional[int] = ..., bizId: _Optional[str] = ..., prog: _Optional[int] = ..., subProg: _Optional[int] = ..., fNum: _Optional[int] = ..., speed: _Optional[int] = ..., fIdx: _Optional[int] = ..., fPath: _Optional[str] = ..., fSize: _Optional[int] = ...) -> None: ...
|
|
64
|
+
|
|
65
|
+
class BleSignatureReq(_message.Message):
|
|
66
|
+
__slots__ = ["random_data", "signature_data"]
|
|
67
|
+
RANDOM_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
SIGNATURE_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
random_data: str
|
|
70
|
+
signature_data: str
|
|
71
|
+
def __init__(self, signature_data: _Optional[str] = ..., random_data: _Optional[str] = ...) -> None: ...
|
|
72
|
+
|
|
73
|
+
class BleTestBytes(_message.Message):
|
|
74
|
+
__slots__ = ["data", "seqs"]
|
|
75
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
SEQS_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
data: _containers.RepeatedScalarFieldContainer[int]
|
|
78
|
+
seqs: int
|
|
79
|
+
def __init__(self, seqs: _Optional[int] = ..., data: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
80
|
+
|
|
81
|
+
class DevNet(_message.Message):
|
|
82
|
+
__slots__ = ["bir_testdata", "toapp_ListUpload", "toapp_WifiConf", "toapp_WifiMsg", "toapp_devinfo_resp", "toapp_get_mnet_cfg_rsp", "toapp_log_upload_update_progress", "toapp_mnet_info_rsp", "toapp_networkinfo_rsp", "toapp_set_mnet_cfg_rsp", "toapp_upgrade_report", "toapp_uploadfile_rsp", "toapp_wifi_iot_status", "todev_ConfType", "todev_WifiListUpload", "todev_WifiMsgUpload", "todev_Wifi_Configuration", "todev_ble_sync", "todev_devinfo_req", "todev_get_mnet_cfg_req", "todev_log_data_cancel", "todev_mnet_info_req", "todev_networkinfo_req", "todev_req_log_info", "todev_set_ble_mtu", "todev_set_dds2zmq", "todev_set_iot_offline_req", "todev_set_mnet_cfg_req", "todev_uploadfile_req", "todev_verify_signature_req"]
|
|
83
|
+
BIR_TESTDATA_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
TOAPP_DEVINFO_RESP_FIELD_NUMBER: _ClassVar[int]
|
|
85
|
+
TOAPP_GET_MNET_CFG_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
TOAPP_LISTUPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
TOAPP_LOG_UPLOAD_UPDATE_PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
TOAPP_MNET_INFO_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
TOAPP_NETWORKINFO_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
TOAPP_SET_MNET_CFG_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
TOAPP_UPGRADE_REPORT_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
TOAPP_UPLOADFILE_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
TOAPP_WIFICONF_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
TOAPP_WIFIMSG_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
TOAPP_WIFI_IOT_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
TODEV_BLE_SYNC_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
TODEV_CONFTYPE_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
TODEV_DEVINFO_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
TODEV_GET_MNET_CFG_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
TODEV_LOG_DATA_CANCEL_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
TODEV_MNET_INFO_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
TODEV_NETWORKINFO_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
TODEV_REQ_LOG_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
TODEV_SET_BLE_MTU_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
TODEV_SET_DDS2ZMQ_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
TODEV_SET_IOT_OFFLINE_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
TODEV_SET_MNET_CFG_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
108
|
+
TODEV_UPLOADFILE_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
TODEV_VERIFY_SIGNATURE_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
TODEV_WIFILISTUPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
TODEV_WIFIMSGUPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
TODEV_WIFI_CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
bir_testdata: BleTestBytes
|
|
114
|
+
toapp_ListUpload: DrvListUpload
|
|
115
|
+
toapp_WifiConf: DrvWifiConf
|
|
116
|
+
toapp_WifiMsg: DrvWifiMsg
|
|
117
|
+
toapp_devinfo_resp: DrvDevInfoResp
|
|
118
|
+
toapp_get_mnet_cfg_rsp: GetMnetCfgRsp
|
|
119
|
+
toapp_log_upload_update_progress: BleLogUploadUpdateProgress
|
|
120
|
+
toapp_mnet_info_rsp: GetMnetInfoRsp
|
|
121
|
+
toapp_networkinfo_rsp: GetNetworkInfoRsp
|
|
122
|
+
toapp_set_mnet_cfg_rsp: SetMnetCfgRsp
|
|
123
|
+
toapp_upgrade_report: DrvUpgradeReport
|
|
124
|
+
toapp_uploadfile_rsp: DrvUploadFileToAppRsp
|
|
125
|
+
toapp_wifi_iot_status: WifiIotStatusReport
|
|
126
|
+
todev_ConfType: WifiConfType
|
|
127
|
+
todev_WifiListUpload: DrvWifiList
|
|
128
|
+
todev_WifiMsgUpload: DrvWifiUpload
|
|
129
|
+
todev_Wifi_Configuration: DrvWifiSet
|
|
130
|
+
todev_ble_sync: int
|
|
131
|
+
todev_devinfo_req: DrvDevInfoReq
|
|
132
|
+
todev_get_mnet_cfg_req: GetMnetCfgReq
|
|
133
|
+
todev_log_data_cancel: DrvUploadFileCancel
|
|
134
|
+
todev_mnet_info_req: GetMnetInfoReq
|
|
135
|
+
todev_networkinfo_req: GetNetworkInfoReq
|
|
136
|
+
todev_req_log_info: DrvUploadFileReq
|
|
137
|
+
todev_set_ble_mtu: SetDrvBleMTU
|
|
138
|
+
todev_set_dds2zmq: DrvDebugDdsZmq
|
|
139
|
+
todev_set_iot_offline_req: iot_conctrl_type
|
|
140
|
+
todev_set_mnet_cfg_req: SetMnetCfgReq
|
|
141
|
+
todev_uploadfile_req: DrvUploadFileToAppReq
|
|
142
|
+
todev_verify_signature_req: BleSignatureReq
|
|
143
|
+
def __init__(self, todev_ble_sync: _Optional[int] = ..., todev_ConfType: _Optional[_Union[WifiConfType, str]] = ..., todev_WifiMsgUpload: _Optional[_Union[DrvWifiUpload, _Mapping]] = ..., todev_WifiListUpload: _Optional[_Union[DrvWifiList, _Mapping]] = ..., todev_Wifi_Configuration: _Optional[_Union[DrvWifiSet, _Mapping]] = ..., toapp_WifiMsg: _Optional[_Union[DrvWifiMsg, _Mapping]] = ..., toapp_WifiConf: _Optional[_Union[DrvWifiConf, _Mapping]] = ..., toapp_ListUpload: _Optional[_Union[DrvListUpload, _Mapping]] = ..., todev_req_log_info: _Optional[_Union[DrvUploadFileReq, _Mapping]] = ..., todev_log_data_cancel: _Optional[_Union[DrvUploadFileCancel, _Mapping]] = ..., todev_devinfo_req: _Optional[_Union[DrvDevInfoReq, _Mapping]] = ..., toapp_devinfo_resp: _Optional[_Union[DrvDevInfoResp, _Mapping]] = ..., toapp_upgrade_report: _Optional[_Union[DrvUpgradeReport, _Mapping]] = ..., toapp_wifi_iot_status: _Optional[_Union[WifiIotStatusReport, _Mapping]] = ..., todev_uploadfile_req: _Optional[_Union[DrvUploadFileToAppReq, _Mapping]] = ..., toapp_uploadfile_rsp: _Optional[_Union[DrvUploadFileToAppRsp, _Mapping]] = ..., todev_networkinfo_req: _Optional[_Union[GetNetworkInfoReq, _Mapping]] = ..., toapp_networkinfo_rsp: _Optional[_Union[GetNetworkInfoRsp, _Mapping]] = ..., bir_testdata: _Optional[_Union[BleTestBytes, _Mapping]] = ..., todev_mnet_info_req: _Optional[_Union[GetMnetInfoReq, _Mapping]] = ..., toapp_mnet_info_rsp: _Optional[_Union[GetMnetInfoRsp, _Mapping]] = ..., todev_get_mnet_cfg_req: _Optional[_Union[GetMnetCfgReq, _Mapping]] = ..., toapp_get_mnet_cfg_rsp: _Optional[_Union[GetMnetCfgRsp, _Mapping]] = ..., todev_set_mnet_cfg_req: _Optional[_Union[SetMnetCfgReq, _Mapping]] = ..., toapp_set_mnet_cfg_rsp: _Optional[_Union[SetMnetCfgRsp, _Mapping]] = ..., todev_set_dds2zmq: _Optional[_Union[DrvDebugDdsZmq, _Mapping]] = ..., todev_set_ble_mtu: _Optional[_Union[SetDrvBleMTU, _Mapping]] = ..., todev_set_iot_offline_req: _Optional[_Union[iot_conctrl_type, str]] = ..., todev_verify_signature_req: _Optional[_Union[BleSignatureReq, _Mapping]] = ..., toapp_log_upload_update_progress: _Optional[_Union[BleLogUploadUpdateProgress, _Mapping]] = ...) -> None: ...
|
|
144
|
+
|
|
145
|
+
class DrvDebugDdsZmq(_message.Message):
|
|
146
|
+
__slots__ = ["is_enable", "rx_topic_name", "tx_zmq_url"]
|
|
147
|
+
IS_ENABLE_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
RX_TOPIC_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
149
|
+
TX_ZMQ_URL_FIELD_NUMBER: _ClassVar[int]
|
|
150
|
+
is_enable: bool
|
|
151
|
+
rx_topic_name: str
|
|
152
|
+
tx_zmq_url: str
|
|
153
|
+
def __init__(self, is_enable: bool = ..., rx_topic_name: _Optional[str] = ..., tx_zmq_url: _Optional[str] = ...) -> None: ...
|
|
154
|
+
|
|
155
|
+
class DrvDevInfoReq(_message.Message):
|
|
156
|
+
__slots__ = ["req_ids"]
|
|
157
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
158
|
+
req_ids: _containers.RepeatedCompositeFieldContainer[DrvDevInfoReqId]
|
|
159
|
+
def __init__(self, req_ids: _Optional[_Iterable[_Union[DrvDevInfoReqId, _Mapping]]] = ...) -> None: ...
|
|
160
|
+
|
|
161
|
+
class DrvDevInfoReqId(_message.Message):
|
|
162
|
+
__slots__ = ["id", "type"]
|
|
163
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
164
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
165
|
+
id: int
|
|
166
|
+
type: int
|
|
167
|
+
def __init__(self, id: _Optional[int] = ..., type: _Optional[int] = ...) -> None: ...
|
|
168
|
+
|
|
169
|
+
class DrvDevInfoResp(_message.Message):
|
|
170
|
+
__slots__ = ["resp_ids"]
|
|
171
|
+
RESP_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
resp_ids: _containers.RepeatedCompositeFieldContainer[DrvDevInfoRespId]
|
|
173
|
+
def __init__(self, resp_ids: _Optional[_Iterable[_Union[DrvDevInfoRespId, _Mapping]]] = ...) -> None: ...
|
|
174
|
+
|
|
175
|
+
class DrvDevInfoRespId(_message.Message):
|
|
176
|
+
__slots__ = ["id", "info", "res", "type"]
|
|
177
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
178
|
+
INFO_FIELD_NUMBER: _ClassVar[int]
|
|
179
|
+
RES_FIELD_NUMBER: _ClassVar[int]
|
|
180
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
181
|
+
id: int
|
|
182
|
+
info: str
|
|
183
|
+
res: DrvDevInfoResult
|
|
184
|
+
type: int
|
|
185
|
+
def __init__(self, id: _Optional[int] = ..., type: _Optional[int] = ..., res: _Optional[_Union[DrvDevInfoResult, str]] = ..., info: _Optional[str] = ...) -> None: ...
|
|
186
|
+
|
|
187
|
+
class DrvListUpload(_message.Message):
|
|
188
|
+
__slots__ = ["Memssid", "current", "rssi", "status", "sum"]
|
|
189
|
+
CURRENT_FIELD_NUMBER: _ClassVar[int]
|
|
190
|
+
MEMSSID_FIELD_NUMBER: _ClassVar[int]
|
|
191
|
+
Memssid: str
|
|
192
|
+
RSSI_FIELD_NUMBER: _ClassVar[int]
|
|
193
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
194
|
+
SUM_FIELD_NUMBER: _ClassVar[int]
|
|
195
|
+
current: int
|
|
196
|
+
rssi: int
|
|
197
|
+
status: int
|
|
198
|
+
sum: int
|
|
199
|
+
def __init__(self, sum: _Optional[int] = ..., current: _Optional[int] = ..., status: _Optional[int] = ..., Memssid: _Optional[str] = ..., rssi: _Optional[int] = ...) -> None: ...
|
|
200
|
+
|
|
201
|
+
class DrvUpgradeReport(_message.Message):
|
|
202
|
+
__slots__ = ["devname", "message", "otaid", "progress", "properties", "recv_cnt", "result", "version"]
|
|
203
|
+
DEVNAME_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
205
|
+
OTAID_FIELD_NUMBER: _ClassVar[int]
|
|
206
|
+
PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
207
|
+
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
|
208
|
+
RECV_CNT_FIELD_NUMBER: _ClassVar[int]
|
|
209
|
+
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
210
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
211
|
+
devname: str
|
|
212
|
+
message: str
|
|
213
|
+
otaid: str
|
|
214
|
+
progress: int
|
|
215
|
+
properties: str
|
|
216
|
+
recv_cnt: int
|
|
217
|
+
result: int
|
|
218
|
+
version: str
|
|
219
|
+
def __init__(self, devname: _Optional[str] = ..., otaid: _Optional[str] = ..., version: _Optional[str] = ..., progress: _Optional[int] = ..., result: _Optional[int] = ..., message: _Optional[str] = ..., properties: _Optional[str] = ..., recv_cnt: _Optional[int] = ...) -> None: ...
|
|
220
|
+
|
|
221
|
+
class DrvUploadFileCancel(_message.Message):
|
|
222
|
+
__slots__ = ["bizId"]
|
|
223
|
+
BIZID_FIELD_NUMBER: _ClassVar[int]
|
|
224
|
+
bizId: str
|
|
225
|
+
def __init__(self, bizId: _Optional[str] = ...) -> None: ...
|
|
226
|
+
|
|
227
|
+
class DrvUploadFileReq(_message.Message):
|
|
228
|
+
__slots__ = ["bizId", "num", "type", "url", "userId"]
|
|
229
|
+
BIZID_FIELD_NUMBER: _ClassVar[int]
|
|
230
|
+
NUM_FIELD_NUMBER: _ClassVar[int]
|
|
231
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
232
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
233
|
+
USERID_FIELD_NUMBER: _ClassVar[int]
|
|
234
|
+
bizId: str
|
|
235
|
+
num: int
|
|
236
|
+
type: int
|
|
237
|
+
url: str
|
|
238
|
+
userId: str
|
|
239
|
+
def __init__(self, bizId: _Optional[str] = ..., url: _Optional[str] = ..., userId: _Optional[str] = ..., num: _Optional[int] = ..., type: _Optional[int] = ...) -> None: ...
|
|
240
|
+
|
|
241
|
+
class DrvUploadFileToAppReq(_message.Message):
|
|
242
|
+
__slots__ = ["bizId", "num", "operation", "serverIp", "serverPort", "type"]
|
|
243
|
+
BIZID_FIELD_NUMBER: _ClassVar[int]
|
|
244
|
+
NUM_FIELD_NUMBER: _ClassVar[int]
|
|
245
|
+
OPERATION_FIELD_NUMBER: _ClassVar[int]
|
|
246
|
+
SERVERIP_FIELD_NUMBER: _ClassVar[int]
|
|
247
|
+
SERVERPORT_FIELD_NUMBER: _ClassVar[int]
|
|
248
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
249
|
+
bizId: str
|
|
250
|
+
num: int
|
|
251
|
+
operation: int
|
|
252
|
+
serverIp: int
|
|
253
|
+
serverPort: int
|
|
254
|
+
type: int
|
|
255
|
+
def __init__(self, bizId: _Optional[str] = ..., operation: _Optional[int] = ..., serverIp: _Optional[int] = ..., serverPort: _Optional[int] = ..., num: _Optional[int] = ..., type: _Optional[int] = ...) -> None: ...
|
|
256
|
+
|
|
257
|
+
class DrvUploadFileToAppRsp(_message.Message):
|
|
258
|
+
__slots__ = ["bizId", "operation", "result"]
|
|
259
|
+
BIZID_FIELD_NUMBER: _ClassVar[int]
|
|
260
|
+
OPERATION_FIELD_NUMBER: _ClassVar[int]
|
|
261
|
+
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
262
|
+
bizId: str
|
|
263
|
+
operation: int
|
|
264
|
+
result: int
|
|
265
|
+
def __init__(self, bizId: _Optional[str] = ..., operation: _Optional[int] = ..., result: _Optional[int] = ...) -> None: ...
|
|
266
|
+
|
|
267
|
+
class DrvWifiConf(_message.Message):
|
|
268
|
+
__slots__ = ["Confssid", "code", "succFlag"]
|
|
269
|
+
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
270
|
+
CONFSSID_FIELD_NUMBER: _ClassVar[int]
|
|
271
|
+
Confssid: str
|
|
272
|
+
SUCCFLAG_FIELD_NUMBER: _ClassVar[int]
|
|
273
|
+
code: int
|
|
274
|
+
succFlag: bool
|
|
275
|
+
def __init__(self, succFlag: bool = ..., code: _Optional[int] = ..., Confssid: _Optional[str] = ...) -> None: ...
|
|
276
|
+
|
|
277
|
+
class DrvWifiList(_message.Message):
|
|
278
|
+
__slots__ = ["nvs_wifi_upload"]
|
|
279
|
+
NVS_WIFI_UPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
280
|
+
nvs_wifi_upload: int
|
|
281
|
+
def __init__(self, nvs_wifi_upload: _Optional[int] = ...) -> None: ...
|
|
282
|
+
|
|
283
|
+
class DrvWifiMsg(_message.Message):
|
|
284
|
+
__slots__ = ["devicename", "ip", "msgssid", "password", "productkey", "rssi", "status1", "status2", "wifi_enable"]
|
|
285
|
+
DEVICENAME_FIELD_NUMBER: _ClassVar[int]
|
|
286
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
287
|
+
MSGSSID_FIELD_NUMBER: _ClassVar[int]
|
|
288
|
+
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
|
289
|
+
PRODUCTKEY_FIELD_NUMBER: _ClassVar[int]
|
|
290
|
+
RSSI_FIELD_NUMBER: _ClassVar[int]
|
|
291
|
+
STATUS1_FIELD_NUMBER: _ClassVar[int]
|
|
292
|
+
STATUS2_FIELD_NUMBER: _ClassVar[int]
|
|
293
|
+
WIFI_ENABLE_FIELD_NUMBER: _ClassVar[int]
|
|
294
|
+
devicename: str
|
|
295
|
+
ip: str
|
|
296
|
+
msgssid: str
|
|
297
|
+
password: str
|
|
298
|
+
productkey: str
|
|
299
|
+
rssi: int
|
|
300
|
+
status1: bool
|
|
301
|
+
status2: bool
|
|
302
|
+
wifi_enable: bool
|
|
303
|
+
def __init__(self, status1: bool = ..., status2: bool = ..., ip: _Optional[str] = ..., msgssid: _Optional[str] = ..., password: _Optional[str] = ..., rssi: _Optional[int] = ..., productkey: _Optional[str] = ..., devicename: _Optional[str] = ..., wifi_enable: bool = ...) -> None: ...
|
|
304
|
+
|
|
305
|
+
class DrvWifiSet(_message.Message):
|
|
306
|
+
__slots__ = ["Confssid", "configParam", "wifi_enable"]
|
|
307
|
+
CONFIGPARAM_FIELD_NUMBER: _ClassVar[int]
|
|
308
|
+
CONFSSID_FIELD_NUMBER: _ClassVar[int]
|
|
309
|
+
Confssid: str
|
|
310
|
+
WIFI_ENABLE_FIELD_NUMBER: _ClassVar[int]
|
|
311
|
+
configParam: int
|
|
312
|
+
wifi_enable: bool
|
|
313
|
+
def __init__(self, configParam: _Optional[int] = ..., Confssid: _Optional[str] = ..., wifi_enable: bool = ...) -> None: ...
|
|
314
|
+
|
|
315
|
+
class DrvWifiUpload(_message.Message):
|
|
316
|
+
__slots__ = ["wifi_msg_upload"]
|
|
317
|
+
WIFI_MSG_UPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
318
|
+
wifi_msg_upload: int
|
|
319
|
+
def __init__(self, wifi_msg_upload: _Optional[int] = ...) -> None: ...
|
|
320
|
+
|
|
321
|
+
class GetMnetCfgReq(_message.Message):
|
|
322
|
+
__slots__ = ["req_ids"]
|
|
323
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
324
|
+
req_ids: int
|
|
325
|
+
def __init__(self, req_ids: _Optional[int] = ...) -> None: ...
|
|
326
|
+
|
|
327
|
+
class GetMnetCfgRsp(_message.Message):
|
|
328
|
+
__slots__ = ["cfg", "req_ids", "result"]
|
|
329
|
+
CFG_FIELD_NUMBER: _ClassVar[int]
|
|
330
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
331
|
+
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
332
|
+
cfg: MnetCfg
|
|
333
|
+
req_ids: int
|
|
334
|
+
result: int
|
|
335
|
+
def __init__(self, req_ids: _Optional[int] = ..., result: _Optional[int] = ..., cfg: _Optional[_Union[MnetCfg, _Mapping]] = ...) -> None: ...
|
|
336
|
+
|
|
337
|
+
class GetMnetInfoReq(_message.Message):
|
|
338
|
+
__slots__ = ["req_ids"]
|
|
339
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
340
|
+
req_ids: int
|
|
341
|
+
def __init__(self, req_ids: _Optional[int] = ...) -> None: ...
|
|
342
|
+
|
|
343
|
+
class GetMnetInfoRsp(_message.Message):
|
|
344
|
+
__slots__ = ["mnet", "req_ids", "result"]
|
|
345
|
+
MNET_FIELD_NUMBER: _ClassVar[int]
|
|
346
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
347
|
+
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
348
|
+
mnet: MnetInfo
|
|
349
|
+
req_ids: int
|
|
350
|
+
result: int
|
|
351
|
+
def __init__(self, req_ids: _Optional[int] = ..., result: _Optional[int] = ..., mnet: _Optional[_Union[MnetInfo, _Mapping]] = ...) -> None: ...
|
|
352
|
+
|
|
353
|
+
class GetNetworkInfoReq(_message.Message):
|
|
354
|
+
__slots__ = ["req_ids"]
|
|
355
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
356
|
+
req_ids: int
|
|
357
|
+
def __init__(self, req_ids: _Optional[int] = ...) -> None: ...
|
|
358
|
+
|
|
359
|
+
class GetNetworkInfoRsp(_message.Message):
|
|
360
|
+
__slots__ = ["gateway", "ip", "mask", "req_ids", "wifi_mac", "wifi_rssi", "wifi_ssid"]
|
|
361
|
+
GATEWAY_FIELD_NUMBER: _ClassVar[int]
|
|
362
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
363
|
+
MASK_FIELD_NUMBER: _ClassVar[int]
|
|
364
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
365
|
+
WIFI_MAC_FIELD_NUMBER: _ClassVar[int]
|
|
366
|
+
WIFI_RSSI_FIELD_NUMBER: _ClassVar[int]
|
|
367
|
+
WIFI_SSID_FIELD_NUMBER: _ClassVar[int]
|
|
368
|
+
gateway: int
|
|
369
|
+
ip: int
|
|
370
|
+
mask: int
|
|
371
|
+
req_ids: int
|
|
372
|
+
wifi_mac: str
|
|
373
|
+
wifi_rssi: int
|
|
374
|
+
wifi_ssid: str
|
|
375
|
+
def __init__(self, req_ids: _Optional[int] = ..., wifi_ssid: _Optional[str] = ..., wifi_mac: _Optional[str] = ..., wifi_rssi: _Optional[int] = ..., ip: _Optional[int] = ..., mask: _Optional[int] = ..., gateway: _Optional[int] = ...) -> None: ...
|
|
376
|
+
|
|
377
|
+
class MnetApn(_message.Message):
|
|
378
|
+
__slots__ = ["apn_alias", "apn_name", "auth", "cid", "password", "username"]
|
|
379
|
+
APN_ALIAS_FIELD_NUMBER: _ClassVar[int]
|
|
380
|
+
APN_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
381
|
+
AUTH_FIELD_NUMBER: _ClassVar[int]
|
|
382
|
+
CID_FIELD_NUMBER: _ClassVar[int]
|
|
383
|
+
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
|
384
|
+
USERNAME_FIELD_NUMBER: _ClassVar[int]
|
|
385
|
+
apn_alias: str
|
|
386
|
+
apn_name: str
|
|
387
|
+
auth: apn_auth_type
|
|
388
|
+
cid: int
|
|
389
|
+
password: str
|
|
390
|
+
username: str
|
|
391
|
+
def __init__(self, cid: _Optional[int] = ..., apn_alias: _Optional[str] = ..., apn_name: _Optional[str] = ..., auth: _Optional[_Union[apn_auth_type, str]] = ..., username: _Optional[str] = ..., password: _Optional[str] = ...) -> None: ...
|
|
392
|
+
|
|
393
|
+
class MnetApnCfg(_message.Message):
|
|
394
|
+
__slots__ = ["apn", "apn_used_idx"]
|
|
395
|
+
APN_FIELD_NUMBER: _ClassVar[int]
|
|
396
|
+
APN_USED_IDX_FIELD_NUMBER: _ClassVar[int]
|
|
397
|
+
apn: _containers.RepeatedCompositeFieldContainer[MnetApn]
|
|
398
|
+
apn_used_idx: int
|
|
399
|
+
def __init__(self, apn_used_idx: _Optional[int] = ..., apn: _Optional[_Iterable[_Union[MnetApn, _Mapping]]] = ...) -> None: ...
|
|
400
|
+
|
|
401
|
+
class MnetApnSetCfg(_message.Message):
|
|
402
|
+
__slots__ = ["cfg", "use_default"]
|
|
403
|
+
CFG_FIELD_NUMBER: _ClassVar[int]
|
|
404
|
+
USE_DEFAULT_FIELD_NUMBER: _ClassVar[int]
|
|
405
|
+
cfg: MnetApnCfg
|
|
406
|
+
use_default: bool
|
|
407
|
+
def __init__(self, use_default: bool = ..., cfg: _Optional[_Union[MnetApnCfg, _Mapping]] = ...) -> None: ...
|
|
408
|
+
|
|
409
|
+
class MnetCfg(_message.Message):
|
|
410
|
+
__slots__ = ["apn", "auto_select", "inet_enable", "mnet_enable", "type"]
|
|
411
|
+
APN_FIELD_NUMBER: _ClassVar[int]
|
|
412
|
+
AUTO_SELECT_FIELD_NUMBER: _ClassVar[int]
|
|
413
|
+
INET_ENABLE_FIELD_NUMBER: _ClassVar[int]
|
|
414
|
+
MNET_ENABLE_FIELD_NUMBER: _ClassVar[int]
|
|
415
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
416
|
+
apn: MnetApnSetCfg
|
|
417
|
+
auto_select: bool
|
|
418
|
+
inet_enable: bool
|
|
419
|
+
mnet_enable: bool
|
|
420
|
+
type: net_type
|
|
421
|
+
def __init__(self, mnet_enable: bool = ..., inet_enable: bool = ..., type: _Optional[_Union[net_type, str]] = ..., apn: _Optional[_Union[MnetApnSetCfg, _Mapping]] = ..., auto_select: bool = ...) -> None: ...
|
|
422
|
+
|
|
423
|
+
class MnetInfo(_message.Message):
|
|
424
|
+
__slots__ = ["iccid", "imei", "imsi", "inet", "link_type", "model", "operator", "revision", "rssi", "sim"]
|
|
425
|
+
ICCID_FIELD_NUMBER: _ClassVar[int]
|
|
426
|
+
IMEI_FIELD_NUMBER: _ClassVar[int]
|
|
427
|
+
IMSI_FIELD_NUMBER: _ClassVar[int]
|
|
428
|
+
INET_FIELD_NUMBER: _ClassVar[int]
|
|
429
|
+
LINK_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
430
|
+
MODEL_FIELD_NUMBER: _ClassVar[int]
|
|
431
|
+
OPERATOR_FIELD_NUMBER: _ClassVar[int]
|
|
432
|
+
REVISION_FIELD_NUMBER: _ClassVar[int]
|
|
433
|
+
RSSI_FIELD_NUMBER: _ClassVar[int]
|
|
434
|
+
SIM_FIELD_NUMBER: _ClassVar[int]
|
|
435
|
+
iccid: str
|
|
436
|
+
imei: str
|
|
437
|
+
imsi: str
|
|
438
|
+
inet: mnet_inet_status
|
|
439
|
+
link_type: mnet_link_type
|
|
440
|
+
model: str
|
|
441
|
+
operator: str
|
|
442
|
+
revision: str
|
|
443
|
+
rssi: int
|
|
444
|
+
sim: sim_card_sta
|
|
445
|
+
def __init__(self, model: _Optional[str] = ..., revision: _Optional[str] = ..., imei: _Optional[str] = ..., sim: _Optional[_Union[sim_card_sta, str]] = ..., imsi: _Optional[str] = ..., link_type: _Optional[_Union[mnet_link_type, str]] = ..., rssi: _Optional[int] = ..., inet: _Optional[_Union[mnet_inet_status, _Mapping]] = ..., iccid: _Optional[str] = ..., operator: _Optional[str] = ...) -> None: ...
|
|
446
|
+
|
|
447
|
+
class SetDrvBleMTU(_message.Message):
|
|
448
|
+
__slots__ = ["mtu_count"]
|
|
449
|
+
MTU_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
450
|
+
mtu_count: int
|
|
451
|
+
def __init__(self, mtu_count: _Optional[int] = ...) -> None: ...
|
|
452
|
+
|
|
453
|
+
class SetMnetCfgReq(_message.Message):
|
|
454
|
+
__slots__ = ["cfg", "req_ids"]
|
|
455
|
+
CFG_FIELD_NUMBER: _ClassVar[int]
|
|
456
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
457
|
+
cfg: MnetCfg
|
|
458
|
+
req_ids: int
|
|
459
|
+
def __init__(self, req_ids: _Optional[int] = ..., cfg: _Optional[_Union[MnetCfg, _Mapping]] = ...) -> None: ...
|
|
460
|
+
|
|
461
|
+
class SetMnetCfgRsp(_message.Message):
|
|
462
|
+
__slots__ = ["req_ids", "result"]
|
|
463
|
+
REQ_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
464
|
+
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
465
|
+
req_ids: int
|
|
466
|
+
result: int
|
|
467
|
+
def __init__(self, req_ids: _Optional[int] = ..., result: _Optional[int] = ...) -> None: ...
|
|
468
|
+
|
|
469
|
+
class WifiIotStatusReport(_message.Message):
|
|
470
|
+
__slots__ = ["devicename", "iot_connected", "productkey", "wifi_connected"]
|
|
471
|
+
DEVICENAME_FIELD_NUMBER: _ClassVar[int]
|
|
472
|
+
IOT_CONNECTED_FIELD_NUMBER: _ClassVar[int]
|
|
473
|
+
PRODUCTKEY_FIELD_NUMBER: _ClassVar[int]
|
|
474
|
+
WIFI_CONNECTED_FIELD_NUMBER: _ClassVar[int]
|
|
475
|
+
devicename: str
|
|
476
|
+
iot_connected: bool
|
|
477
|
+
productkey: str
|
|
478
|
+
wifi_connected: bool
|
|
479
|
+
def __init__(self, wifi_connected: bool = ..., iot_connected: bool = ..., productkey: _Optional[str] = ..., devicename: _Optional[str] = ...) -> None: ...
|
|
480
|
+
|
|
481
|
+
class mnet_inet_status(_message.Message):
|
|
482
|
+
__slots__ = ["connect", "gateway", "ip", "mask"]
|
|
483
|
+
CONNECT_FIELD_NUMBER: _ClassVar[int]
|
|
484
|
+
GATEWAY_FIELD_NUMBER: _ClassVar[int]
|
|
485
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
486
|
+
MASK_FIELD_NUMBER: _ClassVar[int]
|
|
487
|
+
connect: bool
|
|
488
|
+
gateway: int
|
|
489
|
+
ip: int
|
|
490
|
+
mask: int
|
|
491
|
+
def __init__(self, connect: bool = ..., ip: _Optional[int] = ..., mask: _Optional[int] = ..., gateway: _Optional[int] = ...) -> None: ...
|
|
492
|
+
|
|
493
|
+
class WifiConfType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
494
|
+
__slots__ = []
|
|
495
|
+
|
|
496
|
+
class DrvUploadFileFileType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
497
|
+
__slots__ = []
|
|
498
|
+
|
|
499
|
+
class DrvDevInfoResult(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
500
|
+
__slots__ = []
|
|
501
|
+
|
|
502
|
+
class sim_card_sta(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
503
|
+
__slots__ = []
|
|
504
|
+
|
|
505
|
+
class mnet_link_type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
506
|
+
__slots__ = []
|
|
507
|
+
|
|
508
|
+
class apn_auth_type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
509
|
+
__slots__ = []
|
|
510
|
+
|
|
511
|
+
class net_type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
512
|
+
__slots__ = []
|
|
513
|
+
|
|
514
|
+
class iot_conctrl_type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
515
|
+
__slots__ = []
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "pymammotion/proto/basestation.proto";
|
|
4
|
+
import "pymammotion/proto/mctrl_driver.proto";
|
|
5
|
+
import "pymammotion/proto/mctrl_nav.proto";
|
|
6
|
+
import "pymammotion/proto/mctrl_sys.proto";
|
|
7
|
+
import "pymammotion/proto/dev_net.proto";
|
|
8
|
+
import "pymammotion/proto/mctrl_ota.proto";
|
|
9
|
+
import "pymammotion/proto/luba_mul.proto";
|
|
10
|
+
import "pymammotion/proto/mctrl_pept.proto";
|
|
11
|
+
|
|
12
|
+
message MsgNull {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message LubaMsg {
|
|
16
|
+
MsgCmdType msgtype = 1;
|
|
17
|
+
MsgDevice sender = 2;
|
|
18
|
+
MsgDevice rcver = 3;
|
|
19
|
+
MsgAttr msgattr = 4;
|
|
20
|
+
int32 seqs = 5;
|
|
21
|
+
int32 version = 6;
|
|
22
|
+
int32 subtype = 7;
|
|
23
|
+
oneof LubaSubMsg {
|
|
24
|
+
DevNet net = 8;
|
|
25
|
+
MctlSys sys = 10;
|
|
26
|
+
MctlNav nav = 11;
|
|
27
|
+
MctlDriver driver = 12;
|
|
28
|
+
MctlOta ota = 13;
|
|
29
|
+
SocMul mul = 14;
|
|
30
|
+
MsgNull null = 16;
|
|
31
|
+
MctlPept pept = 17;
|
|
32
|
+
BaseStation base = 18;
|
|
33
|
+
}
|
|
34
|
+
uint64 timestamp = 15;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
enum MsgCmdType {
|
|
38
|
+
MSG_CMD_TYPE_START = 0;
|
|
39
|
+
MSG_CMD_TYPE_NAV = 240;
|
|
40
|
+
MSG_CMD_TYPE_LOCALIZATION = 241;
|
|
41
|
+
MSG_CMD_TYPE_PLANNING = 242;
|
|
42
|
+
MSG_CMD_TYPE_EMBED_DRIVER = 243;
|
|
43
|
+
MSG_CMD_TYPE_EMBED_SYS = 244;
|
|
44
|
+
MSG_CMD_TYPE_EMBED_MIDWARE = 245;
|
|
45
|
+
MSG_CMD_TYPE_EMBED_OTA = 246;
|
|
46
|
+
MSG_CMD_TYPE_APPLICATION = 247;
|
|
47
|
+
MSG_CMD_TYPE_ESP = 248;
|
|
48
|
+
MSG_CMD_TYPE_MUL = 249;
|
|
49
|
+
MSG_CMD_TYPE_PEPT = 250;
|
|
50
|
+
MSG_CMD_TYPE_BASESTATION = 251;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
enum MsgAttr {
|
|
54
|
+
MSG_ATTR_NONE = 0;
|
|
55
|
+
MSG_ATTR_REQ = 1;
|
|
56
|
+
MSG_ATTR_RESP = 2;
|
|
57
|
+
MSG_ATTR_REPORT = 3;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
enum MsgDevice {
|
|
61
|
+
DEV_COMM_ESP = 0;
|
|
62
|
+
DEV_MAINCTL = 1;
|
|
63
|
+
DEV_LEFTMOTOR = 2;
|
|
64
|
+
DEV_RIGHTMOTOR = 3;
|
|
65
|
+
DEV_BASESTATION = 4;
|
|
66
|
+
DEV_RTKCLI = 5;
|
|
67
|
+
DEV_USBHOST = 6;
|
|
68
|
+
DEV_MOBILEAPP = 7;
|
|
69
|
+
DEV_IOTSERVER = 8;
|
|
70
|
+
DEV_BMS = 9;
|
|
71
|
+
DEV_NAVIGATION = 17;
|
|
72
|
+
DEV_LOCALIZATION = 18;
|
|
73
|
+
DEV_PERCEPTION = 19;
|
|
74
|
+
SOC_MODULE_MULTIMEDIA = 21;
|
|
75
|
+
DEV_IOTCTRL = 29;
|
|
76
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: pymammotion/proto/luba_msg.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from pymammotion.proto import basestation_pb2 as pymammotion_dot_proto_dot_basestation__pb2
|
|
15
|
+
from pymammotion.proto import mctrl_driver_pb2 as pymammotion_dot_proto_dot_mctrl__driver__pb2
|
|
16
|
+
from pymammotion.proto import mctrl_nav_pb2 as pymammotion_dot_proto_dot_mctrl__nav__pb2
|
|
17
|
+
from pymammotion.proto import mctrl_sys_pb2 as pymammotion_dot_proto_dot_mctrl__sys__pb2
|
|
18
|
+
from pymammotion.proto import dev_net_pb2 as pymammotion_dot_proto_dot_dev__net__pb2
|
|
19
|
+
from pymammotion.proto import mctrl_ota_pb2 as pymammotion_dot_proto_dot_mctrl__ota__pb2
|
|
20
|
+
from pymammotion.proto import luba_mul_pb2 as pymammotion_dot_proto_dot_luba__mul__pb2
|
|
21
|
+
from pymammotion.proto import mctrl_pept_pb2 as pymammotion_dot_proto_dot_mctrl__pept__pb2
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n pymammotion/proto/luba_msg.proto\x1a#pymammotion/proto/basestation.proto\x1a$pymammotion/proto/mctrl_driver.proto\x1a!pymammotion/proto/mctrl_nav.proto\x1a!pymammotion/proto/mctrl_sys.proto\x1a\x1fpymammotion/proto/dev_net.proto\x1a!pymammotion/proto/mctrl_ota.proto\x1a pymammotion/proto/luba_mul.proto\x1a\"pymammotion/proto/mctrl_pept.proto\"\t\n\x07MsgNull\"\xb7\x03\n\x07LubaMsg\x12\x1c\n\x07msgtype\x18\x01 \x01(\x0e\x32\x0b.MsgCmdType\x12\x1a\n\x06sender\x18\x02 \x01(\x0e\x32\n.MsgDevice\x12\x19\n\x05rcver\x18\x03 \x01(\x0e\x32\n.MsgDevice\x12\x19\n\x07msgattr\x18\x04 \x01(\x0e\x32\x08.MsgAttr\x12\x0c\n\x04seqs\x18\x05 \x01(\x05\x12\x0f\n\x07version\x18\x06 \x01(\x05\x12\x0f\n\x07subtype\x18\x07 \x01(\x05\x12\x16\n\x03net\x18\x08 \x01(\x0b\x32\x07.DevNetH\x00\x12\x17\n\x03sys\x18\n \x01(\x0b\x32\x08.MctlSysH\x00\x12\x17\n\x03nav\x18\x0b \x01(\x0b\x32\x08.MctlNavH\x00\x12\x1d\n\x06\x64river\x18\x0c \x01(\x0b\x32\x0b.MctlDriverH\x00\x12\x17\n\x03ota\x18\r \x01(\x0b\x32\x08.MctlOtaH\x00\x12\x16\n\x03mul\x18\x0e \x01(\x0b\x32\x07.SocMulH\x00\x12\x18\n\x04null\x18\x10 \x01(\x0b\x32\x08.MsgNullH\x00\x12\x19\n\x04pept\x18\x11 \x01(\x0b\x32\t.MctlPeptH\x00\x12\x1c\n\x04\x62\x61se\x18\x12 \x01(\x0b\x32\x0c.BaseStationH\x00\x12\x11\n\ttimestamp\x18\x0f \x01(\x04\x42\x0c\n\nLubaSubMsg*\xf6\x02\n\nMsgCmdType\x12\x16\n\x12MSG_CMD_TYPE_START\x10\x00\x12\x15\n\x10MSG_CMD_TYPE_NAV\x10\xf0\x01\x12\x1e\n\x19MSG_CMD_TYPE_LOCALIZATION\x10\xf1\x01\x12\x1a\n\x15MSG_CMD_TYPE_PLANNING\x10\xf2\x01\x12\x1e\n\x19MSG_CMD_TYPE_EMBED_DRIVER\x10\xf3\x01\x12\x1b\n\x16MSG_CMD_TYPE_EMBED_SYS\x10\xf4\x01\x12\x1f\n\x1aMSG_CMD_TYPE_EMBED_MIDWARE\x10\xf5\x01\x12\x1b\n\x16MSG_CMD_TYPE_EMBED_OTA\x10\xf6\x01\x12\x1d\n\x18MSG_CMD_TYPE_APPLICATION\x10\xf7\x01\x12\x15\n\x10MSG_CMD_TYPE_ESP\x10\xf8\x01\x12\x15\n\x10MSG_CMD_TYPE_MUL\x10\xf9\x01\x12\x16\n\x11MSG_CMD_TYPE_PEPT\x10\xfa\x01\x12\x1d\n\x18MSG_CMD_TYPE_BASESTATION\x10\xfb\x01*V\n\x07MsgAttr\x12\x11\n\rMSG_ATTR_NONE\x10\x00\x12\x10\n\x0cMSG_ATTR_REQ\x10\x01\x12\x11\n\rMSG_ATTR_RESP\x10\x02\x12\x13\n\x0fMSG_ATTR_REPORT\x10\x03*\xa8\x02\n\tMsgDevice\x12\x10\n\x0c\x44\x45V_COMM_ESP\x10\x00\x12\x0f\n\x0b\x44\x45V_MAINCTL\x10\x01\x12\x11\n\rDEV_LEFTMOTOR\x10\x02\x12\x12\n\x0e\x44\x45V_RIGHTMOTOR\x10\x03\x12\x13\n\x0f\x44\x45V_BASESTATION\x10\x04\x12\x0e\n\nDEV_RTKCLI\x10\x05\x12\x0f\n\x0b\x44\x45V_USBHOST\x10\x06\x12\x11\n\rDEV_MOBILEAPP\x10\x07\x12\x11\n\rDEV_IOTSERVER\x10\x08\x12\x0b\n\x07\x44\x45V_BMS\x10\t\x12\x12\n\x0e\x44\x45V_NAVIGATION\x10\x11\x12\x14\n\x10\x44\x45V_LOCALIZATION\x10\x12\x12\x12\n\x0e\x44\x45V_PERCEPTION\x10\x13\x12\x19\n\x15SOC_MODULE_MULTIMEDIA\x10\x15\x12\x0f\n\x0b\x44\x45V_IOTCTRL\x10\x1d\x62\x06proto3')
|
|
25
|
+
|
|
26
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
27
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pymammotion.proto.luba_msg_pb2', globals())
|
|
28
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR._options = None
|
|
31
|
+
_MSGCMDTYPE._serialized_start=773
|
|
32
|
+
_MSGCMDTYPE._serialized_end=1147
|
|
33
|
+
_MSGATTR._serialized_start=1149
|
|
34
|
+
_MSGATTR._serialized_end=1235
|
|
35
|
+
_MSGDEVICE._serialized_start=1238
|
|
36
|
+
_MSGDEVICE._serialized_end=1534
|
|
37
|
+
_MSGNULL._serialized_start=319
|
|
38
|
+
_MSGNULL._serialized_end=328
|
|
39
|
+
_LUBAMSG._serialized_start=331
|
|
40
|
+
_LUBAMSG._serialized_end=770
|
|
41
|
+
# @@protoc_insertion_point(module_scope)
|