pymammotion 0.4.0a2__py3-none-any.whl → 0.5.51__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.
Potentially problematic release.
This version of pymammotion might be problematic. Click here for more details.
- pymammotion/__init__.py +5 -4
- pymammotion/aliyun/client.py +235 -0
- pymammotion/aliyun/cloud_gateway.py +312 -64
- pymammotion/aliyun/model/aep_response.py +1 -2
- pymammotion/aliyun/model/dev_by_account_response.py +170 -23
- pymammotion/aliyun/model/login_by_oauth_response.py +2 -3
- pymammotion/aliyun/model/regions_response.py +3 -3
- pymammotion/aliyun/model/session_by_authcode_response.py +2 -2
- pymammotion/aliyun/model/thing_response.py +12 -0
- pymammotion/aliyun/regions.py +62 -0
- pymammotion/aliyun/tea/core.py +297 -0
- pymammotion/bluetooth/ble.py +7 -9
- pymammotion/bluetooth/ble_message.py +10 -14
- pymammotion/const.py +3 -0
- pymammotion/data/model/__init__.py +1 -2
- pymammotion/data/model/device.py +95 -27
- pymammotion/data/model/device_config.py +4 -4
- pymammotion/data/model/device_info.py +35 -0
- pymammotion/data/model/device_limits.py +10 -10
- pymammotion/data/model/enums.py +12 -2
- pymammotion/data/model/errors.py +12 -0
- pymammotion/data/model/events.py +14 -0
- pymammotion/data/model/generate_geojson.py +521 -0
- pymammotion/data/model/generate_route_information.py +2 -2
- pymammotion/data/model/hash_list.py +370 -57
- pymammotion/data/model/location.py +4 -4
- pymammotion/data/model/mowing_modes.py +17 -1
- pymammotion/data/model/raw_data.py +2 -10
- pymammotion/data/model/region_data.py +10 -11
- pymammotion/data/model/report_info.py +31 -5
- pymammotion/data/model/work.py +27 -0
- pymammotion/data/mower_state_manager.py +316 -0
- pymammotion/data/mqtt/event.py +73 -28
- pymammotion/data/mqtt/mammotion_properties.py +257 -0
- pymammotion/data/mqtt/properties.py +93 -78
- pymammotion/data/mqtt/status.py +18 -17
- pymammotion/event/event.py +27 -6
- pymammotion/homeassistant/__init__.py +3 -0
- pymammotion/homeassistant/mower_api.py +484 -0
- pymammotion/homeassistant/rtk_api.py +54 -0
- pymammotion/http/encryption.py +5 -6
- pymammotion/http/http.py +574 -28
- pymammotion/http/model/__init__.py +0 -0
- pymammotion/{aliyun/model/stream_subscription_response.py → http/model/camera_stream.py} +14 -2
- pymammotion/http/model/http.py +129 -4
- pymammotion/http/model/response_factory.py +61 -0
- pymammotion/http/model/rtk.py +16 -0
- pymammotion/mammotion/commands/abstract_message.py +7 -5
- pymammotion/mammotion/commands/mammotion_command.py +30 -1
- pymammotion/mammotion/commands/messages/basestation.py +43 -0
- pymammotion/mammotion/commands/messages/driver.py +61 -29
- pymammotion/mammotion/commands/messages/media.py +68 -15
- pymammotion/mammotion/commands/messages/navigation.py +61 -25
- pymammotion/mammotion/commands/messages/network.py +17 -23
- pymammotion/mammotion/commands/messages/ota.py +18 -18
- pymammotion/mammotion/commands/messages/system.py +32 -49
- pymammotion/mammotion/commands/messages/video.py +15 -16
- pymammotion/mammotion/devices/__init__.py +27 -3
- pymammotion/mammotion/devices/base.py +40 -131
- pymammotion/mammotion/devices/mammotion.py +436 -201
- pymammotion/mammotion/devices/mammotion_bluetooth.py +57 -47
- pymammotion/mammotion/devices/mammotion_cloud.py +134 -105
- pymammotion/mammotion/devices/mammotion_mower_ble.py +49 -0
- pymammotion/mammotion/devices/mammotion_mower_cloud.py +39 -0
- pymammotion/mammotion/devices/managers/managers.py +81 -0
- pymammotion/mammotion/devices/mower_device.py +124 -0
- pymammotion/mammotion/devices/mower_manager.py +107 -0
- pymammotion/mammotion/devices/rtk_ble.py +89 -0
- pymammotion/mammotion/devices/rtk_cloud.py +113 -0
- pymammotion/mammotion/devices/rtk_device.py +50 -0
- pymammotion/mammotion/devices/rtk_manager.py +122 -0
- pymammotion/mqtt/__init__.py +2 -1
- pymammotion/mqtt/aliyun_mqtt.py +232 -0
- pymammotion/mqtt/linkkit/__init__.py +5 -0
- pymammotion/mqtt/linkkit/h2client.py +585 -0
- pymammotion/mqtt/linkkit/linkkit.py +3023 -0
- pymammotion/mqtt/mammotion_mqtt.py +176 -169
- pymammotion/mqtt/mqtt_models.py +66 -0
- pymammotion/proto/__init__.py +4839 -4
- pymammotion/proto/basestation.proto +8 -0
- pymammotion/proto/basestation_pb2.py +11 -9
- pymammotion/proto/basestation_pb2.pyi +16 -2
- pymammotion/proto/dev_net.proto +79 -55
- pymammotion/proto/dev_net_pb2.py +60 -56
- pymammotion/proto/dev_net_pb2.pyi +49 -6
- pymammotion/proto/luba_msg.proto +2 -1
- pymammotion/proto/luba_msg_pb2.py +6 -6
- pymammotion/proto/luba_msg_pb2.pyi +1 -0
- pymammotion/proto/luba_mul.proto +62 -1
- pymammotion/proto/luba_mul_pb2.py +38 -22
- pymammotion/proto/luba_mul_pb2.pyi +94 -7
- pymammotion/proto/mctrl_driver.proto +44 -4
- pymammotion/proto/mctrl_driver_pb2.py +26 -14
- pymammotion/proto/mctrl_driver_pb2.pyi +66 -11
- pymammotion/proto/mctrl_nav.proto +93 -52
- pymammotion/proto/mctrl_nav_pb2.py +75 -67
- pymammotion/proto/mctrl_nav_pb2.pyi +142 -56
- pymammotion/proto/mctrl_ota.proto +40 -2
- pymammotion/proto/mctrl_ota_pb2.py +23 -13
- pymammotion/proto/mctrl_ota_pb2.pyi +67 -4
- pymammotion/proto/mctrl_pept.proto +8 -3
- pymammotion/proto/mctrl_pept_pb2.py +8 -6
- pymammotion/proto/mctrl_pept_pb2.pyi +14 -6
- pymammotion/proto/mctrl_sys.proto +325 -86
- pymammotion/proto/mctrl_sys_pb2.py +162 -98
- pymammotion/proto/mctrl_sys_pb2.pyi +451 -25
- pymammotion/proto/message_pool.py +3 -0
- pymammotion/proto/py.typed +0 -0
- pymammotion/utility/constant/device_constant.py +29 -5
- pymammotion/utility/datatype_converter.py +13 -12
- pymammotion/utility/device_config.py +522 -130
- pymammotion/utility/device_type.py +218 -21
- pymammotion/utility/map.py +238 -51
- pymammotion/utility/mur_mur_hash.py +159 -0
- {pymammotion-0.4.0a2.dist-info → pymammotion-0.5.51.dist-info}/METADATA +26 -31
- pymammotion-0.5.51.dist-info/RECORD +152 -0
- {pymammotion-0.4.0a2.dist-info → pymammotion-0.5.51.dist-info}/WHEEL +1 -1
- pymammotion/aliyun/cloud_service.py +0 -65
- pymammotion/data/model/plan.py +0 -58
- pymammotion/data/state_manager.py +0 -129
- pymammotion/proto/basestation.py +0 -59
- pymammotion/proto/common.py +0 -12
- pymammotion/proto/dev_net.py +0 -381
- pymammotion/proto/luba_msg.py +0 -81
- pymammotion/proto/luba_mul.py +0 -76
- pymammotion/proto/mctrl_driver.py +0 -100
- pymammotion/proto/mctrl_nav.py +0 -664
- pymammotion/proto/mctrl_ota.py +0 -48
- pymammotion/proto/mctrl_pept.py +0 -41
- pymammotion/proto/mctrl_sys.py +0 -574
- pymammotion-0.4.0a2.dist-info/RECORD +0 -131
- /pymammotion/http/{_init_.py → __init__.py} +0 -0
- {pymammotion-0.4.0a2.dist-info → pymammotion-0.5.51.dist-info/licenses}/LICENSE +0 -0
|
@@ -4,6 +4,13 @@ message request_basestation_info_t {
|
|
|
4
4
|
uint32 request_type = 1;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
message base_score {
|
|
8
|
+
uint32 base_score = 1;
|
|
9
|
+
uint32 base_leve = 2;
|
|
10
|
+
uint32 base_moved = 3;
|
|
11
|
+
uint32 base_moving = 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
7
14
|
message response_basestation_info_t {
|
|
8
15
|
uint64 system_status = 1;
|
|
9
16
|
uint32 app_connect_type = 2;
|
|
@@ -19,6 +26,7 @@ message response_basestation_info_t {
|
|
|
19
26
|
int32 mqtt_rtk_status = 12;
|
|
20
27
|
int32 rtk_channel = 13;
|
|
21
28
|
int32 rtk_switch = 14;
|
|
29
|
+
base_score score_info = 15;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
message app_to_base_mqtt_rtk_t {
|
|
@@ -13,7 +13,7 @@ _sym_db = _symbol_database.Default()
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#pymammotion/proto/basestation.proto\"2\n\x1arequest_basestation_info_t\x12\x14\n\x0crequest_type\x18\x01 \x01(\r\"\
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#pymammotion/proto/basestation.proto\"2\n\x1arequest_basestation_info_t\x12\x14\n\x0crequest_type\x18\x01 \x01(\r\"\\\n\nbase_score\x12\x12\n\nbase_score\x18\x01 \x01(\r\x12\x11\n\tbase_leve\x18\x02 \x01(\r\x12\x12\n\nbase_moved\x18\x03 \x01(\r\x12\x13\n\x0b\x62\x61se_moving\x18\x04 \x01(\r\"\xe6\x02\n\x1bresponse_basestation_info_t\x12\x15\n\rsystem_status\x18\x01 \x01(\x04\x12\x18\n\x10\x61pp_connect_type\x18\x02 \x01(\r\x12\x10\n\x08\x62le_rssi\x18\x03 \x01(\x05\x12\x11\n\twifi_rssi\x18\x04 \x01(\x05\x12\x10\n\x08sats_num\x18\x05 \x01(\x04\x12\x11\n\tlora_scan\x18\x06 \x01(\x03\x12\x14\n\x0clora_channel\x18\x07 \x01(\x03\x12\x12\n\nlora_locid\x18\x08 \x01(\x03\x12\x12\n\nlora_netid\x18\t \x01(\x03\x12\x12\n\nrtk_status\x18\n \x01(\x04\x12\x17\n\x0flowpower_status\x18\x0b \x01(\x05\x12\x17\n\x0fmqtt_rtk_status\x18\x0c \x01(\x05\x12\x13\n\x0brtk_channel\x18\r \x01(\x05\x12\x12\n\nrtk_switch\x18\x0e \x01(\x05\x12\x1f\n\nscore_info\x18\x0f \x01(\x0b\x32\x0b.base_score\"{\n\x16\x61pp_to_base_mqtt_rtk_t\x12\x12\n\nrtk_switch\x18\x01 \x01(\x05\x12\x0f\n\x07rtk_url\x18\x02 \x01(\t\x12\x10\n\x08rtk_port\x18\x03 \x01(\x05\x12\x14\n\x0crtk_username\x18\x04 \x01(\t\x12\x14\n\x0crtk_password\x18\x05 \x01(\t\"3\n\x16\x62\x61se_to_app_mqtt_rtk_t\x12\x19\n\x11rtk_switch_status\x18\x01 \x01(\x05\"\xfc\x01\n\x0b\x42\x61seStation\x12-\n\x06to_dev\x18\x01 \x01(\x0b\x32\x1b.request_basestation_info_tH\x00\x12.\n\x06to_app\x18\x02 \x01(\x0b\x32\x1c.response_basestation_info_tH\x00\x12;\n\x18\x61pp_to_base_mqtt_rtk_msg\x18\x03 \x01(\x0b\x32\x17.app_to_base_mqtt_rtk_tH\x00\x12;\n\x18\x62\x61se_to_app_mqtt_rtk_msg\x18\x04 \x01(\x0b\x32\x17.base_to_app_mqtt_rtk_tH\x00\x42\x14\n\x12\x42\x61seStationSubTypeb\x06proto3')
|
|
17
17
|
|
|
18
18
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
19
19
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pymammotion.proto.basestation_pb2', globals())
|
|
@@ -22,12 +22,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
22
22
|
DESCRIPTOR._options = None
|
|
23
23
|
_REQUEST_BASESTATION_INFO_T._serialized_start=39
|
|
24
24
|
_REQUEST_BASESTATION_INFO_T._serialized_end=89
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
_BASE_SCORE._serialized_start=91
|
|
26
|
+
_BASE_SCORE._serialized_end=183
|
|
27
|
+
_RESPONSE_BASESTATION_INFO_T._serialized_start=186
|
|
28
|
+
_RESPONSE_BASESTATION_INFO_T._serialized_end=544
|
|
29
|
+
_APP_TO_BASE_MQTT_RTK_T._serialized_start=546
|
|
30
|
+
_APP_TO_BASE_MQTT_RTK_T._serialized_end=669
|
|
31
|
+
_BASE_TO_APP_MQTT_RTK_T._serialized_start=671
|
|
32
|
+
_BASE_TO_APP_MQTT_RTK_T._serialized_end=722
|
|
33
|
+
_BASESTATION._serialized_start=725
|
|
34
|
+
_BASESTATION._serialized_end=977
|
|
33
35
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -30,6 +30,18 @@ class app_to_base_mqtt_rtk_t(_message.Message):
|
|
|
30
30
|
rtk_username: str
|
|
31
31
|
def __init__(self, rtk_switch: _Optional[int] = ..., rtk_url: _Optional[str] = ..., rtk_port: _Optional[int] = ..., rtk_username: _Optional[str] = ..., rtk_password: _Optional[str] = ...) -> None: ...
|
|
32
32
|
|
|
33
|
+
class base_score(_message.Message):
|
|
34
|
+
__slots__ = ["base_leve", "base_moved", "base_moving", "base_score"]
|
|
35
|
+
BASE_LEVE_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
BASE_MOVED_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
BASE_MOVING_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
BASE_SCORE_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
base_leve: int
|
|
40
|
+
base_moved: int
|
|
41
|
+
base_moving: int
|
|
42
|
+
base_score: int
|
|
43
|
+
def __init__(self, base_score: _Optional[int] = ..., base_leve: _Optional[int] = ..., base_moved: _Optional[int] = ..., base_moving: _Optional[int] = ...) -> None: ...
|
|
44
|
+
|
|
33
45
|
class base_to_app_mqtt_rtk_t(_message.Message):
|
|
34
46
|
__slots__ = ["rtk_switch_status"]
|
|
35
47
|
RTK_SWITCH_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -43,7 +55,7 @@ class request_basestation_info_t(_message.Message):
|
|
|
43
55
|
def __init__(self, request_type: _Optional[int] = ...) -> None: ...
|
|
44
56
|
|
|
45
57
|
class response_basestation_info_t(_message.Message):
|
|
46
|
-
__slots__ = ["app_connect_type", "ble_rssi", "lora_channel", "lora_locid", "lora_netid", "lora_scan", "lowpower_status", "mqtt_rtk_status", "rtk_channel", "rtk_status", "rtk_switch", "sats_num", "system_status", "wifi_rssi"]
|
|
58
|
+
__slots__ = ["app_connect_type", "ble_rssi", "lora_channel", "lora_locid", "lora_netid", "lora_scan", "lowpower_status", "mqtt_rtk_status", "rtk_channel", "rtk_status", "rtk_switch", "sats_num", "score_info", "system_status", "wifi_rssi"]
|
|
47
59
|
APP_CONNECT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
48
60
|
BLE_RSSI_FIELD_NUMBER: _ClassVar[int]
|
|
49
61
|
LORA_CHANNEL_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -56,6 +68,7 @@ class response_basestation_info_t(_message.Message):
|
|
|
56
68
|
RTK_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
57
69
|
RTK_SWITCH_FIELD_NUMBER: _ClassVar[int]
|
|
58
70
|
SATS_NUM_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
SCORE_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
59
72
|
SYSTEM_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
60
73
|
WIFI_RSSI_FIELD_NUMBER: _ClassVar[int]
|
|
61
74
|
app_connect_type: int
|
|
@@ -70,6 +83,7 @@ class response_basestation_info_t(_message.Message):
|
|
|
70
83
|
rtk_status: int
|
|
71
84
|
rtk_switch: int
|
|
72
85
|
sats_num: int
|
|
86
|
+
score_info: base_score
|
|
73
87
|
system_status: int
|
|
74
88
|
wifi_rssi: int
|
|
75
|
-
def __init__(self, system_status: _Optional[int] = ..., app_connect_type: _Optional[int] = ..., ble_rssi: _Optional[int] = ..., wifi_rssi: _Optional[int] = ..., sats_num: _Optional[int] = ..., lora_scan: _Optional[int] = ..., lora_channel: _Optional[int] = ..., lora_locid: _Optional[int] = ..., lora_netid: _Optional[int] = ..., rtk_status: _Optional[int] = ..., lowpower_status: _Optional[int] = ..., mqtt_rtk_status: _Optional[int] = ..., rtk_channel: _Optional[int] = ..., rtk_switch: _Optional[int] = ...) -> None: ...
|
|
89
|
+
def __init__(self, system_status: _Optional[int] = ..., app_connect_type: _Optional[int] = ..., ble_rssi: _Optional[int] = ..., wifi_rssi: _Optional[int] = ..., sats_num: _Optional[int] = ..., lora_scan: _Optional[int] = ..., lora_channel: _Optional[int] = ..., lora_locid: _Optional[int] = ..., lora_netid: _Optional[int] = ..., rtk_status: _Optional[int] = ..., lowpower_status: _Optional[int] = ..., mqtt_rtk_status: _Optional[int] = ..., rtk_channel: _Optional[int] = ..., rtk_switch: _Optional[int] = ..., score_info: _Optional[_Union[base_score, _Mapping]] = ...) -> None: ...
|
pymammotion/proto/dev_net.proto
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
+
enum WifiConfType {
|
|
4
|
+
DisconnectWifi = 0;
|
|
5
|
+
ForgetWifi = 1;
|
|
6
|
+
DirectConnectWifi = 2;
|
|
7
|
+
ReconnectWifi = 3;
|
|
8
|
+
set_enable = 4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
enum DrvUploadFileFileType {
|
|
12
|
+
FILE_TYPE_ALL = 0;
|
|
13
|
+
FILE_TYPE_SYSLOG = 1;
|
|
14
|
+
FILE_TYPE_NAVLOG = 2;
|
|
15
|
+
FILE_TYPE_RTKLOG = 3;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
enum DrvDevInfoResult {
|
|
19
|
+
DRV_RESULT_FAIL = 0;
|
|
20
|
+
DRV_RESULT_SUC = 1;
|
|
21
|
+
DRV_RESULT_NOTSUP = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enum sim_card_sta {
|
|
25
|
+
SIM_NONE = 0;
|
|
26
|
+
SIM_NO_CARD = 1;
|
|
27
|
+
SIM_INVALID = 2;
|
|
28
|
+
SIM_INPUT_PIN = 3;
|
|
29
|
+
SIM_INPUT_PUK = 4;
|
|
30
|
+
SIM_OK = 5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
enum mnet_link_type {
|
|
34
|
+
MNET_LINK_NONE = 0;
|
|
35
|
+
MNET_LINK_2G = 1;
|
|
36
|
+
MNET_LINK_3G = 2;
|
|
37
|
+
MNET_LINK_4G = 3;
|
|
38
|
+
MNET_LINK_5G = 4;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
enum apn_auth_type {
|
|
42
|
+
APN_AUTH_NONE = 0;
|
|
43
|
+
APN_AUTH_PAP = 1;
|
|
44
|
+
APN_AUTH_CHAP = 2;
|
|
45
|
+
APN_AUTH_PAP_CHAP = 3;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
enum net_type {
|
|
49
|
+
NET_TYPE_WIFI = 0;
|
|
50
|
+
NET_TYPE_MNET = 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
enum iot_conctrl_type {
|
|
54
|
+
IOT_TYPE_OFFLINE = 0;
|
|
55
|
+
IOT_TYPE_ONLINE = 1;
|
|
56
|
+
IOT_TYPE_RESET = 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
3
59
|
message DrvWifiUpload {
|
|
4
60
|
int32 wifi_msg_upload = 1;
|
|
5
61
|
}
|
|
@@ -95,6 +151,7 @@ message DrvUpgradeReport {
|
|
|
95
151
|
int32 result = 5;
|
|
96
152
|
string message = 6;
|
|
97
153
|
string properties = 7;
|
|
154
|
+
int32 recv_cnt = 8;
|
|
98
155
|
}
|
|
99
156
|
|
|
100
157
|
message WifiIotStatusReport {
|
|
@@ -139,6 +196,8 @@ message MnetInfo {
|
|
|
139
196
|
mnet_link_type link_type = 6;
|
|
140
197
|
int32 rssi = 7;
|
|
141
198
|
mnet_inet_status inet = 8;
|
|
199
|
+
string iccid = 9;
|
|
200
|
+
string operator = 10;
|
|
142
201
|
}
|
|
143
202
|
|
|
144
203
|
message GetMnetInfoReq {
|
|
@@ -208,6 +267,24 @@ message SetDrvBleMTU {
|
|
|
208
267
|
int32 mtu_count = 1;
|
|
209
268
|
}
|
|
210
269
|
|
|
270
|
+
message BleSignatureReq {
|
|
271
|
+
string signature_data = 1;
|
|
272
|
+
string random_data = 2;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
message BleLogUploadUpdateProgress {
|
|
276
|
+
int32 ver = 1;
|
|
277
|
+
int32 status = 2;
|
|
278
|
+
string bizId = 3;
|
|
279
|
+
int32 prog = 4;
|
|
280
|
+
int32 subProg = 5;
|
|
281
|
+
int32 fNum = 6;
|
|
282
|
+
int32 speed = 7;
|
|
283
|
+
int32 fIdx = 8;
|
|
284
|
+
string fPath = 9;
|
|
285
|
+
int32 fSize = 10;
|
|
286
|
+
}
|
|
287
|
+
|
|
211
288
|
message DevNet {
|
|
212
289
|
oneof NetSubType {
|
|
213
290
|
int32 todev_ble_sync = 1;
|
|
@@ -238,60 +315,7 @@ message DevNet {
|
|
|
238
315
|
DrvDebugDdsZmq todev_set_dds2zmq = 26;
|
|
239
316
|
SetDrvBleMTU todev_set_ble_mtu = 27;
|
|
240
317
|
iot_conctrl_type todev_set_iot_offline_req = 28;
|
|
318
|
+
BleSignatureReq todev_verify_signature_req = 29;
|
|
319
|
+
BleLogUploadUpdateProgress toapp_log_upload_update_progress = 30;
|
|
241
320
|
}
|
|
242
321
|
}
|
|
243
|
-
|
|
244
|
-
enum WifiConfType {
|
|
245
|
-
DisconnectWifi = 0;
|
|
246
|
-
ForgetWifi = 1;
|
|
247
|
-
DirectConnectWifi = 2;
|
|
248
|
-
ReconnectWifi = 3;
|
|
249
|
-
set_enable = 4;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
enum DrvUploadFileFileType {
|
|
253
|
-
FILE_TYPE_ALL = 0;
|
|
254
|
-
FILE_TYPE_SYSLOG = 1;
|
|
255
|
-
FILE_TYPE_NAVLOG = 2;
|
|
256
|
-
FILE_TYPE_RTKLOG = 3;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
enum DrvDevInfoResult {
|
|
260
|
-
DRV_RESULT_FAIL = 0;
|
|
261
|
-
DRV_RESULT_SUC = 1;
|
|
262
|
-
DRV_RESULT_NOTSUP = 2;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
enum sim_card_sta {
|
|
266
|
-
SIM_NONE = 0;
|
|
267
|
-
SIM_NO_CARD = 1;
|
|
268
|
-
SIM_INVALID = 2;
|
|
269
|
-
SIM_INPUT_PIN = 3;
|
|
270
|
-
SIM_INPUT_PUK = 4;
|
|
271
|
-
SIM_OK = 5;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
enum mnet_link_type {
|
|
275
|
-
MNET_LINK_NONE = 0;
|
|
276
|
-
MNET_LINK_2G = 1;
|
|
277
|
-
MNET_LINK_3G = 2;
|
|
278
|
-
MNET_LINK_4G = 3;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
enum apn_auth_type {
|
|
282
|
-
APN_AUTH_NONE = 0;
|
|
283
|
-
APN_AUTH_PAP = 1;
|
|
284
|
-
APN_AUTH_CHAP = 2;
|
|
285
|
-
APN_AUTH_PAP_CHAP = 3;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
enum net_type {
|
|
289
|
-
NET_TYPE_WIFI = 0;
|
|
290
|
-
NET_TYPE_MNET = 1;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
enum iot_conctrl_type {
|
|
294
|
-
IOT_TYPE_OFFLINE = 0;
|
|
295
|
-
IOT_TYPE_ONLINE = 1;
|
|
296
|
-
IOT_TYPE_RESET = 2;
|
|
297
|
-
}
|
pymammotion/proto/dev_net_pb2.py
CHANGED
|
@@ -13,29 +13,29 @@ _sym_db = _symbol_database.Default()
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fpymammotion/proto/dev_net.proto\"(\n\rDrvWifiUpload\x12\x17\n\x0fwifi_msg_upload\x18\x01 \x01(\x05\"&\n\x0b\x44rvWifiList\x12\x17\n\x0fnvs_wifi_upload\x18\x01 \x01(\x05\"H\n\nDrvWifiSet\x12\x13\n\x0b\x63onfigParam\x18\x01 \x01(\x05\x12\x10\n\x08\x43onfssid\x18\x02 \x01(\t\x12\x13\n\x0bwifi_enable\x18\x03 \x01(\x08\"\xa8\x01\n\nDrvWifiMsg\x12\x0f\n\x07status1\x18\x01 \x01(\x08\x12\x0f\n\x07status2\x18\x02 \x01(\x08\x12\n\n\x02ip\x18\x03 \x01(\t\x12\x0f\n\x07msgssid\x18\x04 \x01(\t\x12\x10\n\x08password\x18\x05 \x01(\t\x12\x0c\n\x04rssi\x18\x06 \x01(\x05\x12\x12\n\nproductkey\x18\x07 \x01(\t\x12\x12\n\ndevicename\x18\x08 \x01(\t\x12\x13\n\x0bwifi_enable\x18\t \x01(\x08\"?\n\x0b\x44rvWifiConf\x12\x10\n\x08succFlag\x18\x01 \x01(\x08\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x05\x12\x10\n\x08\x43onfssid\x18\x03 \x01(\t\"\\\n\rDrvListUpload\x12\x0b\n\x03sum\x18\x01 \x01(\x05\x12\x0f\n\x07\x63urrent\x18\x02 \x01(\x05\x12\x0e\n\x06status\x18\x03 \x01(\x05\x12\x0f\n\x07Memssid\x18\x04 \x01(\t\x12\x0c\n\x04rssi\x18\x05 \x01(\x05\"Y\n\x10\x44rvUploadFileReq\x12\r\n\x05\x62izId\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0e\n\x06userId\x18\x03 \x01(\t\x12\x0b\n\x03num\x18\x04 \x01(\x05\x12\x0c\n\x04type\x18\x05 \x01(\x05\"$\n\x13\x44rvUploadFileCancel\x12\r\n\x05\x62izId\x18\x01 \x01(\t\"z\n\x15\x44rvUploadFileToAppReq\x12\r\n\x05\x62izId\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\x05\x12\x10\n\x08serverIp\x18\x03 \x01(\x07\x12\x12\n\nserverPort\x18\x04 \x01(\x05\x12\x0b\n\x03num\x18\x05 \x01(\x05\x12\x0c\n\x04type\x18\x06 \x01(\x05\"I\n\x15\x44rvUploadFileToAppRsp\x12\r\n\x05\x62izId\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\x05\x12\x0e\n\x06result\x18\x03 \x01(\x05\"+\n\x0f\x44rvDevInfoReqId\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\x05\"Z\n\x10\x44rvDevInfoRespId\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\x05\x12\x1e\n\x03res\x18\x03 \x01(\x0e\x32\x11.DrvDevInfoResult\x12\x0c\n\x04info\x18\x04 \x01(\t\"2\n\rDrvDevInfoReq\x12!\n\x07req_ids\x18\x01 \x03(\x0b\x32\x10.DrvDevInfoReqId\"5\n\x0e\x44rvDevInfoResp\x12#\n\x08resp_ids\x18\x01 \x03(\x0b\x32\x11.DrvDevInfoRespId\"\
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fpymammotion/proto/dev_net.proto\"(\n\rDrvWifiUpload\x12\x17\n\x0fwifi_msg_upload\x18\x01 \x01(\x05\"&\n\x0b\x44rvWifiList\x12\x17\n\x0fnvs_wifi_upload\x18\x01 \x01(\x05\"H\n\nDrvWifiSet\x12\x13\n\x0b\x63onfigParam\x18\x01 \x01(\x05\x12\x10\n\x08\x43onfssid\x18\x02 \x01(\t\x12\x13\n\x0bwifi_enable\x18\x03 \x01(\x08\"\xa8\x01\n\nDrvWifiMsg\x12\x0f\n\x07status1\x18\x01 \x01(\x08\x12\x0f\n\x07status2\x18\x02 \x01(\x08\x12\n\n\x02ip\x18\x03 \x01(\t\x12\x0f\n\x07msgssid\x18\x04 \x01(\t\x12\x10\n\x08password\x18\x05 \x01(\t\x12\x0c\n\x04rssi\x18\x06 \x01(\x05\x12\x12\n\nproductkey\x18\x07 \x01(\t\x12\x12\n\ndevicename\x18\x08 \x01(\t\x12\x13\n\x0bwifi_enable\x18\t \x01(\x08\"?\n\x0b\x44rvWifiConf\x12\x10\n\x08succFlag\x18\x01 \x01(\x08\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x05\x12\x10\n\x08\x43onfssid\x18\x03 \x01(\t\"\\\n\rDrvListUpload\x12\x0b\n\x03sum\x18\x01 \x01(\x05\x12\x0f\n\x07\x63urrent\x18\x02 \x01(\x05\x12\x0e\n\x06status\x18\x03 \x01(\x05\x12\x0f\n\x07Memssid\x18\x04 \x01(\t\x12\x0c\n\x04rssi\x18\x05 \x01(\x05\"Y\n\x10\x44rvUploadFileReq\x12\r\n\x05\x62izId\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0e\n\x06userId\x18\x03 \x01(\t\x12\x0b\n\x03num\x18\x04 \x01(\x05\x12\x0c\n\x04type\x18\x05 \x01(\x05\"$\n\x13\x44rvUploadFileCancel\x12\r\n\x05\x62izId\x18\x01 \x01(\t\"z\n\x15\x44rvUploadFileToAppReq\x12\r\n\x05\x62izId\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\x05\x12\x10\n\x08serverIp\x18\x03 \x01(\x07\x12\x12\n\nserverPort\x18\x04 \x01(\x05\x12\x0b\n\x03num\x18\x05 \x01(\x05\x12\x0c\n\x04type\x18\x06 \x01(\x05\"I\n\x15\x44rvUploadFileToAppRsp\x12\r\n\x05\x62izId\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\x05\x12\x0e\n\x06result\x18\x03 \x01(\x05\"+\n\x0f\x44rvDevInfoReqId\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\x05\"Z\n\x10\x44rvDevInfoRespId\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04type\x18\x02 \x01(\x05\x12\x1e\n\x03res\x18\x03 \x01(\x0e\x32\x11.DrvDevInfoResult\x12\x0c\n\x04info\x18\x04 \x01(\t\"2\n\rDrvDevInfoReq\x12!\n\x07req_ids\x18\x01 \x03(\x0b\x32\x10.DrvDevInfoReqId\"5\n\x0e\x44rvDevInfoResp\x12#\n\x08resp_ids\x18\x01 \x03(\x0b\x32\x11.DrvDevInfoRespId\"\x9c\x01\n\x10\x44rvUpgradeReport\x12\x0f\n\x07\x64\x65vname\x18\x01 \x01(\t\x12\r\n\x05otaid\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x10\n\x08progress\x18\x04 \x01(\x05\x12\x0e\n\x06result\x18\x05 \x01(\x05\x12\x0f\n\x07message\x18\x06 \x01(\t\x12\x12\n\nproperties\x18\x07 \x01(\t\x12\x10\n\x08recv_cnt\x18\x08 \x01(\x05\"l\n\x13WifiIotStatusReport\x12\x16\n\x0ewifi_connected\x18\x01 \x01(\x08\x12\x15\n\riot_connected\x18\x02 \x01(\x08\x12\x12\n\nproductkey\x18\x03 \x01(\t\x12\x12\n\ndevicename\x18\x04 \x01(\t\"*\n\x0c\x42leTestBytes\x12\x0c\n\x04seqs\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\x07\"$\n\x11GetNetworkInfoReq\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\"\x87\x01\n\x11GetNetworkInfoRsp\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\x12\x11\n\twifi_ssid\x18\x02 \x01(\t\x12\x10\n\x08wifi_mac\x18\x03 \x01(\t\x12\x11\n\twifi_rssi\x18\x04 \x01(\x05\x12\n\n\x02ip\x18\x05 \x01(\x07\x12\x0c\n\x04mask\x18\x06 \x01(\x07\x12\x0f\n\x07gateway\x18\x07 \x01(\x07\"N\n\x10mnet_inet_status\x12\x0f\n\x07\x63onnect\x18\x01 \x01(\x08\x12\n\n\x02ip\x18\x02 \x01(\x07\x12\x0c\n\x04mask\x18\x03 \x01(\x07\x12\x0f\n\x07gateway\x18\x04 \x01(\x07\"\xd7\x01\n\x08MnetInfo\x12\r\n\x05model\x18\x01 \x01(\t\x12\x10\n\x08revision\x18\x02 \x01(\t\x12\x0c\n\x04imei\x18\x03 \x01(\t\x12\x1a\n\x03sim\x18\x04 \x01(\x0e\x32\r.sim_card_sta\x12\x0c\n\x04imsi\x18\x05 \x01(\t\x12\"\n\tlink_type\x18\x06 \x01(\x0e\x32\x0f.mnet_link_type\x12\x0c\n\x04rssi\x18\x07 \x01(\x05\x12\x1f\n\x04inet\x18\x08 \x01(\x0b\x32\x11.mnet_inet_status\x12\r\n\x05iccid\x18\t \x01(\t\x12\x10\n\x08operator\x18\n \x01(\t\"!\n\x0eGetMnetInfoReq\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\"J\n\x0eGetMnetInfoRsp\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x01(\x05\x12\x17\n\x04mnet\x18\x03 \x01(\x0b\x32\t.MnetInfo\"}\n\x07MnetApn\x12\x0b\n\x03\x63id\x18\x01 \x01(\x05\x12\x11\n\tapn_alias\x18\x02 \x01(\t\x12\x10\n\x08\x61pn_name\x18\x03 \x01(\t\x12\x1c\n\x04\x61uth\x18\x04 \x01(\x0e\x32\x0e.apn_auth_type\x12\x10\n\x08username\x18\x05 \x01(\t\x12\x10\n\x08password\x18\x06 \x01(\t\"9\n\nMnetApnCfg\x12\x14\n\x0c\x61pn_used_idx\x18\x01 \x01(\x05\x12\x15\n\x03\x61pn\x18\x02 \x03(\x0b\x32\x08.MnetApn\">\n\rMnetApnSetCfg\x12\x13\n\x0buse_default\x18\x01 \x01(\x08\x12\x18\n\x03\x63\x66g\x18\x02 \x01(\x0b\x32\x0b.MnetApnCfg\"~\n\x07MnetCfg\x12\x13\n\x0bmnet_enable\x18\x01 \x01(\x08\x12\x13\n\x0binet_enable\x18\x02 \x01(\x08\x12\x17\n\x04type\x18\x03 \x01(\x0e\x32\t.net_type\x12\x1b\n\x03\x61pn\x18\x04 \x01(\x0b\x32\x0e.MnetApnSetCfg\x12\x13\n\x0b\x61uto_select\x18\x05 \x01(\x08\" \n\rGetMnetCfgReq\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\"G\n\rGetMnetCfgRsp\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x01(\x05\x12\x15\n\x03\x63\x66g\x18\x03 \x01(\x0b\x32\x08.MnetCfg\"7\n\rSetMnetCfgReq\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\x12\x15\n\x03\x63\x66g\x18\x02 \x01(\x0b\x32\x08.MnetCfg\"0\n\rSetMnetCfgRsp\x12\x0f\n\x07req_ids\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x01(\x05\"N\n\x0e\x44rvDebugDdsZmq\x12\x11\n\tis_enable\x18\x01 \x01(\x08\x12\x15\n\rrx_topic_name\x18\x02 \x01(\t\x12\x12\n\ntx_zmq_url\x18\x03 \x01(\t\"!\n\x0cSetDrvBleMTU\x12\x11\n\tmtu_count\x18\x01 \x01(\x05\">\n\x0f\x42leSignatureReq\x12\x16\n\x0esignature_data\x18\x01 \x01(\t\x12\x13\n\x0brandom_data\x18\x02 \x01(\t\"\xb0\x01\n\x1a\x42leLogUploadUpdateProgress\x12\x0b\n\x03ver\x18\x01 \x01(\x05\x12\x0e\n\x06status\x18\x02 \x01(\x05\x12\r\n\x05\x62izId\x18\x03 \x01(\t\x12\x0c\n\x04prog\x18\x04 \x01(\x05\x12\x0f\n\x07subProg\x18\x05 \x01(\x05\x12\x0c\n\x04\x66Num\x18\x06 \x01(\x05\x12\r\n\x05speed\x18\x07 \x01(\x05\x12\x0c\n\x04\x66Idx\x18\x08 \x01(\x05\x12\r\n\x05\x66Path\x18\t \x01(\t\x12\r\n\x05\x66Size\x18\n \x01(\x05\"\xcb\x0b\n\x06\x44\x65vNet\x12\x18\n\x0etodev_ble_sync\x18\x01 \x01(\x05H\x00\x12\'\n\x0etodev_ConfType\x18\x02 \x01(\x0e\x32\r.WifiConfTypeH\x00\x12-\n\x13todev_WifiMsgUpload\x18\x03 \x01(\x0b\x32\x0e.DrvWifiUploadH\x00\x12,\n\x14todev_WifiListUpload\x18\x04 \x01(\x0b\x32\x0c.DrvWifiListH\x00\x12/\n\x18todev_Wifi_Configuration\x18\x05 \x01(\x0b\x32\x0b.DrvWifiSetH\x00\x12$\n\rtoapp_WifiMsg\x18\x06 \x01(\x0b\x32\x0b.DrvWifiMsgH\x00\x12&\n\x0etoapp_WifiConf\x18\x07 \x01(\x0b\x32\x0c.DrvWifiConfH\x00\x12*\n\x10toapp_ListUpload\x18\x08 \x01(\x0b\x32\x0e.DrvListUploadH\x00\x12/\n\x12todev_req_log_info\x18\t \x01(\x0b\x32\x11.DrvUploadFileReqH\x00\x12\x35\n\x15todev_log_data_cancel\x18\n \x01(\x0b\x32\x14.DrvUploadFileCancelH\x00\x12+\n\x11todev_devinfo_req\x18\x0b \x01(\x0b\x32\x0e.DrvDevInfoReqH\x00\x12-\n\x12toapp_devinfo_resp\x18\x0c \x01(\x0b\x32\x0f.DrvDevInfoRespH\x00\x12\x31\n\x14toapp_upgrade_report\x18\r \x01(\x0b\x32\x11.DrvUpgradeReportH\x00\x12\x35\n\x15toapp_wifi_iot_status\x18\x0e \x01(\x0b\x32\x14.WifiIotStatusReportH\x00\x12\x36\n\x14todev_uploadfile_req\x18\x0f \x01(\x0b\x32\x16.DrvUploadFileToAppReqH\x00\x12\x36\n\x14toapp_uploadfile_rsp\x18\x10 \x01(\x0b\x32\x16.DrvUploadFileToAppRspH\x00\x12\x33\n\x15todev_networkinfo_req\x18\x11 \x01(\x0b\x32\x12.GetNetworkInfoReqH\x00\x12\x33\n\x15toapp_networkinfo_rsp\x18\x12 \x01(\x0b\x32\x12.GetNetworkInfoRspH\x00\x12%\n\x0c\x62ir_testdata\x18\x13 \x01(\x0b\x32\r.BleTestBytesH\x00\x12.\n\x13todev_mnet_info_req\x18\x14 \x01(\x0b\x32\x0f.GetMnetInfoReqH\x00\x12.\n\x13toapp_mnet_info_rsp\x18\x15 \x01(\x0b\x32\x0f.GetMnetInfoRspH\x00\x12\x30\n\x16todev_get_mnet_cfg_req\x18\x16 \x01(\x0b\x32\x0e.GetMnetCfgReqH\x00\x12\x30\n\x16toapp_get_mnet_cfg_rsp\x18\x17 \x01(\x0b\x32\x0e.GetMnetCfgRspH\x00\x12\x30\n\x16todev_set_mnet_cfg_req\x18\x18 \x01(\x0b\x32\x0e.SetMnetCfgReqH\x00\x12\x30\n\x16toapp_set_mnet_cfg_rsp\x18\x19 \x01(\x0b\x32\x0e.SetMnetCfgRspH\x00\x12,\n\x11todev_set_dds2zmq\x18\x1a \x01(\x0b\x32\x0f.DrvDebugDdsZmqH\x00\x12*\n\x11todev_set_ble_mtu\x18\x1b \x01(\x0b\x32\r.SetDrvBleMTUH\x00\x12\x36\n\x19todev_set_iot_offline_req\x18\x1c \x01(\x0e\x32\x11.iot_conctrl_typeH\x00\x12\x36\n\x1atodev_verify_signature_req\x18\x1d \x01(\x0b\x32\x10.BleSignatureReqH\x00\x12G\n toapp_log_upload_update_progress\x18\x1e \x01(\x0b\x32\x1b.BleLogUploadUpdateProgressH\x00\x42\x0c\n\nNetSubType*l\n\x0cWifiConfType\x12\x12\n\x0e\x44isconnectWifi\x10\x00\x12\x0e\n\nForgetWifi\x10\x01\x12\x15\n\x11\x44irectConnectWifi\x10\x02\x12\x11\n\rReconnectWifi\x10\x03\x12\x0e\n\nset_enable\x10\x04*l\n\x15\x44rvUploadFileFileType\x12\x11\n\rFILE_TYPE_ALL\x10\x00\x12\x14\n\x10\x46ILE_TYPE_SYSLOG\x10\x01\x12\x14\n\x10\x46ILE_TYPE_NAVLOG\x10\x02\x12\x14\n\x10\x46ILE_TYPE_RTKLOG\x10\x03*R\n\x10\x44rvDevInfoResult\x12\x13\n\x0f\x44RV_RESULT_FAIL\x10\x00\x12\x12\n\x0e\x44RV_RESULT_SUC\x10\x01\x12\x15\n\x11\x44RV_RESULT_NOTSUP\x10\x02*p\n\x0csim_card_sta\x12\x0c\n\x08SIM_NONE\x10\x00\x12\x0f\n\x0bSIM_NO_CARD\x10\x01\x12\x0f\n\x0bSIM_INVALID\x10\x02\x12\x11\n\rSIM_INPUT_PIN\x10\x03\x12\x11\n\rSIM_INPUT_PUK\x10\x04\x12\n\n\x06SIM_OK\x10\x05*l\n\x0emnet_link_type\x12\x12\n\x0eMNET_LINK_NONE\x10\x00\x12\x10\n\x0cMNET_LINK_2G\x10\x01\x12\x10\n\x0cMNET_LINK_3G\x10\x02\x12\x10\n\x0cMNET_LINK_4G\x10\x03\x12\x10\n\x0cMNET_LINK_5G\x10\x04*^\n\rapn_auth_type\x12\x11\n\rAPN_AUTH_NONE\x10\x00\x12\x10\n\x0c\x41PN_AUTH_PAP\x10\x01\x12\x11\n\rAPN_AUTH_CHAP\x10\x02\x12\x15\n\x11\x41PN_AUTH_PAP_CHAP\x10\x03*0\n\x08net_type\x12\x11\n\rNET_TYPE_WIFI\x10\x00\x12\x11\n\rNET_TYPE_MNET\x10\x01*Q\n\x10iot_conctrl_type\x12\x14\n\x10IOT_TYPE_OFFLINE\x10\x00\x12\x13\n\x0fIOT_TYPE_ONLINE\x10\x01\x12\x12\n\x0eIOT_TYPE_RESET\x10\x02\x62\x06proto3')
|
|
17
17
|
|
|
18
18
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
19
19
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pymammotion.proto.dev_net_pb2', globals())
|
|
20
20
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
21
21
|
|
|
22
22
|
DESCRIPTOR._options = None
|
|
23
|
-
_WIFICONFTYPE._serialized_start=
|
|
24
|
-
_WIFICONFTYPE._serialized_end=
|
|
25
|
-
_DRVUPLOADFILEFILETYPE._serialized_start=
|
|
26
|
-
_DRVUPLOADFILEFILETYPE._serialized_end=
|
|
27
|
-
_DRVDEVINFORESULT._serialized_start=
|
|
28
|
-
_DRVDEVINFORESULT._serialized_end=
|
|
29
|
-
_SIM_CARD_STA._serialized_start=
|
|
30
|
-
_SIM_CARD_STA._serialized_end=
|
|
31
|
-
_MNET_LINK_TYPE._serialized_start=
|
|
32
|
-
_MNET_LINK_TYPE._serialized_end=
|
|
33
|
-
_APN_AUTH_TYPE._serialized_start=
|
|
34
|
-
_APN_AUTH_TYPE._serialized_end=
|
|
35
|
-
_NET_TYPE._serialized_start=
|
|
36
|
-
_NET_TYPE._serialized_end=
|
|
37
|
-
_IOT_CONCTRL_TYPE._serialized_start=
|
|
38
|
-
_IOT_CONCTRL_TYPE._serialized_end=
|
|
23
|
+
_WIFICONFTYPE._serialized_start=4427
|
|
24
|
+
_WIFICONFTYPE._serialized_end=4535
|
|
25
|
+
_DRVUPLOADFILEFILETYPE._serialized_start=4537
|
|
26
|
+
_DRVUPLOADFILEFILETYPE._serialized_end=4645
|
|
27
|
+
_DRVDEVINFORESULT._serialized_start=4647
|
|
28
|
+
_DRVDEVINFORESULT._serialized_end=4729
|
|
29
|
+
_SIM_CARD_STA._serialized_start=4731
|
|
30
|
+
_SIM_CARD_STA._serialized_end=4843
|
|
31
|
+
_MNET_LINK_TYPE._serialized_start=4845
|
|
32
|
+
_MNET_LINK_TYPE._serialized_end=4953
|
|
33
|
+
_APN_AUTH_TYPE._serialized_start=4955
|
|
34
|
+
_APN_AUTH_TYPE._serialized_end=5049
|
|
35
|
+
_NET_TYPE._serialized_start=5051
|
|
36
|
+
_NET_TYPE._serialized_end=5099
|
|
37
|
+
_IOT_CONCTRL_TYPE._serialized_start=5101
|
|
38
|
+
_IOT_CONCTRL_TYPE._serialized_end=5182
|
|
39
39
|
_DRVWIFIUPLOAD._serialized_start=35
|
|
40
40
|
_DRVWIFIUPLOAD._serialized_end=75
|
|
41
41
|
_DRVWIFILIST._serialized_start=77
|
|
@@ -65,43 +65,47 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
65
65
|
_DRVDEVINFORESP._serialized_start=1038
|
|
66
66
|
_DRVDEVINFORESP._serialized_end=1091
|
|
67
67
|
_DRVUPGRADEREPORT._serialized_start=1094
|
|
68
|
-
_DRVUPGRADEREPORT._serialized_end=
|
|
69
|
-
_WIFIIOTSTATUSREPORT._serialized_start=
|
|
70
|
-
_WIFIIOTSTATUSREPORT._serialized_end=
|
|
71
|
-
_BLETESTBYTES._serialized_start=
|
|
72
|
-
_BLETESTBYTES._serialized_end=
|
|
73
|
-
_GETNETWORKINFOREQ._serialized_start=
|
|
74
|
-
_GETNETWORKINFOREQ._serialized_end=
|
|
75
|
-
_GETNETWORKINFORSP._serialized_start=
|
|
76
|
-
_GETNETWORKINFORSP._serialized_end=
|
|
77
|
-
_MNET_INET_STATUS._serialized_start=
|
|
78
|
-
_MNET_INET_STATUS._serialized_end=
|
|
79
|
-
_MNETINFO._serialized_start=
|
|
80
|
-
_MNETINFO._serialized_end=
|
|
81
|
-
_GETMNETINFOREQ._serialized_start=
|
|
82
|
-
_GETMNETINFOREQ._serialized_end=
|
|
83
|
-
_GETMNETINFORSP._serialized_start=
|
|
84
|
-
_GETMNETINFORSP._serialized_end=
|
|
85
|
-
_MNETAPN._serialized_start=
|
|
86
|
-
_MNETAPN._serialized_end=
|
|
87
|
-
_MNETAPNCFG._serialized_start=
|
|
88
|
-
_MNETAPNCFG._serialized_end=
|
|
89
|
-
_MNETAPNSETCFG._serialized_start=
|
|
90
|
-
_MNETAPNSETCFG._serialized_end=
|
|
91
|
-
_MNETCFG._serialized_start=
|
|
92
|
-
_MNETCFG._serialized_end=
|
|
93
|
-
_GETMNETCFGREQ._serialized_start=
|
|
94
|
-
_GETMNETCFGREQ._serialized_end=
|
|
95
|
-
_GETMNETCFGRSP._serialized_start=
|
|
96
|
-
_GETMNETCFGRSP._serialized_end=
|
|
97
|
-
_SETMNETCFGREQ._serialized_start=
|
|
98
|
-
_SETMNETCFGREQ._serialized_end=
|
|
99
|
-
_SETMNETCFGRSP._serialized_start=
|
|
100
|
-
_SETMNETCFGRSP._serialized_end=
|
|
101
|
-
_DRVDEBUGDDSZMQ._serialized_start=
|
|
102
|
-
_DRVDEBUGDDSZMQ._serialized_end=
|
|
103
|
-
_SETDRVBLEMTU._serialized_start=
|
|
104
|
-
_SETDRVBLEMTU._serialized_end=
|
|
105
|
-
|
|
106
|
-
|
|
68
|
+
_DRVUPGRADEREPORT._serialized_end=1250
|
|
69
|
+
_WIFIIOTSTATUSREPORT._serialized_start=1252
|
|
70
|
+
_WIFIIOTSTATUSREPORT._serialized_end=1360
|
|
71
|
+
_BLETESTBYTES._serialized_start=1362
|
|
72
|
+
_BLETESTBYTES._serialized_end=1404
|
|
73
|
+
_GETNETWORKINFOREQ._serialized_start=1406
|
|
74
|
+
_GETNETWORKINFOREQ._serialized_end=1442
|
|
75
|
+
_GETNETWORKINFORSP._serialized_start=1445
|
|
76
|
+
_GETNETWORKINFORSP._serialized_end=1580
|
|
77
|
+
_MNET_INET_STATUS._serialized_start=1582
|
|
78
|
+
_MNET_INET_STATUS._serialized_end=1660
|
|
79
|
+
_MNETINFO._serialized_start=1663
|
|
80
|
+
_MNETINFO._serialized_end=1878
|
|
81
|
+
_GETMNETINFOREQ._serialized_start=1880
|
|
82
|
+
_GETMNETINFOREQ._serialized_end=1913
|
|
83
|
+
_GETMNETINFORSP._serialized_start=1915
|
|
84
|
+
_GETMNETINFORSP._serialized_end=1989
|
|
85
|
+
_MNETAPN._serialized_start=1991
|
|
86
|
+
_MNETAPN._serialized_end=2116
|
|
87
|
+
_MNETAPNCFG._serialized_start=2118
|
|
88
|
+
_MNETAPNCFG._serialized_end=2175
|
|
89
|
+
_MNETAPNSETCFG._serialized_start=2177
|
|
90
|
+
_MNETAPNSETCFG._serialized_end=2239
|
|
91
|
+
_MNETCFG._serialized_start=2241
|
|
92
|
+
_MNETCFG._serialized_end=2367
|
|
93
|
+
_GETMNETCFGREQ._serialized_start=2369
|
|
94
|
+
_GETMNETCFGREQ._serialized_end=2401
|
|
95
|
+
_GETMNETCFGRSP._serialized_start=2403
|
|
96
|
+
_GETMNETCFGRSP._serialized_end=2474
|
|
97
|
+
_SETMNETCFGREQ._serialized_start=2476
|
|
98
|
+
_SETMNETCFGREQ._serialized_end=2531
|
|
99
|
+
_SETMNETCFGRSP._serialized_start=2533
|
|
100
|
+
_SETMNETCFGRSP._serialized_end=2581
|
|
101
|
+
_DRVDEBUGDDSZMQ._serialized_start=2583
|
|
102
|
+
_DRVDEBUGDDSZMQ._serialized_end=2661
|
|
103
|
+
_SETDRVBLEMTU._serialized_start=2663
|
|
104
|
+
_SETDRVBLEMTU._serialized_end=2696
|
|
105
|
+
_BLESIGNATUREREQ._serialized_start=2698
|
|
106
|
+
_BLESIGNATUREREQ._serialized_end=2760
|
|
107
|
+
_BLELOGUPLOADUPDATEPROGRESS._serialized_start=2763
|
|
108
|
+
_BLELOGUPLOADUPDATEPROGRESS._serialized_end=2939
|
|
109
|
+
_DEVNET._serialized_start=2942
|
|
110
|
+
_DEVNET._serialized_end=4425
|
|
107
111
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -25,6 +25,7 @@ IOT_TYPE_RESET: iot_conctrl_type
|
|
|
25
25
|
MNET_LINK_2G: mnet_link_type
|
|
26
26
|
MNET_LINK_3G: mnet_link_type
|
|
27
27
|
MNET_LINK_4G: mnet_link_type
|
|
28
|
+
MNET_LINK_5G: mnet_link_type
|
|
28
29
|
MNET_LINK_NONE: mnet_link_type
|
|
29
30
|
NET_TYPE_MNET: net_type
|
|
30
31
|
NET_TYPE_WIFI: net_type
|
|
@@ -37,6 +38,38 @@ SIM_NO_CARD: sim_card_sta
|
|
|
37
38
|
SIM_OK: sim_card_sta
|
|
38
39
|
set_enable: WifiConfType
|
|
39
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
|
+
|
|
40
73
|
class BleTestBytes(_message.Message):
|
|
41
74
|
__slots__ = ["data", "seqs"]
|
|
42
75
|
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -46,11 +79,12 @@ class BleTestBytes(_message.Message):
|
|
|
46
79
|
def __init__(self, seqs: _Optional[int] = ..., data: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
47
80
|
|
|
48
81
|
class DevNet(_message.Message):
|
|
49
|
-
__slots__ = ["bir_testdata", "toapp_ListUpload", "toapp_WifiConf", "toapp_WifiMsg", "toapp_devinfo_resp", "toapp_get_mnet_cfg_rsp", "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"]
|
|
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"]
|
|
50
83
|
BIR_TESTDATA_FIELD_NUMBER: _ClassVar[int]
|
|
51
84
|
TOAPP_DEVINFO_RESP_FIELD_NUMBER: _ClassVar[int]
|
|
52
85
|
TOAPP_GET_MNET_CFG_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
53
86
|
TOAPP_LISTUPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
TOAPP_LOG_UPLOAD_UPDATE_PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
54
88
|
TOAPP_MNET_INFO_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
55
89
|
TOAPP_NETWORKINFO_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
56
90
|
TOAPP_SET_MNET_CFG_RSP_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -72,6 +106,7 @@ class DevNet(_message.Message):
|
|
|
72
106
|
TODEV_SET_IOT_OFFLINE_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
73
107
|
TODEV_SET_MNET_CFG_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
74
108
|
TODEV_UPLOADFILE_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
TODEV_VERIFY_SIGNATURE_REQ_FIELD_NUMBER: _ClassVar[int]
|
|
75
110
|
TODEV_WIFILISTUPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
76
111
|
TODEV_WIFIMSGUPLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
77
112
|
TODEV_WIFI_CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -81,6 +116,7 @@ class DevNet(_message.Message):
|
|
|
81
116
|
toapp_WifiMsg: DrvWifiMsg
|
|
82
117
|
toapp_devinfo_resp: DrvDevInfoResp
|
|
83
118
|
toapp_get_mnet_cfg_rsp: GetMnetCfgRsp
|
|
119
|
+
toapp_log_upload_update_progress: BleLogUploadUpdateProgress
|
|
84
120
|
toapp_mnet_info_rsp: GetMnetInfoRsp
|
|
85
121
|
toapp_networkinfo_rsp: GetNetworkInfoRsp
|
|
86
122
|
toapp_set_mnet_cfg_rsp: SetMnetCfgRsp
|
|
@@ -103,7 +139,8 @@ class DevNet(_message.Message):
|
|
|
103
139
|
todev_set_iot_offline_req: iot_conctrl_type
|
|
104
140
|
todev_set_mnet_cfg_req: SetMnetCfgReq
|
|
105
141
|
todev_uploadfile_req: DrvUploadFileToAppReq
|
|
106
|
-
|
|
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: ...
|
|
107
144
|
|
|
108
145
|
class DrvDebugDdsZmq(_message.Message):
|
|
109
146
|
__slots__ = ["is_enable", "rx_topic_name", "tx_zmq_url"]
|
|
@@ -162,12 +199,13 @@ class DrvListUpload(_message.Message):
|
|
|
162
199
|
def __init__(self, sum: _Optional[int] = ..., current: _Optional[int] = ..., status: _Optional[int] = ..., Memssid: _Optional[str] = ..., rssi: _Optional[int] = ...) -> None: ...
|
|
163
200
|
|
|
164
201
|
class DrvUpgradeReport(_message.Message):
|
|
165
|
-
__slots__ = ["devname", "message", "otaid", "progress", "properties", "result", "version"]
|
|
202
|
+
__slots__ = ["devname", "message", "otaid", "progress", "properties", "recv_cnt", "result", "version"]
|
|
166
203
|
DEVNAME_FIELD_NUMBER: _ClassVar[int]
|
|
167
204
|
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
168
205
|
OTAID_FIELD_NUMBER: _ClassVar[int]
|
|
169
206
|
PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
170
207
|
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
|
208
|
+
RECV_CNT_FIELD_NUMBER: _ClassVar[int]
|
|
171
209
|
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
172
210
|
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
173
211
|
devname: str
|
|
@@ -175,9 +213,10 @@ class DrvUpgradeReport(_message.Message):
|
|
|
175
213
|
otaid: str
|
|
176
214
|
progress: int
|
|
177
215
|
properties: str
|
|
216
|
+
recv_cnt: int
|
|
178
217
|
result: int
|
|
179
218
|
version: str
|
|
180
|
-
def __init__(self, devname: _Optional[str] = ..., otaid: _Optional[str] = ..., version: _Optional[str] = ..., progress: _Optional[int] = ..., result: _Optional[int] = ..., message: _Optional[str] = ..., properties: _Optional[str] = ...) -> None: ...
|
|
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: ...
|
|
181
220
|
|
|
182
221
|
class DrvUploadFileCancel(_message.Message):
|
|
183
222
|
__slots__ = ["bizId"]
|
|
@@ -382,24 +421,28 @@ class MnetCfg(_message.Message):
|
|
|
382
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: ...
|
|
383
422
|
|
|
384
423
|
class MnetInfo(_message.Message):
|
|
385
|
-
__slots__ = ["imei", "imsi", "inet", "link_type", "model", "revision", "rssi", "sim"]
|
|
424
|
+
__slots__ = ["iccid", "imei", "imsi", "inet", "link_type", "model", "operator", "revision", "rssi", "sim"]
|
|
425
|
+
ICCID_FIELD_NUMBER: _ClassVar[int]
|
|
386
426
|
IMEI_FIELD_NUMBER: _ClassVar[int]
|
|
387
427
|
IMSI_FIELD_NUMBER: _ClassVar[int]
|
|
388
428
|
INET_FIELD_NUMBER: _ClassVar[int]
|
|
389
429
|
LINK_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
390
430
|
MODEL_FIELD_NUMBER: _ClassVar[int]
|
|
431
|
+
OPERATOR_FIELD_NUMBER: _ClassVar[int]
|
|
391
432
|
REVISION_FIELD_NUMBER: _ClassVar[int]
|
|
392
433
|
RSSI_FIELD_NUMBER: _ClassVar[int]
|
|
393
434
|
SIM_FIELD_NUMBER: _ClassVar[int]
|
|
435
|
+
iccid: str
|
|
394
436
|
imei: str
|
|
395
437
|
imsi: str
|
|
396
438
|
inet: mnet_inet_status
|
|
397
439
|
link_type: mnet_link_type
|
|
398
440
|
model: str
|
|
441
|
+
operator: str
|
|
399
442
|
revision: str
|
|
400
443
|
rssi: int
|
|
401
444
|
sim: sim_card_sta
|
|
402
|
-
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]] = ...) -> None: ...
|
|
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: ...
|
|
403
446
|
|
|
404
447
|
class SetDrvBleMTU(_message.Message):
|
|
405
448
|
__slots__ = ["mtu_count"]
|
pymammotion/proto/luba_msg.proto
CHANGED
|
@@ -47,6 +47,7 @@ enum MsgCmdType {
|
|
|
47
47
|
MSG_CMD_TYPE_ESP = 248;
|
|
48
48
|
MSG_CMD_TYPE_MUL = 249;
|
|
49
49
|
MSG_CMD_TYPE_PEPT = 250;
|
|
50
|
+
MSG_CMD_TYPE_BASESTATION = 251;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
enum MsgAttr {
|
|
@@ -71,5 +72,5 @@ enum MsgDevice {
|
|
|
71
72
|
DEV_LOCALIZATION = 18;
|
|
72
73
|
DEV_PERCEPTION = 19;
|
|
73
74
|
SOC_MODULE_MULTIMEDIA = 21;
|
|
74
|
-
DEV_IOTCTRL =
|
|
75
|
+
DEV_IOTCTRL = 29;
|
|
75
76
|
}
|
|
@@ -21,7 +21,7 @@ from pymammotion.proto import luba_mul_pb2 as pymammotion_dot_proto_dot_luba__mu
|
|
|
21
21
|
from pymammotion.proto import mctrl_pept_pb2 as pymammotion_dot_proto_dot_mctrl__pept__pb2
|
|
22
22
|
|
|
23
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*\
|
|
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
25
|
|
|
26
26
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
27
27
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pymammotion.proto.luba_msg_pb2', globals())
|
|
@@ -29,11 +29,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
29
29
|
|
|
30
30
|
DESCRIPTOR._options = None
|
|
31
31
|
_MSGCMDTYPE._serialized_start=773
|
|
32
|
-
_MSGCMDTYPE._serialized_end=
|
|
33
|
-
_MSGATTR._serialized_start=
|
|
34
|
-
_MSGATTR._serialized_end=
|
|
35
|
-
_MSGDEVICE._serialized_start=
|
|
36
|
-
_MSGDEVICE._serialized_end=
|
|
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
37
|
_MSGNULL._serialized_start=319
|
|
38
38
|
_MSGNULL._serialized_end=328
|
|
39
39
|
_LUBAMSG._serialized_start=331
|