pymammotion 0.4.44__py3-none-any.whl → 0.4.45__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 +2 -1
- pymammotion/aliyun/cloud_gateway.py +6 -3
- pymammotion/mammotion/devices/base.py +4 -0
- pymammotion/mammotion/devices/mammotion.py +13 -7
- pymammotion/mammotion/devices/mammotion_bluetooth.py +2 -0
- pymammotion/mammotion/devices/mammotion_cloud.py +2 -0
- pymammotion/mqtt/mammotion_mqtt.py +0 -2
- 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 +5 -0
- pymammotion/proto/luba_mul_pb2.py +19 -17
- pymammotion/proto/luba_mul_pb2.pyi +10 -2
- pymammotion/proto/mctrl_driver.proto +21 -0
- pymammotion/proto/mctrl_driver_pb2.py +20 -14
- pymammotion/proto/mctrl_driver_pb2.pyi +31 -4
- pymammotion/proto/mctrl_nav.proto +74 -50
- pymammotion/proto/mctrl_nav_pb2.py +73 -69
- pymammotion/proto/mctrl_nav_pb2.pyi +104 -58
- 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 +2 -2
- pymammotion/proto/mctrl_pept_pb2.py +1 -1
- pymammotion/proto/mctrl_sys.proto +223 -85
- pymammotion/proto/mctrl_sys_pb2.py +129 -93
- pymammotion/proto/mctrl_sys_pb2.pyi +247 -9
- pymammotion/utility/constant/device_constant.py +1 -0
- {pymammotion-0.4.44.dist-info → pymammotion-0.4.45.dist-info}/METADATA +1 -1
- {pymammotion-0.4.44.dist-info → pymammotion-0.4.45.dist-info}/RECORD +32 -32
- {pymammotion-0.4.44.dist-info → pymammotion-0.4.45.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.44.dist-info → pymammotion-0.4.45.dist-info}/WHEEL +0 -0
@@ -2,6 +2,91 @@ syntax = "proto3";
|
|
2
2
|
|
3
3
|
import "pymammotion/proto/dev_net.proto";
|
4
4
|
|
5
|
+
enum Operation {
|
6
|
+
WRITE = 0;
|
7
|
+
READ = 1;
|
8
|
+
ERASE = 2;
|
9
|
+
}
|
10
|
+
|
11
|
+
enum OffPartId {
|
12
|
+
OFF_PART_DL_IMG = 0;
|
13
|
+
OFF_PART_UPDINFO_BACK = 1;
|
14
|
+
OFF_PART_UPDINFO = 2;
|
15
|
+
OFF_PART_NAKEDB = 3;
|
16
|
+
OFF_PART_FLASHDB = 4;
|
17
|
+
OFF_PART_UPD_APP_IMG = 5;
|
18
|
+
OFF_PART_UPD_BMS_IMG = 6;
|
19
|
+
OFF_PART_UPD_TMP_IMG = 7;
|
20
|
+
OFF_PART_DEV_INFO = 8;
|
21
|
+
OFF_PART_NAKEDB_BACK = 9;
|
22
|
+
OFF_PART_MAX = 10;
|
23
|
+
}
|
24
|
+
|
25
|
+
enum QCAppTestId {
|
26
|
+
QC_APP_ITEM_ON_CHARGESATSTION = 0;
|
27
|
+
QC_APP_TEST_X3_SPEAKER = 1;
|
28
|
+
QC_APP_TEST_STATIC_OBSTACLE_DETECTION = 2;
|
29
|
+
QC_APP_TEST_CHARGESTATION_TEMP = 3;
|
30
|
+
QC_APP_ITEM_KEY = 4;
|
31
|
+
QC_APP_TEST_BUMPER_FRONTLEFT = 5;
|
32
|
+
QC_APP_TEST_BUMPER_FRONTRIGHT = 6;
|
33
|
+
QC_APP_TEST_STOP = 7;
|
34
|
+
QC_APP_TEST_UNLOCK = 8;
|
35
|
+
QC_APP_TEST_BUZZ = 9;
|
36
|
+
QC_APP_TEST_LIFT = 10;
|
37
|
+
QC_APP_ITEM_SENEOR = 11;
|
38
|
+
QC_APP_TEST_ROLL_LEFT = 12;
|
39
|
+
QC_APP_TEST_ROLL_RIGHT = 13;
|
40
|
+
QC_APP_TEST_ULTRA_UNCOVER = 14;
|
41
|
+
QC_APP_TEST_ULTRA0_COVER = 15;
|
42
|
+
QC_APP_TEST_ULTRA1_COVER = 16;
|
43
|
+
QC_APP_TEST_ULTRA2_COVER = 17;
|
44
|
+
QC_APP_TEST_RAIN = 18;
|
45
|
+
QC_APP_ITEM_SQ = 19;
|
46
|
+
QC_APP_TEST_BLE_RSSI = 20;
|
47
|
+
QC_APP_TEST_SATELLITES_ROVER = 21;
|
48
|
+
QC_APP_TEST_SATELLITES_REF_STATION_L1 = 22;
|
49
|
+
QC_APP_TEST_SATELLITES_REF_STATION_L2 = 23;
|
50
|
+
QC_APP_TEST_SATELLITES_COMMON_VIEW = 24;
|
51
|
+
QC_APP_TEST_CNO_ROVER = 25;
|
52
|
+
QC_APP_TEST_CNO_REF_STATION = 26;
|
53
|
+
QC_APP_TEST_REF_STATION_LINK_STATUS = 27;
|
54
|
+
QC_APP_TEST_LOCATION_STATE = 28;
|
55
|
+
QC_APP_TEST_MAX = 29;
|
56
|
+
}
|
57
|
+
|
58
|
+
enum rtk_used_type {
|
59
|
+
RTK_USED_LORA = 0;
|
60
|
+
RTK_USED_INTERNET = 1;
|
61
|
+
RTK_USED_NRTK = 2;
|
62
|
+
}
|
63
|
+
|
64
|
+
enum net_used_type {
|
65
|
+
NET_USED_TYPE_NONE = 0;
|
66
|
+
NET_USED_TYPE_WIFI = 1;
|
67
|
+
NET_USED_TYPE_MNET = 2;
|
68
|
+
}
|
69
|
+
|
70
|
+
enum rpt_info_type {
|
71
|
+
RIT_CONNECT = 0;
|
72
|
+
RIT_DEV_STA = 1;
|
73
|
+
RIT_RTK = 2;
|
74
|
+
RIT_DEV_LOCAL = 3;
|
75
|
+
RIT_WORK = 4;
|
76
|
+
RIT_FW_INFO = 5;
|
77
|
+
RIT_MAINTAIN = 6;
|
78
|
+
RIT_VISION_POINT = 7;
|
79
|
+
RIT_VIO = 8;
|
80
|
+
RIT_VISION_STATISTIC = 9;
|
81
|
+
RIT_BASESTATION_INFO = 10;
|
82
|
+
}
|
83
|
+
|
84
|
+
enum rpt_act {
|
85
|
+
RPT_START = 0;
|
86
|
+
RPT_STOP = 1;
|
87
|
+
RPT_KEEP = 2;
|
88
|
+
}
|
89
|
+
|
5
90
|
message SysBatUp {
|
6
91
|
int32 batVal = 1;
|
7
92
|
}
|
@@ -114,6 +199,10 @@ message SysResetSystemStatus {
|
|
114
199
|
int32 reset_staus = 1;
|
115
200
|
}
|
116
201
|
|
202
|
+
message SysResetBladeUsedTimeStatus {
|
203
|
+
int32 reset_blade_used_time_status = 1;
|
204
|
+
}
|
205
|
+
|
117
206
|
message TimeCtrlLight {
|
118
207
|
int32 operate = 1;
|
119
208
|
int32 enable = 2;
|
@@ -196,7 +285,7 @@ message LoraCfgRsp {
|
|
196
285
|
int32 result = 1;
|
197
286
|
int32 op = 2;
|
198
287
|
string cfg = 3;
|
199
|
-
|
288
|
+
string fac_cfg = 4;
|
200
289
|
}
|
201
290
|
|
202
291
|
message mod_fw_info {
|
@@ -250,6 +339,25 @@ message mCtrlSimulationCmdData {
|
|
250
339
|
repeated int32 param_value = 3;
|
251
340
|
}
|
252
341
|
|
342
|
+
message app_to_dev_get_mqtt_config_t {
|
343
|
+
int32 get_mqtt_config = 1;
|
344
|
+
}
|
345
|
+
|
346
|
+
message dev_to_app_get_mqtt_config_t {
|
347
|
+
int32 rtk_status = 1;
|
348
|
+
string rtk_base_num = 2;
|
349
|
+
}
|
350
|
+
|
351
|
+
message app_to_dev_set_mqtt_rtk_t {
|
352
|
+
rtk_used_type set_rtk_mode = 1;
|
353
|
+
int32 stop_nrtk_flag = 2;
|
354
|
+
int32 set_nrtk_net_mode = 3;
|
355
|
+
}
|
356
|
+
|
357
|
+
message dev_to_app_set_mqtt_rtk_t {
|
358
|
+
int32 set_rtk_mode_error = 1;
|
359
|
+
}
|
360
|
+
|
253
361
|
message rpt_lora {
|
254
362
|
int32 pair_code_scan = 1;
|
255
363
|
int32 pair_code_channel = 2;
|
@@ -259,9 +367,13 @@ message rpt_lora {
|
|
259
367
|
}
|
260
368
|
|
261
369
|
message mqtt_rtk_connect {
|
262
|
-
|
263
|
-
|
264
|
-
|
370
|
+
rtk_used_type rtk_switch = 1;
|
371
|
+
int32 rtk_channel = 2;
|
372
|
+
string rtk_base_num = 3;
|
373
|
+
double latitude = 4;
|
374
|
+
double longitude = 5;
|
375
|
+
int32 nrtk_map_convert_status = 6;
|
376
|
+
int32 nrtk_net_mode = 7;
|
265
377
|
}
|
266
378
|
|
267
379
|
message rpt_rtk {
|
@@ -317,6 +429,11 @@ message rpt_dev_status {
|
|
317
429
|
fpv_to_app_info_t fpv_info = 13;
|
318
430
|
}
|
319
431
|
|
432
|
+
message net_speed {
|
433
|
+
uint32 download = 1;
|
434
|
+
uint32 upload = 2;
|
435
|
+
}
|
436
|
+
|
320
437
|
message rpt_connect_status {
|
321
438
|
int32 connect_type = 1;
|
322
439
|
int32 ble_rssi = 2;
|
@@ -326,11 +443,15 @@ message rpt_connect_status {
|
|
326
443
|
int32 mnet_inet = 6;
|
327
444
|
net_used_type used_net = 7;
|
328
445
|
MnetCfg mnet_cfg = 8;
|
446
|
+
net_speed dev_net_speed = 9;
|
447
|
+
bool iot_wifi_report = 10;
|
448
|
+
int32 iot_con_status = 11;
|
449
|
+
int32 wifi_con_status = 12;
|
450
|
+
int32 wifi_is_available = 13;
|
329
451
|
}
|
330
452
|
|
331
|
-
|
332
453
|
message nav_heading_state_t {
|
333
|
-
|
454
|
+
uint32 heading_state = 1;
|
334
455
|
}
|
335
456
|
|
336
457
|
message rpt_work {
|
@@ -411,6 +532,83 @@ message report_info_data {
|
|
411
532
|
rpt_basestation_info basestation_info = 11;
|
412
533
|
}
|
413
534
|
|
535
|
+
message debug_common_report_t {
|
536
|
+
string m_name = 1;
|
537
|
+
string key = 2;
|
538
|
+
string value = 3;
|
539
|
+
int64 gen_time = 4;
|
540
|
+
}
|
541
|
+
|
542
|
+
message debug_errocode_report_t {
|
543
|
+
int32 code = 1;
|
544
|
+
string mname = 2;
|
545
|
+
string value = 3;
|
546
|
+
int64 gen_time = 4;
|
547
|
+
}
|
548
|
+
|
549
|
+
message debug_enable_t {
|
550
|
+
int32 enbale = 1;
|
551
|
+
}
|
552
|
+
|
553
|
+
message debug_res_cfg_ability_t {
|
554
|
+
int32 total_keys = 1;
|
555
|
+
int32 cur_key_id = 2;
|
556
|
+
string keys = 3;
|
557
|
+
string value = 4;
|
558
|
+
}
|
559
|
+
|
560
|
+
message debug_cfg_read_t {
|
561
|
+
string key = 1;
|
562
|
+
string value = 2;
|
563
|
+
}
|
564
|
+
|
565
|
+
message debug_cfg_write_t {
|
566
|
+
string key = 1;
|
567
|
+
string value = 2;
|
568
|
+
}
|
569
|
+
|
570
|
+
message msgbus_pkt {
|
571
|
+
int32 type = 1;
|
572
|
+
int32 typeCommand = 2;
|
573
|
+
int32 recvDeviceId = 3;
|
574
|
+
int32 sendDeviceId = 4;
|
575
|
+
int32 dataLength = 5;
|
576
|
+
string data = 6;
|
577
|
+
int32 ctrl = 7;
|
578
|
+
int32 flag = 8;
|
579
|
+
int32 seqs = 9;
|
580
|
+
}
|
581
|
+
|
582
|
+
message response_set_mode_t {
|
583
|
+
int32 statue = 1;
|
584
|
+
int32 set_work_mode = 2;
|
585
|
+
int32 cur_work_mode = 3;
|
586
|
+
}
|
587
|
+
|
588
|
+
message dev_statue_t {
|
589
|
+
int32 sys_status = 1;
|
590
|
+
int32 charge_status = 2;
|
591
|
+
int32 bat_val = 3;
|
592
|
+
int32 wheel_status = 4;
|
593
|
+
int32 pump_status = 5;
|
594
|
+
int32 work_mode = 6;
|
595
|
+
int32 model = 7;
|
596
|
+
}
|
597
|
+
|
598
|
+
message report_info_t {
|
599
|
+
dev_statue_t dev_status = 1;
|
600
|
+
int32 ota_status = 2;
|
601
|
+
string dev_version = 3;
|
602
|
+
int32 ota_progress = 4;
|
603
|
+
int32 ota_fw_code = 5;
|
604
|
+
int32 ota_fw_seq = 6;
|
605
|
+
int32 ota_fw_downloaded = 7;
|
606
|
+
}
|
607
|
+
|
608
|
+
message work_mode_t {
|
609
|
+
int32 work_mode = 1;
|
610
|
+
}
|
611
|
+
|
414
612
|
message MctlSys {
|
415
613
|
oneof SubSysMsg {
|
416
614
|
SysBatUp toapp_batinfo = 1;
|
@@ -447,84 +645,24 @@ message MctlSys {
|
|
447
645
|
report_info_cfg todev_report_cfg = 38;
|
448
646
|
report_info_data toapp_report_data = 39;
|
449
647
|
mCtrlSimulationCmdData simulation_cmd = 42;
|
648
|
+
app_to_dev_get_mqtt_config_t app_to_dev_get_mqtt_config_msg = 43;
|
649
|
+
dev_to_app_get_mqtt_config_t dev_to_app_get_mqtt_config_msg = 44;
|
650
|
+
app_to_dev_set_mqtt_rtk_t app_to_dev_set_mqtt_rtk_msg = 45;
|
651
|
+
dev_to_app_set_mqtt_rtk_t dev_to_app_set_mqtt_rtk_msg = 46;
|
652
|
+
int32 todev_reset_blade_used_time = 47;
|
653
|
+
SysResetBladeUsedTimeStatus todev_reset_blade_used_time_status = 48;
|
654
|
+
int32 todev_factor_reset_system = 49;
|
655
|
+
user_set_blade_used_warn_time blade_used_warn_time = 50;
|
656
|
+
debug_common_report_t debug_common_report = 51;
|
657
|
+
debug_errocode_report_t debug_errocode_report = 52;
|
658
|
+
debug_enable_t debug_enable = 53;
|
659
|
+
debug_cfg_read_t debug_cfg_read = 54;
|
660
|
+
debug_cfg_write_t debug_cfg_write = 55;
|
661
|
+
debug_res_cfg_ability_t debug_res_cfg_ability = 56;
|
662
|
+
msgbus_pkt to_dev_msgbus = 57;
|
663
|
+
msgbus_pkt to_app_msgbus = 58;
|
664
|
+
response_set_mode_t response_set_mode = 59;
|
665
|
+
report_info_t report_info = 60;
|
666
|
+
work_mode_t set_work_mode = 61;
|
450
667
|
}
|
451
|
-
}
|
452
|
-
|
453
|
-
enum Operation {
|
454
|
-
WRITE = 0;
|
455
|
-
READ = 1;
|
456
|
-
ERASE = 2;
|
457
|
-
}
|
458
|
-
|
459
|
-
enum OffPartId {
|
460
|
-
OFF_PART_DL_IMG = 0;
|
461
|
-
OFF_PART_UPDINFO_BACK = 1;
|
462
|
-
OFF_PART_UPDINFO = 2;
|
463
|
-
OFF_PART_NAKEDB = 3;
|
464
|
-
OFF_PART_FLASHDB = 4;
|
465
|
-
OFF_PART_UPD_APP_IMG = 5;
|
466
|
-
OFF_PART_UPD_BMS_IMG = 6;
|
467
|
-
OFF_PART_UPD_TMP_IMG = 7;
|
468
|
-
OFF_PART_DEV_INFO = 8;
|
469
|
-
OFF_PART_NAKEDB_BACK = 9;
|
470
|
-
OFF_PART_MAX = 10;
|
471
|
-
}
|
472
|
-
|
473
|
-
enum QCAppTestId {
|
474
|
-
QC_APP_ITEM_ON_CHARGESATSTION = 0;
|
475
|
-
QC_APP_TEST_X3_SPEAKER = 1;
|
476
|
-
QC_APP_TEST_STATIC_OBSTACLE_DETECTION = 2;
|
477
|
-
QC_APP_TEST_CHARGESTATION_TEMP = 3;
|
478
|
-
QC_APP_ITEM_KEY = 4;
|
479
|
-
QC_APP_TEST_BUMPER_FRONTLEFT = 5;
|
480
|
-
QC_APP_TEST_BUMPER_FRONTRIGHT = 6;
|
481
|
-
QC_APP_TEST_STOP = 7;
|
482
|
-
QC_APP_TEST_UNLOCK = 8;
|
483
|
-
QC_APP_TEST_BUZZ = 9;
|
484
|
-
QC_APP_TEST_LIFT = 10;
|
485
|
-
QC_APP_ITEM_SENEOR = 11;
|
486
|
-
QC_APP_TEST_ROLL_LEFT = 12;
|
487
|
-
QC_APP_TEST_ROLL_RIGHT = 13;
|
488
|
-
QC_APP_TEST_ULTRA_UNCOVER = 14;
|
489
|
-
QC_APP_TEST_ULTRA0_COVER = 15;
|
490
|
-
QC_APP_TEST_ULTRA1_COVER = 16;
|
491
|
-
QC_APP_TEST_ULTRA2_COVER = 17;
|
492
|
-
QC_APP_TEST_RAIN = 18;
|
493
|
-
QC_APP_ITEM_SQ = 19;
|
494
|
-
QC_APP_TEST_BLE_RSSI = 20;
|
495
|
-
QC_APP_TEST_SATELLITES_ROVER = 21;
|
496
|
-
QC_APP_TEST_SATELLITES_REF_STATION_L1 = 22;
|
497
|
-
QC_APP_TEST_SATELLITES_REF_STATION_L2 = 23;
|
498
|
-
QC_APP_TEST_SATELLITES_COMMON_VIEW = 24;
|
499
|
-
QC_APP_TEST_CNO_ROVER = 25;
|
500
|
-
QC_APP_TEST_CNO_REF_STATION = 26;
|
501
|
-
QC_APP_TEST_REF_STATION_LINK_STATUS = 27;
|
502
|
-
QC_APP_TEST_LOCATION_STATE = 28;
|
503
|
-
QC_APP_TEST_MAX = 29;
|
504
|
-
}
|
505
|
-
|
506
|
-
enum net_used_type {
|
507
|
-
NET_USED_TYPE_NONE = 0;
|
508
|
-
NET_USED_TYPE_WIFI = 1;
|
509
|
-
NET_USED_TYPE_MNET = 2;
|
510
|
-
}
|
511
|
-
|
512
|
-
enum rpt_info_type {
|
513
|
-
RIT_CONNECT = 0;
|
514
|
-
RIT_DEV_STA = 1;
|
515
|
-
RIT_RTK = 2;
|
516
|
-
RIT_DEV_LOCAL = 3;
|
517
|
-
RIT_WORK = 4;
|
518
|
-
RIT_FW_INFO = 5;
|
519
|
-
RIT_MAINTAIN = 6;
|
520
|
-
RIT_VISION_POINT = 7;
|
521
|
-
RIT_VIO = 8;
|
522
|
-
RIT_VISION_STATISTIC = 9;
|
523
|
-
RIT_BASESTATION_INFO = 10;
|
524
|
-
}
|
525
|
-
|
526
|
-
enum rpt_act {
|
527
|
-
RPT_START = 0;
|
528
|
-
RPT_STOP = 1;
|
529
|
-
RPT_KEEP = 2;
|
530
668
|
}
|