Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
new-socketemulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
new-socketemulator
Commits
d7eb491b
Commit
d7eb491b
authored
Apr 03, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成了汽车行驶功能
parent
546db7bf
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
63 additions
and
28 deletions
+63
-28
data/protocolTools/GPSLines/2_大坪到南滨路钟楼.json
data/protocolTools/GPSLines/2_大坪到南滨路钟楼.json
+2
-0
data/protocolTools/GPSLines/4_测试轨迹.json
data/protocolTools/GPSLines/4_测试轨迹.json
+2
-0
data/protocolTools/GPSLines/5_先涛的车轨迹.txt
data/protocolTools/GPSLines/5_先涛的车轨迹.txt
+2
-0
lib/protocol/m300/OBDCAN_protocol_m300.py
lib/protocol/m300/OBDCAN_protocol_m300.py
+1
-1
lib/protocol/report/GPSReport_protocol.py
lib/protocol/report/GPSReport_protocol.py
+1
-1
lib/protocol/report/OBDReport_CAN_protocol.py
lib/protocol/report/OBDReport_CAN_protocol.py
+5
-1
lib/socket/service/ProtocolSimulaterService.py
lib/socket/service/ProtocolSimulaterService.py
+50
-25
No files found.
data/protocolTools/GPSLines/2_大坪到南滨路钟楼.json
0 → 100644
View file @
d7eb491b
{
"name"
:
"GPS轨迹1"
,
"GPSLine"
:[
{
"lng"
:
106.586571
,
"lat"
:
29.569133
},
{
"lng"
:
106.586935
,
"lat"
:
29.569215
},
{
"lng"
:
106.587114
,
"lat"
:
29.569215
},
{
"lng"
:
106.587424
,
"lat"
:
29.569231
},
{
"lng"
:
106.587685
,
"lat"
:
29.569278
},
{
"lng"
:
106.587981
,
"lat"
:
29.569298
},
{
"lng"
:
106.588098
,
"lat"
:
29.569341
},
{
"lng"
:
106.588287
,
"lat"
:
29.569392
},
{
"lng"
:
106.588435
,
"lat"
:
29.569439
},
{
"lng"
:
106.588565
,
"lat"
:
29.569506
},
{
"lng"
:
106.588646
,
"lat"
:
29.569565
},
{
"lng"
:
106.588763
,
"lat"
:
29.569651
},
{
"lng"
:
106.588884
,
"lat"
:
29.569745
},
{
"lng"
:
106.589073
,
"lat"
:
29.569832
},
{
"lng"
:
106.589374
,
"lat"
:
29.569977
},
{
"lng"
:
106.589688
,
"lat"
:
29.570114
},
{
"lng"
:
106.589993
,
"lat"
:
29.570228
},
{
"lng"
:
106.590146
,
"lat"
:
29.570271
},
{
"lng"
:
106.590357
,
"lat"
:
29.570291
},
{
"lng"
:
106.590573
,
"lat"
:
29.570264
},
{
"lng"
:
106.590802
,
"lat"
:
29.570248
},
{
"lng"
:
106.59095
,
"lat"
:
29.570205
},
{
"lng"
:
106.59108
,
"lat"
:
29.570256
},
{
"lng"
:
106.591273
,
"lat"
:
29.570421
},
{
"lng"
:
106.591507
,
"lat"
:
29.570578
},
{
"lng"
:
106.591673
,
"lat"
:
29.570703
},
{
"lng"
:
106.591772
,
"lat"
:
29.570774
},
{
"lng"
:
106.591974
,
"lat"
:
29.570943
},
{
"lng"
:
106.592145
,
"lat"
:
29.57108
},
{
"lng"
:
106.592342
,
"lat"
:
29.571261
},
{
"lng"
:
106.592383
,
"lat"
:
29.571332
},
{
"lng"
:
106.592527
,
"lat"
:
29.571493
},
{
"lng"
:
106.592679
,
"lat"
:
29.571642
},
{
"lng"
:
106.592765
,
"lat"
:
29.571748
},
{
"lng"
:
106.592877
,
"lat"
:
29.571834
},
{
"lng"
:
106.593007
,
"lat"
:
29.571901
},
{
"lng"
:
106.593182
,
"lat"
:
29.571936
},
{
"lng"
:
106.593308
,
"lat"
:
29.571936
},
{
"lng"
:
106.593407
,
"lat"
:
29.571874
},
{
"lng"
:
106.593591
,
"lat"
:
29.571815
},
{
"lng"
:
106.593784
,
"lat"
:
29.571795
},
{
"lng"
:
106.593847
,
"lat"
:
29.571862
},
{
"lng"
:
106.593865
,
"lat"
:
29.571983
},
{
"lng"
:
106.59391
,
"lat"
:
29.572105
},
{
"lng"
:
106.594054
,
"lat"
:
29.572144
},
{
"lng"
:
106.594453
,
"lat"
:
29.572121
},
{
"lng"
:
106.594665
,
"lat"
:
29.57205
},
{
"lng"
:
106.594799
,
"lat"
:
29.571968
},
{
"lng"
:
106.594925
,
"lat"
:
29.571862
},
{
"lng"
:
106.595078
,
"lat"
:
29.57172
},
{
"lng"
:
106.595145
,
"lat"
:
29.571607
},
{
"lng"
:
106.595226
,
"lat"
:
29.571449
},
{
"lng"
:
106.595239
,
"lat"
:
29.571324
},
{
"lng"
:
106.59528
,
"lat"
:
29.571124
},
{
"lng"
:
106.59528
,
"lat"
:
29.570982
},
{
"lng"
:
106.595289
,
"lat"
:
29.570821
},
{
"lng"
:
106.59532
,
"lat"
:
29.57066
},
{
"lng"
:
106.59532
,
"lat"
:
29.570515
},
{
"lng"
:
106.595325
,
"lat"
:
29.570413
},
{
"lng"
:
106.595374
,
"lat"
:
29.570158
},
{
"lng"
:
106.595374
,
"lat"
:
29.570024
},
{
"lng"
:
106.595406
,
"lat"
:
29.56984
},
{
"lng"
:
106.59541
,
"lat"
:
29.569631
},
{
"lng"
:
106.59541
,
"lat"
:
29.569439
},
{
"lng"
:
106.595451
,
"lat"
:
29.569199
},
{
"lng"
:
106.595451
,
"lat"
:
29.569074
},
{
"lng"
:
106.595473
,
"lat"
:
29.568932
},
{
"lng"
:
106.595495
,
"lat"
:
29.568787
},
{
"lng"
:
106.595469
,
"lat"
:
29.568563
},
{
"lng"
:
106.595464
,
"lat"
:
29.568422
},
{
"lng"
:
106.595401
,
"lat"
:
29.568151
},
{
"lng"
:
106.595406
,
"lat"
:
29.567947
},
{
"lng"
:
106.595352
,
"lat"
:
29.567739
},
{
"lng"
:
106.595334
,
"lat"
:
29.567593
},
{
"lng"
:
106.595316
,
"lat"
:
29.567397
},
{
"lng"
:
106.595298
,
"lat"
:
29.567209
},
{
"lng"
:
106.595266
,
"lat"
:
29.567016
},
{
"lng"
:
106.595239
,
"lat"
:
29.566777
},
{
"lng"
:
106.595217
,
"lat"
:
29.566592
},
{
"lng"
:
106.595186
,
"lat"
:
29.566384
},
{
"lng"
:
106.595141
,
"lat"
:
29.566188
},
{
"lng"
:
106.595091
,
"lat"
:
29.565976
},
{
"lng"
:
106.594997
,
"lat"
:
29.565732
},
{
"lng"
:
106.594934
,
"lat"
:
29.565544
},
{
"lng"
:
106.594795
,
"lat"
:
29.565178
},
{
"lng"
:
106.594678
,
"lat"
:
29.564951
},
{
"lng"
:
106.594629
,
"lat"
:
29.564758
},
{
"lng"
:
106.594566
,
"lat"
:
29.564605
},
{
"lng"
:
106.594691
,
"lat"
:
29.564554
},
{
"lng"
:
106.594898
,
"lat"
:
29.564507
},
{
"lng"
:
106.595212
,
"lat"
:
29.564409
},
{
"lng"
:
106.595626
,
"lat"
:
29.564291
},
{
"lng"
:
106.596165
,
"lat"
:
29.564134
},
{
"lng"
:
106.596421
,
"lat"
:
29.564063
},
{
"lng"
:
106.596704
,
"lat"
:
29.563985
},
{
"lng"
:
106.596928
,
"lat"
:
29.56391
},
{
"lng"
:
106.59744
,
"lat"
:
29.563761
},
{
"lng"
:
106.597867
,
"lat"
:
29.563635
},
{
"lng"
:
106.598105
,
"lat"
:
29.563553
},
{
"lng"
:
106.598294
,
"lat"
:
29.563517
},
{
"lng"
:
106.598572
,
"lat"
:
29.563415
},
{
"lng"
:
106.598909
,
"lat"
:
29.563317
},
{
"lng"
:
106.599165
,
"lat"
:
29.56325
},
{
"lng"
:
106.599673
,
"lat"
:
29.563109
},
{
"lng"
:
106.600104
,
"lat"
:
29.562975
},
{
"lng"
:
106.600369
,
"lat"
:
29.562921
},
{
"lng"
:
106.600571
,
"lat"
:
29.562854
},
{
"lng"
:
106.600786
,
"lat"
:
29.562807
},
{
"lng"
:
106.600791
,
"lat"
:
29.562807
},
{
"lng"
:
106.600804
,
"lat"
:
29.562913
},
{
"lng"
:
106.600836
,
"lat"
:
29.563082
},
{
"lng"
:
106.600849
,
"lat"
:
29.563164
},
{
"lng"
:
106.60089
,
"lat"
:
29.56336
},
{
"lng"
:
106.600957
,
"lat"
:
29.563623
},
{
"lng"
:
106.600966
,
"lat"
:
29.563733
},
{
"lng"
:
106.600966
,
"lat"
:
29.563922
},
{
"lng"
:
106.600984
,
"lat"
:
29.564216
},
{
"lng"
:
106.601002
,
"lat"
:
29.56444
},
{
"lng"
:
106.601011
,
"lat"
:
29.564692
},
{
"lng"
:
106.601025
,
"lat"
:
29.564978
},
{
"lng"
:
106.601025
,
"lat"
:
29.565182
},
{
"lng"
:
106.601047
,
"lat"
:
29.565367
},
{
"lng"
:
106.601038
,
"lat"
:
29.565508
},
{
"lng"
:
106.601056
,
"lat"
:
29.56563
},
{
"lng"
:
106.601051
,
"lat"
:
29.565932
},
{
"lng"
:
106.60106
,
"lat"
:
29.566129
},
{
"lng"
:
106.601074
,
"lat"
:
29.566388
},
{
"lng"
:
106.601096
,
"lat"
:
29.566569
},
{
"lng"
:
106.601083
,
"lat"
:
29.566706
},
{
"lng"
:
106.601096
,
"lat"
:
29.566985
},
{
"lng"
:
106.601083
,
"lat"
:
29.567122
},
{
"lng"
:
106.601105
,
"lat"
:
29.567271
},
{
"lng"
:
106.601105
,
"lat"
:
29.567432
},
{
"lng"
:
106.601114
,
"lat"
:
29.567625
},
{
"lng"
:
106.601105
,
"lat"
:
29.567723
},
{
"lng"
:
106.601114
,
"lat"
:
29.567786
},
{
"lng"
:
106.601132
,
"lat"
:
29.568006
},
{
"lng"
:
106.601128
,
"lat"
:
29.568112
},
{
"lng"
:
106.601114
,
"lat"
:
29.568257
},
{
"lng"
:
106.601119
,
"lat"
:
29.568379
},
{
"lng"
:
106.601119
,
"lat"
:
29.568646
},
{
"lng"
:
106.601101
,
"lat"
:
29.568779
},
{
"lng"
:
106.60111
,
"lat"
:
29.568913
},
{
"lng"
:
106.601101
,
"lat"
:
29.569031
},
{
"lng"
:
106.601101
,
"lat"
:
29.569196
},
{
"lng"
:
106.601083
,
"lat"
:
29.569302
},
{
"lng"
:
106.601083
,
"lat"
:
29.569435
},
{
"lng"
:
106.601051
,
"lat"
:
29.56958
},
{
"lng"
:
106.601029
,
"lat"
:
29.569722
},
{
"lng"
:
106.601034
,
"lat"
:
29.56984
},
{
"lng"
:
106.600998
,
"lat"
:
29.570001
},
{
"lng"
:
106.60098
,
"lat"
:
29.570193
},
{
"lng"
:
106.600944
,
"lat"
:
29.570354
},
{
"lng"
:
106.600926
,
"lat"
:
29.57048
},
{
"lng"
:
106.600885
,
"lat"
:
29.570668
},
{
"lng"
:
106.600867
,
"lat"
:
29.570825
},
{
"lng"
:
106.600854
,
"lat"
:
29.570966
},
{
"lng"
:
106.600849
,
"lat"
:
29.571065
},
{
"lng"
:
106.600804
,
"lat"
:
29.571186
},
{
"lng"
:
106.600755
,
"lat"
:
29.571351
},
{
"lng"
:
106.600769
,
"lat"
:
29.57141
},
{
"lng"
:
106.600751
,
"lat"
:
29.571512
},
{
"lng"
:
106.600737
,
"lat"
:
29.571622
},
{
"lng"
:
106.600697
,
"lat"
:
29.571779
},
{
"lng"
:
106.600697
,
"lat"
:
29.571901
},
{
"lng"
:
106.600661
,
"lat"
:
29.572035
},
{
"lng"
:
106.600638
,
"lat"
:
29.572172
},
{
"lng"
:
106.60062
,
"lat"
:
29.572357
},
{
"lng"
:
106.600593
,
"lat"
:
29.572514
},
{
"lng"
:
106.600571
,
"lat"
:
29.572655
},
{
"lng"
:
106.600548
,
"lat"
:
29.572828
},
{
"lng"
:
106.60053
,
"lat"
:
29.572981
},
{
"lng"
:
106.600499
,
"lat"
:
29.573142
},
{
"lng"
:
106.600495
,
"lat"
:
29.573267
},
{
"lng"
:
106.600441
,
"lat"
:
29.573401
},
{
"lng"
:
106.600423
,
"lat"
:
29.573523
},
{
"lng"
:
106.600391
,
"lat"
:
29.573754
},
{
"lng"
:
106.600364
,
"lat"
:
29.57399
},
{
"lng"
:
106.600328
,
"lat"
:
29.574186
},
{
"lng"
:
106.600283
,
"lat"
:
29.574379
},
{
"lng"
:
106.600261
,
"lat"
:
29.574548
},
{
"lng"
:
106.600234
,
"lat"
:
29.574693
},
{
"lng"
:
106.600207
,
"lat"
:
29.574846
},
{
"lng"
:
106.600189
,
"lat"
:
29.574956
},
{
"lng"
:
106.600162
,
"lat"
:
29.575093
},
{
"lng"
:
106.600122
,
"lat"
:
29.57525
},
{
"lng"
:
106.600077
,
"lat"
:
29.575474
},
{
"lng"
:
106.600009
,
"lat"
:
29.575631
},
{
"lng"
:
106.599933
,
"lat"
:
29.575831
},
{
"lng"
:
106.599866
,
"lat"
:
29.576008
},
{
"lng"
:
106.599758
,
"lat"
:
29.576204
},
{
"lng"
:
106.5997
,
"lat"
:
29.576326
},
{
"lng"
:
106.599583
,
"lat"
:
29.576487
},
{
"lng"
:
106.599479
,
"lat"
:
29.576636
},
{
"lng"
:
106.599399
,
"lat"
:
29.57677
},
{
"lng"
:
106.5993
,
"lat"
:
29.576947
},
{
"lng"
:
106.59921
,
"lat"
:
29.577053
},
{
"lng"
:
106.599093
,
"lat"
:
29.577182
},
{
"lng"
:
106.59899
,
"lat"
:
29.5773
},
{
"lng"
:
106.598909
,
"lat"
:
29.577437
},
{
"lng"
:
106.598797
,
"lat"
:
29.577512
},
{
"lng"
:
106.598666
,
"lat"
:
29.577693
},
{
"lng"
:
106.5985
,
"lat"
:
29.57785
},
{
"lng"
:
106.598401
,
"lat"
:
29.57796
},
{
"lng"
:
106.598262
,
"lat"
:
29.578054
},
{
"lng"
:
106.598168
,
"lat"
:
29.578195
},
{
"lng"
:
106.598038
,
"lat"
:
29.578297
},
{
"lng"
:
106.598015
,
"lat"
:
29.578364
},
{
"lng"
:
106.598015
,
"lat"
:
29.578364
}
]
}
\ No newline at end of file
data/protocolTools/GPSLines/4_测试轨迹.json
0 → 100644
View file @
d7eb491b
{
"name"
:
"GPS轨迹1"
,
"GPSLine"
:[
{
"lng"
:
106.591507
,
"lat"
:
29.570578
},
{
"lng"
:
106.591673
,
"lat"
:
29.570703
},
{
"lng"
:
106.591772
,
"lat"
:
29.570774
},
{
"lng"
:
106.591974
,
"lat"
:
29.570943
},
{
"lng"
:
106.592145
,
"lat"
:
29.57108
},
{
"lng"
:
106.592342
,
"lat"
:
29.571261
},
{
"lng"
:
106.592383
,
"lat"
:
29.571332
},
{
"lng"
:
106.592527
,
"lat"
:
29.571493
},
{
"lng"
:
106.592679
,
"lat"
:
29.571642
},
{
"lng"
:
106.592765
,
"lat"
:
29.571748
},
{
"lng"
:
106.592877
,
"lat"
:
29.571834
},
{
"lng"
:
106.593007
,
"lat"
:
29.571901
},
{
"lng"
:
106.593182
,
"lat"
:
29.571936
},
{
"lng"
:
106.593308
,
"lat"
:
29.571936
},
{
"lng"
:
106.593407
,
"lat"
:
29.571874
},
{
"lng"
:
106.593591
,
"lat"
:
29.571815
},
{
"lng"
:
106.593784
,
"lat"
:
29.571795
},
{
"lng"
:
106.593847
,
"lat"
:
29.571862
},
{
"lng"
:
106.593865
,
"lat"
:
29.571983
},
{
"lng"
:
106.59391
,
"lat"
:
29.572105
},
{
"lng"
:
106.594054
,
"lat"
:
29.572144
},
{
"lng"
:
106.594453
,
"lat"
:
29.572121
},
{
"lng"
:
106.594665
,
"lat"
:
29.57205
},
{
"lng"
:
106.594799
,
"lat"
:
29.571968
},
{
"lng"
:
106.594925
,
"lat"
:
29.571862
},
{
"lng"
:
106.595078
,
"lat"
:
29.57172
},
{
"lng"
:
106.595145
,
"lat"
:
29.571607
},
{
"lng"
:
106.595226
,
"lat"
:
29.571449
},
{
"lng"
:
106.595239
,
"lat"
:
29.571324
},
{
"lng"
:
106.59528
,
"lat"
:
29.571124
},
{
"lng"
:
106.59528
,
"lat"
:
29.570982
},
{
"lng"
:
106.595289
,
"lat"
:
29.570821
},
{
"lng"
:
106.59532
,
"lat"
:
29.57066
},
{
"lng"
:
106.59532
,
"lat"
:
29.570515
},
{
"lng"
:
106.595325
,
"lat"
:
29.570413
},
{
"lng"
:
106.595374
,
"lat"
:
29.570158
},
{
"lng"
:
106.595374
,
"lat"
:
29.570024
},
{
"lng"
:
106.595406
,
"lat"
:
29.56984
},
{
"lng"
:
106.59541
,
"lat"
:
29.569631
},
{
"lng"
:
106.59541
,
"lat"
:
29.569439
},
{
"lng"
:
106.595451
,
"lat"
:
29.569199
},
{
"lng"
:
106.595451
,
"lat"
:
29.569074
},
{
"lng"
:
106.595473
,
"lat"
:
29.568932
},
{
"lng"
:
106.595495
,
"lat"
:
29.568787
},
{
"lng"
:
106.595469
,
"lat"
:
29.568563
},
{
"lng"
:
106.595464
,
"lat"
:
29.568422
},
{
"lng"
:
106.595401
,
"lat"
:
29.568151
},
{
"lng"
:
106.595406
,
"lat"
:
29.567947
},
{
"lng"
:
106.595352
,
"lat"
:
29.567739
},
{
"lng"
:
106.595334
,
"lat"
:
29.567593
},
{
"lng"
:
106.595316
,
"lat"
:
29.567397
},
{
"lng"
:
106.595298
,
"lat"
:
29.567209
},
{
"lng"
:
106.595266
,
"lat"
:
29.567016
},
{
"lng"
:
106.595239
,
"lat"
:
29.566777
},
{
"lng"
:
106.595217
,
"lat"
:
29.566592
},
{
"lng"
:
106.595186
,
"lat"
:
29.566384
},
{
"lng"
:
106.595141
,
"lat"
:
29.566188
},
{
"lng"
:
106.595091
,
"lat"
:
29.565976
},
{
"lng"
:
106.594997
,
"lat"
:
29.565732
},
{
"lng"
:
106.594934
,
"lat"
:
29.565544
},
{
"lng"
:
106.594795
,
"lat"
:
29.565178
},
{
"lng"
:
106.594678
,
"lat"
:
29.564951
},
{
"lng"
:
106.594629
,
"lat"
:
29.564758
},
{
"lng"
:
106.594566
,
"lat"
:
29.564605
},
{
"lng"
:
106.594691
,
"lat"
:
29.564554
},
{
"lng"
:
106.594898
,
"lat"
:
29.564507
},
{
"lng"
:
106.595212
,
"lat"
:
29.564409
},
{
"lng"
:
106.595626
,
"lat"
:
29.564291
},
{
"lng"
:
106.596165
,
"lat"
:
29.564134
},
{
"lng"
:
106.596421
,
"lat"
:
29.564063
},
{
"lng"
:
106.596704
,
"lat"
:
29.563985
},
{
"lng"
:
106.596928
,
"lat"
:
29.56391
},
{
"lng"
:
106.59744
,
"lat"
:
29.563761
},
{
"lng"
:
106.597867
,
"lat"
:
29.563635
},
{
"lng"
:
106.598105
,
"lat"
:
29.563553
},
{
"lng"
:
106.598294
,
"lat"
:
29.563517
},
{
"lng"
:
106.598572
,
"lat"
:
29.563415
},
{
"lng"
:
106.598909
,
"lat"
:
29.563317
},
{
"lng"
:
106.599165
,
"lat"
:
29.56325
},
{
"lng"
:
106.599673
,
"lat"
:
29.563109
},
{
"lng"
:
106.600104
,
"lat"
:
29.562975
},
{
"lng"
:
106.600369
,
"lat"
:
29.562921
},
{
"lng"
:
106.600571
,
"lat"
:
29.562854
},
{
"lng"
:
106.600786
,
"lat"
:
29.562807
},
{
"lng"
:
106.600791
,
"lat"
:
29.562807
},
{
"lng"
:
106.600804
,
"lat"
:
29.562913
},
{
"lng"
:
106.600836
,
"lat"
:
29.563082
},
{
"lng"
:
106.600849
,
"lat"
:
29.563164
},
{
"lng"
:
106.60089
,
"lat"
:
29.56336
},
{
"lng"
:
106.600957
,
"lat"
:
29.563623
},
{
"lng"
:
106.600966
,
"lat"
:
29.563733
},
{
"lng"
:
106.600966
,
"lat"
:
29.563922
},
{
"lng"
:
106.600984
,
"lat"
:
29.564216
},
{
"lng"
:
106.601002
,
"lat"
:
29.56444
},
{
"lng"
:
106.601011
,
"lat"
:
29.564692
},
{
"lng"
:
106.601025
,
"lat"
:
29.564978
},
{
"lng"
:
106.601025
,
"lat"
:
29.565182
},
{
"lng"
:
106.601047
,
"lat"
:
29.565367
},
{
"lng"
:
106.601038
,
"lat"
:
29.565508
},
{
"lng"
:
106.601056
,
"lat"
:
29.56563
},
{
"lng"
:
106.601051
,
"lat"
:
29.565932
},
{
"lng"
:
106.60106
,
"lat"
:
29.566129
},
{
"lng"
:
106.601074
,
"lat"
:
29.566388
},
{
"lng"
:
106.601096
,
"lat"
:
29.566569
},
{
"lng"
:
106.601083
,
"lat"
:
29.566706
},
{
"lng"
:
106.601096
,
"lat"
:
29.566985
},
{
"lng"
:
106.601083
,
"lat"
:
29.567122
},
{
"lng"
:
106.601105
,
"lat"
:
29.567271
},
{
"lng"
:
106.601105
,
"lat"
:
29.567432
},
{
"lng"
:
106.601114
,
"lat"
:
29.567625
},
{
"lng"
:
106.601105
,
"lat"
:
29.567723
},
{
"lng"
:
106.601114
,
"lat"
:
29.567786
},
{
"lng"
:
106.601132
,
"lat"
:
29.568006
},
{
"lng"
:
106.601128
,
"lat"
:
29.568112
},
{
"lng"
:
106.601114
,
"lat"
:
29.568257
},
{
"lng"
:
106.601119
,
"lat"
:
29.568379
},
{
"lng"
:
106.601119
,
"lat"
:
29.568646
},
{
"lng"
:
106.601101
,
"lat"
:
29.568779
},
{
"lng"
:
106.60111
,
"lat"
:
29.568913
},
{
"lng"
:
106.601101
,
"lat"
:
29.569031
},
{
"lng"
:
106.601101
,
"lat"
:
29.569196
},
{
"lng"
:
106.601083
,
"lat"
:
29.569302
},
{
"lng"
:
106.601083
,
"lat"
:
29.569435
},
{
"lng"
:
106.601051
,
"lat"
:
29.56958
},
{
"lng"
:
106.601029
,
"lat"
:
29.569722
},
{
"lng"
:
106.601034
,
"lat"
:
29.56984
},
{
"lng"
:
106.600998
,
"lat"
:
29.570001
},
{
"lng"
:
106.60098
,
"lat"
:
29.570193
},
{
"lng"
:
106.600944
,
"lat"
:
29.570354
},
{
"lng"
:
106.600926
,
"lat"
:
29.57048
},
{
"lng"
:
106.600885
,
"lat"
:
29.570668
},
{
"lng"
:
106.600867
,
"lat"
:
29.570825
},
{
"lng"
:
106.600854
,
"lat"
:
29.570966
},
{
"lng"
:
106.600849
,
"lat"
:
29.571065
},
{
"lng"
:
106.600804
,
"lat"
:
29.571186
},
{
"lng"
:
106.600755
,
"lat"
:
29.571351
},
{
"lng"
:
106.600769
,
"lat"
:
29.57141
},
{
"lng"
:
106.600751
,
"lat"
:
29.571512
},
{
"lng"
:
106.600737
,
"lat"
:
29.571622
},
{
"lng"
:
106.600697
,
"lat"
:
29.571779
},
{
"lng"
:
106.600697
,
"lat"
:
29.571901
},
{
"lng"
:
106.600661
,
"lat"
:
29.572035
},
{
"lng"
:
106.600638
,
"lat"
:
29.572172
},
{
"lng"
:
106.60062
,
"lat"
:
29.572357
},
{
"lng"
:
106.600593
,
"lat"
:
29.572514
},
{
"lng"
:
106.600571
,
"lat"
:
29.572655
},
{
"lng"
:
106.600548
,
"lat"
:
29.572828
},
{
"lng"
:
106.60053
,
"lat"
:
29.572981
},
{
"lng"
:
106.600499
,
"lat"
:
29.573142
},
{
"lng"
:
106.600495
,
"lat"
:
29.573267
},
{
"lng"
:
106.600441
,
"lat"
:
29.573401
},
{
"lng"
:
106.600423
,
"lat"
:
29.573523
},
{
"lng"
:
106.600391
,
"lat"
:
29.573754
},
{
"lng"
:
106.600364
,
"lat"
:
29.57399
},
{
"lng"
:
106.600328
,
"lat"
:
29.574186
},
{
"lng"
:
106.600283
,
"lat"
:
29.574379
},
{
"lng"
:
106.600261
,
"lat"
:
29.574548
},
{
"lng"
:
106.600234
,
"lat"
:
29.574693
},
{
"lng"
:
106.600207
,
"lat"
:
29.574846
},
{
"lng"
:
106.600189
,
"lat"
:
29.574956
},
{
"lng"
:
106.600162
,
"lat"
:
29.575093
},
{
"lng"
:
106.600122
,
"lat"
:
29.57525
},
{
"lng"
:
106.600077
,
"lat"
:
29.575474
},
{
"lng"
:
106.600009
,
"lat"
:
29.575631
},
{
"lng"
:
106.599933
,
"lat"
:
29.575831
},
{
"lng"
:
106.599866
,
"lat"
:
29.576008
},
{
"lng"
:
106.599758
,
"lat"
:
29.576204
},
{
"lng"
:
106.5997
,
"lat"
:
29.576326
},
{
"lng"
:
106.599583
,
"lat"
:
29.576487
}
]
}
\ No newline at end of file
data/protocolTools/GPSLines/5_先涛的车轨迹.txt
0 → 100644
View file @
d7eb491b
{"name": "gpsLine", "GPSLine": [{"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.279711", "lat": "29.585448\n"}, {"lng": "106.287903", "lat": "29.586623\n"}, {"lng": "106.289041", "lat": "29.586608\n"}, {"lng": "106.293958", "lat": "29.586631\n"}, {"lng": "106.296643", "lat": "29.586603\n"}, {"lng": "106.29702", "lat": "29.586588\n"}, {"lng": "106.297076", "lat": "29.586625\n"}, {"lng": "106.297116", "lat": "29.586675\n"}, {"lng": "106.297148", "lat": "29.58674\n"}, {"lng": "106.297161", "lat": "29.586818\n"}, {"lng": "106.297168", "lat": "29.586906\n"}, {"lng": "106.297275", "lat": "29.58793\n"}, {"lng": "106.297461", "lat": "29.588408\n"}, {"lng": "106.297783", "lat": "29.588835\n"}, {"lng": "106.298863", "lat": "29.589848\n"}, {"lng": "106.299571", "lat": "29.59043\n"}, {"lng": "106.30007", "lat": "29.590666\n"}, {"lng": "106.300655", "lat": "29.59083\n"}, {"lng": "106.301408", "lat": "29.59091\n"}, {"lng": "106.301695", "lat": "29.590925\n"}, {"lng": "106.303111", "lat": "29.590928\n"}, {"lng": "106.30319", "lat": "29.590958\n"}, {"lng": "106.30325", "lat": "29.591001\n"}, {"lng": "106.303288", "lat": "29.59106\n"}, {"lng": "106.303306", "lat": "29.591125\n"}, {"lng": "106.303311", "lat": "29.591196\n"}, {"lng": "106.303321", "lat": "29.59202\n"}, {"lng": "106.303418", "lat": "29.594665\n"}, {"lng": "106.303493", "lat": "29.596323\n"}, {"lng": "106.30351", "lat": "29.597693\n"}, {"lng": "106.303563", "lat": "29.598776\n"}, {"lng": "106.303651", "lat": "29.600776\n"}, {"lng": "106.303651", "lat": "29.600776\n"}, {"lng": "106.303735", "lat": "29.6027\n"}, {"lng": "106.303841", "lat": "29.605561\n"}, {"lng": "106.30389", "lat": "29.605611\n"}, {"lng": "106.303936", "lat": "29.605648\n"}, {"lng": "106.303988", "lat": "29.605683\n"}, {"lng": "106.30405", "lat": "29.605698\n"}, {"lng": "106.304203", "lat": "29.605718\n"}, {"lng": "106.307615", "lat": "29.605741\n"}, {"lng": "106.309696", "lat": "29.605716\n"}, {"lng": "106.309731", "lat": "29.605715\n"}, {"lng": "106.313746", "lat": "29.605721\n"}, {"lng": "106.31563", "lat": "29.605693\n"}, {"lng": "106.320446", "lat": "29.605731\n"}, {"lng": "106.325616", "lat": "29.605701\n"}, {"lng": "106.3258", "lat": "29.605626\n"}, {"lng": "106.326526", "lat": "29.605285\n"}, {"lng": "106.326736", "lat": "29.605265\n"}, {"lng": "106.326958", "lat": "29.605301\n"}, {"lng": "106.327066", "lat": "29.605343\n"}, {"lng": "106.327813", "lat": "29.605686\n"}, {"lng": "106.328125", "lat": "29.605711\n"}, {"lng": "106.328805", "lat": "29.605706\n"}, {"lng": "106.335046", "lat": "29.605946\n"}, {"lng": "106.339763", "lat": "29.606455\n"}, {"lng": "106.342376", "lat": "29.606618\n"}, {"lng": "106.346018", "lat": "29.606541\n"}, {"lng": "106.34853", "lat": "29.606423\n"}, {"lng": "106.352298", "lat": "29.606235\n"}, {"lng": "106.357856", "lat": "29.606015\n"}, {"lng": "106.359951", "lat": "29.605968\n"}, {"lng": "106.360195", "lat": "29.605978\n"}, {"lng": "106.360195", "lat": "29.605978\n"}, {"lng": "106.360341", "lat": "29.60598\n"}, {"lng": "106.360453", "lat": "29.605988\n"}, {"lng": "106.360515", "lat": "29.606005\n"}, {"lng": "106.360578", "lat": "29.606036\n"}, {"lng": "106.360638", "lat": "29.606081\n"}, {"lng": "106.360686", "lat": "29.606136\n"}, {"lng": "106.360756", "lat": "29.606266\n"}, {"lng": "106.360791", "lat": "29.60645\n"}, {"lng": "106.361096", "lat": "29.608673\n"}, {"lng": "106.361216", "lat": "29.611228\n"}, {"lng": "106.36123", "lat": "29.611825\n"}, {"lng": "106.36123", "lat": "29.611825\n"}, {"lng": "106.361245", "lat": "29.612025\n"}, {"lng": "106.361295", "lat": "29.612065\n"}, {"lng": "106.36137", "lat": "29.612091\n"}, {"lng": "106.361458", "lat": "29.612105\n"}, {"lng": "106.362618", "lat": "29.612145\n"}, {"lng": "106.36646", "lat": "29.61203\n"}, {"lng": "106.366696", "lat": "29.612051\n"}, {"lng": "106.37035", "lat": "29.612156\n"}, {"lng": "106.374651", "lat": "29.61214\n"}, {"lng": "106.378093", "lat": "29.612096\n"}, {"lng": "106.378153", "lat": "29.612078\n"}, {"lng": "106.378198", "lat": "29.612083\n"}, {"lng": "106.37833", "lat": "29.612105\n"}, {"lng": "106.37846", "lat": "29.61212\n"}, {"lng": "106.379693", "lat": "29.612105\n"}, {"lng": "106.380753", "lat": "29.61197\n"}, {"lng": "106.381605", "lat": "29.611756\n"}, {"lng": "106.383603", "lat": "29.611061\n"}, {"lng": "106.384098", "lat": "29.610913\n"}, {"lng": "106.384285", "lat": "29.610855\n"}, {"lng": "106.385345", "lat": "29.610528\n"}, {"lng": "106.38565", "lat": "29.610451\n"}, {"lng": "106.38565", "lat": "29.610451\n"}, {"lng": "106.385915", "lat": "29.610401\n"}, {"lng": "106.386206", "lat": "29.610345\n"}, {"lng": "106.386226", "lat": "29.610335\n"}, {"lng": "106.386403", "lat": "29.6103\n"}, {"lng": "106.38658", "lat": "29.61027\n"}, {"lng": "106.386611", "lat": "29.610255\n"}, {"lng": "106.386675", "lat": "29.610243\n"}, {"lng": "106.386825", "lat": "29.610236\n"}, {"lng": "106.386991", "lat": "29.610215\n"}, {"lng": "106.387395", "lat": "29.610166\n"}, {"lng": "106.387485", "lat": "29.610156\n"}, {"lng": "106.387591", "lat": "29.610146\n"}, {"lng": "106.387591", "lat": "29.610146\n"}, {"lng": "106.387638", "lat": "29.610136\n"}, {"lng": "106.38778", "lat": "29.610118\n"}, {"lng": "106.387863", "lat": "29.610113\n"}, {"lng": "106.388031", "lat": "29.610101\n"}, {"lng": "106.388351", "lat": "29.610085\n"}, {"lng": "106.389061", "lat": "29.610033\n"}, {"lng": "106.389386", "lat": "29.609993\n"}, {"lng": "106.389428", "lat": "29.609978\n"}, {"lng": "106.389523", "lat": "29.609993\n"}, {"lng": "106.389571", "lat": "29.61\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.389993", "lat": "29.610195\n"}, {"lng": "106.435588", "lat": "29.605548\n"}, {"lng": "106.438256", "lat": "29.605048\n"}, {"lng": "106.439735", "lat": "29.604535\n"}, {"lng": "106.443626", "lat": "29.603025\n"}, {"lng": "106.4472", "lat": "29.601625\n"}, {"lng": "106.451066", "lat": "29.600068\n"}, {"lng": "106.454213", "lat": "29.598905\n"}, {"lng": "106.45434", "lat": "29.59888\n"}, {"lng": "106.454888", "lat": "29.598818\n"}, {"lng": "106.456268", "lat": "29.59885\n"}, {"lng": "106.457346", "lat": "29.598828\n"}, {"lng": "106.457583", "lat": "29.5988\n"}, {"lng": "106.458478", "lat": "29.598606\n"}, {"lng": "106.459485", "lat": "29.598228\n"}, {"lng": "106.461946", "lat": "29.596961\n"}, {"lng": "106.463806", "lat": "29.595875\n"}, {"lng": "106.46479", "lat": "29.595176\n"}, {"lng": "106.465008", "lat": "29.595086\n"}, {"lng": "106.465338", "lat": "29.59501\n"}, {"lng": "106.465613", "lat": "29.594993\n"}, {"lng": "106.466701", "lat": "29.59499\n"}, {"lng": "106.467031", "lat": "29.59493\n"}, {"lng": "106.4674", "lat": "29.594861\n"}, {"lng": "106.467635", "lat": "29.594811\n"}, {"lng": "106.468015", "lat": "29.594733\n"}, {"lng": "106.468356", "lat": "29.594663\n"}, {"lng": "106.468688", "lat": "29.594606\n"}, {"lng": "106.469243", "lat": "29.594496\n"}, {"lng": "106.4697", "lat": "29.594405\n"}, {"lng": "106.470393", "lat": "29.594256\n"}, {"lng": "106.470938", "lat": "29.594128\n"}, {"lng": "106.471188", "lat": "29.594086\n"}, {"lng": "106.471315", "lat": "29.59407\n"}, {"lng": "106.471315", "lat": "29.59407\n"}, {"lng": "106.471381", "lat": "29.593996\n"}, {"lng": "106.471381", "lat": "29.593996\n"}, {"lng": "106.471381", "lat": "29.593996\n"}, {"lng": "106.471381", "lat": "29.593996\n"}, {"lng": "106.471381", "lat": "29.593996\n"}, {"lng": "106.471016", "lat": "29.59573\n"}, {"lng": "106.471043", "lat": "29.59598\n"}, {"lng": "106.471066", "lat": "29.596046\n"}, {"lng": "106.471141", "lat": "29.596221\n"}, {"lng": "106.47149", "lat": "29.596728\n"}, {"lng": "106.471711", "lat": "29.597083\n"}, {"lng": "106.471793", "lat": "29.597168\n"}, {"lng": "106.471921", "lat": "29.597321\n"}, {"lng": "106.472008", "lat": "29.59745\n"}, {"lng": "106.473231", "lat": "29.599268\n"}, {"lng": "106.474456", "lat": "29.600981\n"}, {"lng": "106.476253", "lat": "29.603555\n"}, {"lng": "106.478031", "lat": "29.605808\n"}, {"lng": "106.478705", "lat": "29.606413\n"}, {"lng": "106.479531", "lat": "29.606973\n"}, {"lng": "106.479635", "lat": "29.607038\n"}, {"lng": "106.48009", "lat": "29.607296\n"}, {"lng": "106.4814", "lat": "29.607835\n"}, {"lng": "106.483045", "lat": "29.608393\n"}, {"lng": "106.484661", "lat": "29.608958\n"}, {"lng": "106.486753", "lat": "29.609663\n"}, {"lng": "106.488121", "lat": "29.610041\n"}, {"lng": "106.488623", "lat": "29.610021\n"}, {"lng": "106.488958", "lat": "29.609928\n"}, {"lng": "106.489265", "lat": "29.609778\n"}, {"lng": "106.489535", "lat": "29.609585\n"}, {"lng": "106.489755", "lat": "29.609358\n"}, {"lng": "106.489908", "lat": "29.609111\n"}, {"lng": "106.490006", "lat": "29.608851\n"}, {"lng": "106.49004", "lat": "29.608458\n"}, {"lng": "106.490031", "lat": "29.60833\n"}, {"lng": "106.489563", "lat": "29.606326\n"}, {"lng": "106.489528", "lat": "29.606178\n"}, {"lng": "106.489513", "lat": "29.606031\n"}, {"lng": "106.48948", "lat": "29.604848\n"}, {"lng": "106.48942", "lat": "29.604678\n"}, {"lng": "106.489378", "lat": "29.604641\n"}, {"lng": "106.489325", "lat": "29.604611\n"}, {"lng": "106.489313", "lat": "29.604593\n"}, {"lng": "106.48927", "lat": "29.60456\n"}, {"lng": "106.489196", "lat": "29.604556\n"}, {"lng": "106.489078", "lat": "29.60457\n"}, {"lng": "106.48942", "lat": "29.60452\n"}, {"lng": "106.489513", "lat": "29.604593\n"}, {"lng": "106.489671", "lat": "29.604805\n"}, {"lng": "106.489826", "lat": "29.605506\n"}, {"lng": "106.489901", "lat": "29.605845\n"}, {"lng": "106.489911", "lat": "29.605966\n"}, {"lng": "106.489981", "lat": "29.606478\n"}, {"lng": "106.490048", "lat": "29.606725\n"}, {"lng": "106.490123", "lat": "29.607035\n"}, {"lng": "106.490426", "lat": "29.608278\n"}, {"lng": "106.49082", "lat": "29.60894\n"}, {"lng": "106.492993", "lat": "29.611308\n"}, {"lng": "106.493921", "lat": "29.611998\n"}, {"lng": "106.49428", "lat": "29.612191\n"}, {"lng": "106.496546", "lat": "29.613038\n"}, {"lng": "106.499858", "lat": "29.614171\n"}, {"lng": "106.501808", "lat": "29.614551\n"}, {"lng": "106.506008", "lat": "29.614793\n"}, {"lng": "106.511356", "lat": "29.615113\n"}, {"lng": "106.51573", "lat": "29.615883\n"}, {"lng": "106.52062", "lat": "29.6174\n"}, {"lng": "106.521103", "lat": "29.61761\n"}, {"lng": "106.523751", "lat": "29.618693\n"}, {"lng": "106.524405", "lat": "29.6188\n"}, {"lng": "106.525161", "lat": "29.61881\n"}, {"lng": "106.525318", "lat": "29.618796\n"}, {"lng": "106.526193", "lat": "29.618633\n"}, {"lng": "106.528783", "lat": "29.617955\n"}, {"lng": "106.5296", "lat": "29.617983\n"}, {"lng": "106.530508", "lat": "29.618173\n"}, {"lng": "106.530946", "lat": "29.618333\n"}, {"lng": "106.536373", "lat": "29.621093\n"}, {"lng": "106.538231", "lat": "29.621951\n"}, {"lng": "106.539586", "lat": "29.622285\n"}, {"lng": "106.541451", "lat": "29.622491\n"}, {"lng": "106.547163", "lat": "29.62288\n"}, {"lng": "106.551135", "lat": "29.62318\n"}, {"lng": "106.551746", "lat": "29.623071\n"}, {"lng": "106.552366", "lat": "29.622858\n"}, {"lng": "106.552928", "lat": "29.622525\n"}, {"lng": "106.553408", "lat": "29.622078\n"}, {"lng": "106.553761", "lat": "29.621568\n"}, {"lng": "106.553971", "lat": "29.621085\n"}, {"lng": "106.55433", "lat": "29.619071\n"}, {"lng": "106.554345", "lat": "29.61893\n"}, {"lng": "106.55461", "lat": "29.617645\n"}, {"lng": "106.555123", "lat": "29.616488\n"}, {"lng": "106.555801", "lat": "29.615525\n"}, {"lng": "106.556685", "lat": "29.614673\n"}, {"lng": "106.557566", "lat": "29.614041\n"}, {"lng": "106.558643", "lat": "29.613508\n"}, {"lng": "106.559913", "lat": "29.613148\n"}, {"lng": "106.565655", "lat": "29.611973\n"}, {"lng": "106.574231", "lat": "29.609888\n"}, {"lng": "106.581846", "lat": "29.606735\n"}, {"lng": "106.589951", "lat": "29.603261\n"}, {"lng": "106.594541", "lat": "29.6011\n"}, {"lng": "106.5959", "lat": "29.60005\n"}, {"lng": "106.596643", "lat": "29.599225\n"}, {"lng": "106.597645", "lat": "29.597795\n"}, {"lng": "106.598491", "lat": "29.595783\n"}, {"lng": "106.599025", "lat": "29.593788\n"}, {"lng": "106.599518", "lat": "29.591826\n"}, {"lng": "106.599483", "lat": "29.591545\n"}, {"lng": "106.599243", "lat": "29.590313\n"}, {"lng": "106.599315", "lat": "29.589813\n"}, {"lng": "106.599588", "lat": "29.588765\n"}, {"lng": "106.600148", "lat": "29.586796\n"}, {"lng": "106.600188", "lat": "29.586675\n"}, {"lng": "106.600201", "lat": "29.58652\n"}, {"lng": "106.600196", "lat": "29.586075\n"}, {"lng": "106.60011", "lat": "29.584358\n"}, {"lng": "106.600033", "lat": "29.584201\n"}, {"lng": "106.599591", "lat": "29.583591\n"}, {"lng": "106.59953", "lat": "29.583356\n"}, {"lng": "106.599535", "lat": "29.58319\n"}, {"lng": "106.599583", "lat": "29.582196\n"}, {"lng": "106.59954", "lat": "29.582101\n"}, {"lng": "106.599541", "lat": "29.58202\n"}, {"lng": "106.599566", "lat": "29.58186\n"}, {"lng": "106.599556", "lat": "29.58143\n"}, {"lng": "106.599531", "lat": "29.581238\n"}, {"lng": "106.59942", "lat": "29.580988\n"}, {"lng": "106.599075", "lat": "29.580548\n"}, {"lng": "106.598998", "lat": "29.580371\n"}, {"lng": "106.598826", "lat": "29.580243\n"}, {"lng": "106.598598", "lat": "29.580171\n"}, {"lng": "106.598381", "lat": "29.580156\n"}, {"lng": "106.598215", "lat": "29.580195\n"}, {"lng": "106.598066", "lat": "29.580266\n"}, {"lng": "106.597168", "lat": "29.580861\n"}, {"lng": "106.5971", "lat": "29.580881\n"}, {"lng": "106.596883", "lat": "29.580918\n"}, {"lng": "106.596485", "lat": "29.58094\n"}, {"lng": "106.596395", "lat": "29.580918\n"}, {"lng": "106.596351", "lat": "29.580896\n"}, {"lng": "106.596285", "lat": "29.580825\n"}, {"lng": "106.596246", "lat": "29.580695\n"}, {"lng": "106.596253", "lat": "29.580378\n"}, {"lng": "106.596355", "lat": "29.579646\n"}, {"lng": "106.596563", "lat": "29.579251\n"}, {"lng": "106.597333", "lat": "29.578206\n"}, {"lng": "106.597531", "lat": "29.578023\n"}, {"lng": "106.597761", "lat": "29.577653\n"}, {"lng": "106.597776", "lat": "29.5775\n"}, {"lng": "106.597778", "lat": "29.577413\n"}, {"lng": "106.597756", "lat": "29.577235\n"}, {"lng": "106.597618", "lat": "29.5769\n"}, {"lng": "106.597361", "lat": "29.576315\n"}, {"lng": "106.597266", "lat": "29.57608\n"}, {"lng": "106.597143", "lat": "29.576006\n"}, {"lng": "106.597116", "lat": "29.575966\n"}, {"lng": "106.597083", "lat": "29.57593\n"}, {"lng": "106.597056", "lat": "29.575915\n"}, {"lng": "106.596976", "lat": "29.575886\n"}, {"lng": "106.596916", "lat": "29.575878\n"}, {"lng": "106.596776", "lat": "29.575915\n"}, {"lng": "106.596406", "lat": "29.576011\n"}, {"lng": "106.596253", "lat": "29.576018\n"}, {"lng": "106.59586", "lat": "29.575971\n"}, {"lng": "106.595778", "lat": "29.575956\n"}, {"lng": "106.595226", "lat": "29.575818\n"}, {"lng": "106.595013", "lat": "29.575741\n"}, {"lng": "106.594976", "lat": "29.575726\n"}, {"lng": "106.594956", "lat": "29.575711\n"}, {"lng": "106.594896", "lat": "29.575681\n"}, {"lng": "106.594661", "lat": "29.575591\n"}, {"lng": "106.59453", "lat": "29.575545\n"}, {"lng": "106.594498", "lat": "29.575518\n"}, {"lng": "106.594478", "lat": "29.575486\n"}, {"lng": "106.59447", "lat": "29.575451\n"}, {"lng": "106.59447", "lat": "29.57541\n"}, {"lng": "106.594483", "lat": "29.575275\n"}, {"lng": "106.594473", "lat": "29.575185\n"}, {"lng": "106.594428", "lat": "29.57513\n"}, {"lng": "106.594391", "lat": "29.575121\n"}, {"lng": "106.59435", "lat": "29.575125\n"}, {"lng": "106.594305", "lat": "29.575135\n"}, {"lng": "106.594198", "lat": "29.575166\n"}, {"lng": "106.593661", "lat": "29.575371\n"}, {"lng": "106.593606", "lat": "29.575411\n"}, {"lng": "106.593476", "lat": "29.575548\n"}, {"lng": "106.593363", "lat": "29.575676\n"}, {"lng": "106.59325", "lat": "29.575738\n"}, {"lng": "106.593176", "lat": "29.57576\n"}, {"lng": "106.592536", "lat": "29.57602\n"}, {"lng": "106.592505", "lat": "29.576071\n"}, {"lng": "106.592468", "lat": "29.576196\n"}, {"lng": "106.592301", "lat": "29.576678\n"}, {"lng": "106.592231", "lat": "29.576746\n"}, {"lng": "106.592063", "lat": "29.576848\n"}, {"lng": "106.591801", "lat": "29.576965\n"}, {"lng": "106.591715", "lat": "29.57698\n"}, {"lng": "106.591633", "lat": "29.57697\n"}, {"lng": "106.591563", "lat": "29.57694\n"}, {"lng": "106.591481", "lat": "29.576833\n"}, {"lng": "106.591441", "lat": "29.576718\n"}, {"lng": "106.591441", "lat": "29.57665\n"}, {"lng": "106.59147", "lat": "29.576533\n"}, {"lng": "106.591456", "lat": "29.576468\n"}, {"lng": "106.591225", "lat": "29.575853\n"}, {"lng": "106.591078", "lat": "29.575711\n"}, {"lng": "106.590995", "lat": "29.575673\n"}, {"lng": "106.590653", "lat": "29.575616\n"}, {"lng": "106.590346", "lat": "29.575651\n"}, {"lng": "106.589585", "lat": "29.575773\n"}, {"lng": "106.58941", "lat": "29.57574\n"}, {"lng": "106.588855", "lat": "29.575533\n"}, {"lng": "106.58867", "lat": "29.575393\n"}, {"lng": "106.588263", "lat": "29.57508\n"}, {"lng": "106.58818", "lat": "29.575058\n"}, {"lng": "106.588093", "lat": "29.575065\n"}, {"lng": "106.588011", "lat": "29.575108\n"}, {"lng": "106.587836", "lat": "29.575231\n"}, {"lng": "106.587395", "lat": "29.575621\n"}, {"lng": "106.587358", "lat": "29.575683\n"}, {"lng": "106.587353", "lat": "29.575735\n"}, {"lng": "106.58738", "lat": "29.575775\n"}, {"lng": "106.587416", "lat": "29.575803\n"}, {"lng": "106.587458", "lat": "29.575811\n"}, {"lng": "106.587495", "lat": "29.575813\n"}, {"lng": "106.587595", "lat": "29.575806\n"}, {"lng": "106.587818", "lat": "29.575816\n"}, {"lng": "106.587845", "lat": "29.575825\n"}, {"lng": "106.587845", "lat": "29.575825\n"}, {"lng": "106.587845", "lat": "29.575825"}]}
\ No newline at end of file
lib/protocol/m300/OBDCAN_protocol_m300.py
View file @
d7eb491b
...
...
@@ -36,7 +36,7 @@ class OBDCAN_protocol_m300(M300Base):
#################################################
def
generateMsg
(
self
):
msg
=
self
.
IDENTIFY
FUNID
=
"000
4
"
#功能id
FUNID
=
"000
3
"
#功能id
waterCode
=
self
.
waterCode
#消息流水号
DEV_ID
=
self
.
devid2hexString
(
self
.
DEV_ID
)
#设备id
msgBody
=
self
.
getMsgBody
()
# 消息体
...
...
lib/protocol/report/GPSReport_protocol.py
View file @
d7eb491b
...
...
@@ -13,7 +13,7 @@ from lib.protocol.report.ProtocolBase import ProtocolBase
'''
class
GPSReport_protocol
(
ProtocolBase
):
def
__init__
(
self
,
msgCount
=
1
,
WATER_CODE
=
1000
,
DEV_ID
=
"M121501010001"
,
UTCTime
=
"2020-01-09 18:19:38"
,
latitude
=
40.22077
,
longitude
=
116.23128
,
speed
=
60
.9
,
directionAngle
=
80.8
,
elevation
=
2999.9
,
positionStar
=
3
,
Pdop
=
0.3
,
Hdop
=
0.4
,
Vdop
=
0.5
,
statusBit
=
175
,
valtage
=
36.9
,
OBDSpeed
=
60.9
,
engineSpeed
=
3000
,
GPSTotalMileage
=
12800
,
totalOil
=
100000
,
totalTime
=
2020002
,
GPSTimestamp
=
1578565178
):
def
__init__
(
self
,
msgCount
=
1
,
WATER_CODE
=
1000
,
DEV_ID
=
"M121501010001"
,
UTCTime
=
"2020-01-09 18:19:38"
,
latitude
=
40.22077
,
longitude
=
116.23128
,
speed
=
60
,
directionAngle
=
80.8
,
elevation
=
2999.9
,
positionStar
=
3
,
Pdop
=
0.3
,
Hdop
=
0.4
,
Vdop
=
0.5
,
statusBit
=
175
,
valtage
=
36.9
,
OBDSpeed
=
60.9
,
engineSpeed
=
3000
,
GPSTotalMileage
=
12800
,
totalOil
=
100000
,
totalTime
=
2020002
,
GPSTimestamp
=
1578565178
):
super
()
.
__init__
()
self
.
msgCount
=
int
(
msgCount
)
# 设置默认要发送的GPS数据包个数
...
...
lib/protocol/report/OBDReport_CAN_protocol.py
View file @
d7eb491b
...
...
@@ -9,7 +9,7 @@ from lib.protocol.report.ProtocolBase import ProtocolBase
class
OBDReport_CAN_protocol
(
ProtocolBase
):
def
__init__
(
self
,
msgCount
=
1
,
WATER_CODE
=
1000
,
DEV_ID
=
"M121501010001"
,
infoTime
=
"2020-01-10 16:29:19"
,
dataFlowCode
=
"ffffffffff"
,
protocolType
=
"0101"
,
fireStatus
=
1
,
ACCStatus
=
1
,
voltage
=
36.06
,
troubleLightStatus
=
0
,
toubleCodeCount
=
0
,
engineSpeed
=
4000
,
speed
=
60
,
meterMileage
=
128500
,
mileageStatisticsStyle
=
"01"
,
totalMileage
=
4129040
,
troubleMileage
=
500
,
totalOilExpend
=
3500
,
surplusOil
=
505
,
totalRunTime
=
50000000
,
totalEngineTime
=
5000
,
airIntoAisleTemperture
=
42
,
coolingLiquidTemperture
=
38
,
envTemperture
=
68
,
ariIntoPress
=
20
,
oilPressure
=
550
,
atmosphericPressure
=
120
,
airFlow
=
3600
,
valveLocationSensor
=
4000
,
acceleratorLocation
=
50
,
engineLoad
=
55
,
fuelTrim
=
34
,
fireAngle
=
800
,
B1S1oxygenSensorVoltage
=
18
,
B1S2oxygenSensorVoltage
=
20
,
B1S1oxygenSensorElectricity
=
13000
,
B1S2oxygenSensorElectricity
=
13200
,
momentOilExpend
=
15
,
meterOilExpend
=
20000
,
engineAbsoluteLoad
=
32
,
steeringWheelAngle
=
10
,
torquePercentage
=
31
,
gearsLocation
=
1
,
GPSSpeed
=
72.4
,
GPSMileage
=
380000
):
def
__init__
(
self
,
msgCount
=
1
,
WATER_CODE
=
1000
,
DEV_ID
=
"M121501010001"
,
infoTime
=
"2020-01-10 16:29:19"
,
dataFlowCode
=
"ffffffffff"
,
protocolType
=
"0101"
,
fireStatus
=
1
,
ACCStatus
=
1
,
voltage
=
12
,
troubleLightStatus
=
0
,
toubleCodeCount
=
0
,
engineSpeed
=
4000
,
speed
=
60
,
meterMileage
=
128500
,
mileageStatisticsStyle
=
"01"
,
totalMileage
=
4129040
,
troubleMileage
=
500
,
totalOilExpend
=
3500
,
surplusOil
=
505
,
totalRunTime
=
50000000
,
totalEngineTime
=
5000
,
airIntoAisleTemperture
=
42
,
coolingLiquidTemperture
=
38
,
envTemperture
=
68
,
ariIntoPress
=
20
,
oilPressure
=
550
,
atmosphericPressure
=
120
,
airFlow
=
3600
,
valveLocationSensor
=
4000
,
acceleratorLocation
=
50
,
engineLoad
=
55
,
fuelTrim
=
34
,
fireAngle
=
800
,
B1S1oxygenSensorVoltage
=
18
,
B1S2oxygenSensorVoltage
=
20
,
B1S1oxygenSensorElectricity
=
13000
,
B1S2oxygenSensorElectricity
=
13200
,
momentOilExpend
=
15
,
meterOilExpend
=
20000
,
engineAbsoluteLoad
=
32
,
steeringWheelAngle
=
10
,
torquePercentage
=
31
,
gearsLocation
=
1
,
GPSSpeed
=
72.4
,
GPSMileage
=
380000
):
pass
self
.
msgCount
=
int
(
msgCount
)
# 设置默认要发送的数据包个数
...
...
@@ -59,6 +59,8 @@ class OBDReport_CAN_protocol(ProtocolBase):
self
.
GPSSpeed
=
float
(
GPSSpeed
)
# 设置GPS车速
self
.
GPSMileage
=
int
(
GPSMileage
)
# 设置GPS里程
def
setInfoTime
(
self
,
data
):
self
.
infoTime
=
data
def
setFireStatus
(
self
,
data
):
#点火状态
self
.
fireStatus
=
data
def
setACCStatus
(
self
,
data
):
#ACC状态
...
...
@@ -77,6 +79,8 @@ class OBDReport_CAN_protocol(ProtocolBase):
self
.
totalOilExpend
=
data
def
setSurplusOil
(
self
,
data
):
#剩余油量
self
.
surplusOil
=
data
def
setTotalRunTime
(
self
,
data
):
#车辆总运行时间
self
.
totalRunTime
=
data
#####################################################
...
...
lib/socket/service/ProtocolSimulaterService.py
View file @
d7eb491b
...
...
@@ -29,11 +29,9 @@ class ProtocolSimulaterService():
self
.
gpsLineIndex
=
0
#GPS 轨迹索引
self
.
travelStatus
=
0
#0,表示为行驶,1表示开始行驶
self
.
carId
=
""
#车机号
self
.
OBDdata
=
[
#定义要发送的obd数据
{
"fireStatus"
:
1
,
"ACCStatus"
:
0
,
"engineSpeed"
:
300
,
"speed"
:
0
,
"meterMileage"
:
6000
,
"totailMileage"
:
600
,
"totalOilExpen"
:
30
},
{
"fireStatus"
:
1
,
"ACCStatus"
:
0
,
"engineSpeed"
:
300
,
"speed"
:
0
,
"meterMileage"
:
6000
,
"totailMileage"
:
600
,
"totalOilExpen"
:
30
},
{
"fireStatus"
:
1
,
"ACCStatus"
:
0
,
"engineSpeed"
:
300
,
"speed"
:
0
,
"meterMileage"
:
6000
,
"totailMileage"
:
600
,
"totalOilExpen"
:
30
},
]
self
.
sn
=
0
#消息流水号
# 定义要发送的obd数据
self
.
OBDdata
=
{
"fireStatus"
:
1
,
"ACCStatus"
:
0
,
"engineSpeed"
:
300
,
"speed"
:
0
,
"meterMileage"
:
6000
,
"totailMileage"
:
600
,
"totalOilExpen"
:
30
,
"totalRunTime"
:
10
}
self
.
OBDdataIndex
=
0
#发发送OBD数据的索引
#设置套接字
...
...
@@ -71,20 +69,32 @@ class ProtocolSimulaterService():
gpsMsg
=
self
.
genGPSMsg
(
latitude
,
longitude
)
elif
self
.
travelStatus
==
1
:
if
self
.
gpsLineIndex
<
len
(
self
.
gpsLine
):
OBDMsg
=
self
.
genOBDMsg
()
OBDMsg
=
self
.
genOBDMsg
(
self
.
OBDdata
[
"fireStatus"
],
self
.
OBDdata
[
"ACCStatus"
],
self
.
OBDdata
[
"engineSpeed"
],
\
self
.
OBDdata
[
"speed"
],
self
.
OBDdata
[
"meterMileage"
],
self
.
OBDdata
[
"totailMileage"
],
\
self
.
OBDdata
[
"totalOilExpen"
],
self
.
OBDdata
[
"totalRunTime"
])
self
.
OBDdata
[
"engineSpeed"
]
=
3000
self
.
OBDdata
[
"speed"
]
=
60
self
.
OBDdata
[
"meterMileage"
]
=
self
.
OBDdata
[
"meterMileage"
]
+
int
(
self
.
sendDur
*
(
self
.
OBDdata
[
"speed"
]
*
1000
/
3600
))
self
.
OBDdata
[
"totailMileage"
]
=
self
.
OBDdata
[
"totailMileage"
]
+
int
(
self
.
sendDur
*
(
self
.
OBDdata
[
"speed"
]
*
1000
/
3600
))
self
.
OBDdata
[
"totalOilExpen"
]
=
self
.
OBDdata
[
"totalOilExpen"
]
+
int
((
self
.
sendDur
*
(
self
.
OBDdata
[
"speed"
]
*
1000
/
3600
))
*
(
1000
/
(
15
*
1000
)))
self
.
OBDdata
[
"totalRunTime"
]
=
self
.
OBDdata
[
"totalRunTime"
]
+
self
.
sendDur
latitude
=
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lat"
]
longitude
=
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lng"
]
gpsMsg
=
self
.
genGPSMsg
(
latitude
,
longitude
)
self
.
gpsLineIndex
=
self
.
gpsLineIndex
+
1
elif
self
.
gpsLineIndex
==
len
(
self
.
gpsLine
):
self
.
stopTravel
()
self
.
websocket
.
send
(
"gps轨迹跑完,自动停止行驶!"
)
if
OBDMsg
!=
""
:
self
.
sendMsg
(
OBDMsg
)
self
.
sn
=
self
.
sn
+
1
type
=
self
.
getMsgFunId
(
OBDMsg
)
info
=
type
+
">>>>:"
+
OBDMsg
self
.
websocket
.
send
(
info
)
if
gpsMsg
!=
""
:
sleep
(
0.1
)
self
.
sendMsg
(
gpsMsg
)
self
.
sn
=
self
.
sn
+
1
type
=
self
.
getMsgFunId
(
gpsMsg
)
info
=
type
+
">>>>:"
+
gpsMsg
self
.
websocket
.
send
(
info
)
...
...
@@ -166,16 +176,19 @@ class ProtocolSimulaterService():
if
msgFunId
==
"8205"
:
msg
=
Common_response
(
resId
=
"8205"
)
.
generateCommonMsg
()
self
.
sendMsg
(
msg
)
self
.
sn
=
self
.
sn
+
1
type
=
self
.
getMsgFunId
(
msg
)
self
.
websocket
.
send
(
type
+
">>>>设置GPSR通信参数应答:"
+
msg
)
elif
msgFunId
==
"8206"
:
msg
=
Common_response
(
resId
=
"8206"
)
.
generateCommonMsg
()
self
.
sendMsg
(
msg
)
self
.
sn
=
self
.
sn
+
1
type
=
self
.
getMsgFunId
(
msg
)
self
.
websocket
.
send
(
type
+
">>>>设置车辆OBD适配信息应答:"
+
msg
)
elif
msgFunId
==
"8300"
:
msg
=
Update_response
()
.
generateUpdateMsg
()
self
.
sendMsg
(
msg
)
self
.
sn
=
self
.
sn
+
1
type
=
self
.
getMsgFunId
(
msg
)
self
.
websocket
.
send
(
type
+
">>>>升级_平台通知终端远程升级应答:"
+
msg
)
...
...
@@ -188,29 +201,35 @@ class ProtocolSimulaterService():
#点火,发送点火事件
def
fireOn
(
self
):
fireOnEventObj
=
EventReport_protocol
(
DEV_ID
=
self
.
carId
)
fireOnEventObj
=
EventReport_protocol
(
DEV_ID
=
self
.
carId
,
WATER_CODE
=
self
.
sn
)
gpsData
=
self
.
genGPSData
(
self
.
gpsLine
[
0
][
"lat"
],
self
.
gpsLine
[
0
][
"lng"
])
fireOnEventObj
.
setGPSPkg
(
gpsData
)
fireOnEventObj
.
setEventType
(
"0010"
)
firOnEventMsg
=
fireOnEventObj
.
generateEventMsg
()
type
=
self
.
getMsgFunId
(
firOnEventMsg
)
self
.
sendMsg
(
firOnEventMsg
)
self
.
sn
=
self
.
sn
+
1
self
.
websocket
.
send
(
type
+
">>>>:"
+
firOnEventMsg
)
sleep
(
0.1
)
gpsMsg
=
self
.
genGPSMsg
(
self
.
gpsLine
[
0
][
"lat"
],
self
.
gpsLine
[
0
][
"lng"
])
type
=
self
.
getMsgFunId
(
gpsMsg
)
self
.
sendMsg
(
gpsMsg
)
self
.
sn
=
self
.
sn
+
1
self
.
websocket
.
send
(
type
+
">>>>:"
+
gpsMsg
)
sleep
(
0.1
)
OBDMsg
=
self
.
genOBDMsg
()
type
=
self
.
getMsgFunId
(
OBDMsg
)
self
.
sendMsg
(
OBDMsg
)
self
.
sn
=
self
.
sn
+
1
self
.
websocket
.
send
(
type
+
">>>>:"
+
OBDMsg
)
# 熄火,发送熄火事件
def
fireOff
(
self
):
gpsLineIndex
=
self
.
gpsLineIndex
if
gpsLineIndex
>=
len
(
self
.
gpsLine
):
gpsLineIndex
=
gpsLineIndex
-
1
fireOffEventObj
=
EventReport_protocol
(
DEV_ID
=
self
.
carId
)
gpsData
=
self
.
genGPSData
(
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lat"
],
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lng"
])
gpsData
=
self
.
genGPSData
(
self
.
gpsLine
[
gpsLineIndex
][
"lat"
],
self
.
gpsLine
[
gpsLineIndex
][
"lng"
])
fireOffEventObj
.
setGPSPkg
(
gpsData
)
fireOffEventObj
.
setEventType
(
"0011"
)
fireOffEventMsg
=
fireOffEventObj
.
generateEventMsg
()
...
...
@@ -218,14 +237,15 @@ class ProtocolSimulaterService():
self
.
sendMsg
(
fireOffEventMsg
)
self
.
websocket
.
send
(
type
+
">>>>:"
+
fireOffEventMsg
)
sleep
(
0.1
)
gpsMsg
=
self
.
genGPSMsg
(
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lat"
],
self
.
gpsLine
[
self
.
gpsLineIndex
][
"lng"
])
gpsMsg
=
self
.
genGPSMsg
(
self
.
gpsLine
[
gpsLineIndex
][
"lat"
],
self
.
gpsLine
[
gpsLineIndex
][
"lng"
])
type
=
self
.
getMsgFunId
(
gpsMsg
)
self
.
sendMsg
(
gpsMsg
)
self
.
sn
=
self
.
sn
+
1
self
.
websocket
.
send
(
type
+
">>>>:"
+
gpsMsg
)
#根据特定参数,生成GPS消息
def
genGPSMsg
(
self
,
latitude
,
longtitude
):
gpsObj
=
GPSReport_protocol
(
DEV_ID
=
self
.
carId
)
gpsObj
=
GPSReport_protocol
(
DEV_ID
=
self
.
carId
,
WATER_CODE
=
self
.
sn
)
gpsObj
.
setLatitude
(
latitude
)
gpsObj
.
setLongitude
(
longtitude
)
timeS
=
int
(
time
.
time
())
-
8
*
3600
...
...
@@ -237,7 +257,7 @@ class ProtocolSimulaterService():
return
msg
#根据特定参数,生成GPS消息体,不包含消息头
def
genGPSData
(
self
,
latitude
,
longtitude
):
gpsObj
=
GPSReport_protocol
(
DEV_ID
=
self
.
carId
)
gpsObj
=
GPSReport_protocol
(
DEV_ID
=
self
.
carId
,
WATER_CODE
=
self
.
sn
)
gpsObj
.
setLatitude
(
latitude
)
gpsObj
.
setLongitude
(
longtitude
)
timeS
=
int
(
time
.
time
())
-
8
*
3600
...
...
@@ -250,15 +270,20 @@ class ProtocolSimulaterService():
# 根据特定参数,生成OBD CAN消息
def
genOBDMsg
(
self
,
fireStatus
=
1
,
ACCStatus
=
0
,
engineSpeed
=
300
,
speed
=
0
,
meterMileage
=
6000
,
\
totailMileage
=
600
,
totalOilExpend
=
30
):
OBDObj
=
OBDReport_CAN_protocol
(
DEV_ID
=
self
.
carId
)
OBDObj
.
setFireStatus
(
1
)
OBDObj
.
setACCStatus
(
0
)
OBDObj
.
setEngineSpeed
(
300
)
OBDObj
.
setSpeed
(
0
)
OBDObj
.
setMeterMileage
(
600
)
OBDObj
.
setTotalMileage
(
600
)
OBDObj
.
setTotalOilExpend
(
30
)
totailMileage
=
600
,
totalOilExpend
=
30
,
totalRunTime
=
10
):
OBDObj
=
OBDReport_CAN_protocol
(
DEV_ID
=
self
.
carId
,
WATER_CODE
=
self
.
sn
)
timeS
=
int
(
time
.
time
())
-
8
*
3600
timeArray
=
time
.
localtime
(
timeS
)
UTCTime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
OBDObj
.
setInfoTime
(
UTCTime
)
OBDObj
.
setFireStatus
(
fireStatus
)
OBDObj
.
setACCStatus
(
ACCStatus
)
OBDObj
.
setEngineSpeed
(
engineSpeed
)
# 设置发动机转速
OBDObj
.
setSpeed
(
speed
)
# 设置车辆速度
OBDObj
.
setMeterMileage
(
meterMileage
)
# 设置仪表里程值
OBDObj
.
setTotalMileage
(
totailMileage
)
# 设置总里程值
OBDObj
.
setTotalOilExpend
(
totalOilExpend
)
# 设置总耗油量
OBDObj
.
setTotalRunTime
(
totalRunTime
)
# 设置车辆运行时间
msg
=
OBDObj
.
generateOBDReportCANMsg
()
return
msg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment