Skip to content

Commit 5767b70

Browse files
committed
Custom UI support
1 parent b36a611 commit 5767b70

13 files changed

+395
-4
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Use filtered current for axis decoupling.
2020
* Odometer is now persistent after firmware updates.
2121
* Added hw runtime counter (see hw_status in terminal)
22+
* Added custom UI support.
2223

2324
=== FW 5.02 ===
2425
* IMU calibration improvement.

Makefile

100644100755
+6-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ CSRC = $(STARTUPSRC) \
169169
$(IMUSRC) \
170170
$(LORASRC) \
171171
$(COMPRESSIONSRC) \
172-
$(BLACKMAGICSRC)
172+
$(BLACKMAGICSRC) \
173+
qmlui/qmlui.c
173174

174175
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
175176
# setting.
@@ -211,7 +212,10 @@ INCDIR = $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
211212
$(IMUINC) \
212213
$(LORAINC) \
213214
$(COMPRESSIONINC) \
214-
$(BLACKMAGICINC)
215+
$(BLACKMAGICINC) \
216+
qmlui \
217+
qmlui/hw \
218+
qmlui/app
215219

216220
#
217221
# Project, sources and paths

commands.c

+90
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include "minilzo.h"
4949
#include "mempools.h"
5050
#include "bms.h"
51+
#include "qmlui.h"
5152

5253
#include <math.h>
5354
#include <string.h>
@@ -70,6 +71,7 @@ static void(* volatile send_func_blocking)(unsigned char *data, unsigned int len
7071
static void(* volatile send_func_nrf)(unsigned char *data, unsigned int len) = 0;
7172
static void(* volatile send_func_can_fwd)(unsigned char *data, unsigned int len) = 0;
7273
static void(* volatile appdata_func)(unsigned char *data, unsigned int len) = 0;
74+
static void(* volatile hwdata_func)(unsigned char *data, unsigned int len) = 0;
7375
static disp_pos_mode display_position_mode;
7476
static mutex_t print_mutex;
7577
static mutex_t send_buffer_mutex;
@@ -224,6 +226,26 @@ void commands_process_packet(unsigned char *data, unsigned int len,
224226
send_buffer[ind++] = 0;
225227
#endif
226228

229+
#ifdef QMLUI_SOURCE_HW
230+
#ifdef QMLUI_HW_FULLSCREEN
231+
send_buffer[ind++] = 2;
232+
#else
233+
send_buffer[ind++] = 1;
234+
#endif
235+
#else
236+
send_buffer[ind++] = 0;
237+
#endif
238+
239+
#ifdef QMLUI_SOURCE_APP
240+
#ifdef QMLUI_APP_FULLSCREEN
241+
send_buffer[ind++] = 2;
242+
#else
243+
send_buffer[ind++] = 1;
244+
#endif
245+
#else
246+
send_buffer[ind++] = 0;
247+
#endif
248+
227249
fw_version_sent_cnt++;
228250

229251
reply_func(send_buffer, ind);
@@ -688,6 +710,12 @@ void commands_process_packet(unsigned char *data, unsigned int len,
688710
}
689711
break;
690712

713+
case COMM_CUSTOM_HW_DATA:
714+
if (hwdata_func) {
715+
hwdata_func(data, len);
716+
}
717+
break;
718+
691719
case COMM_NRF_START_PAIRING: {
692720
int32_t ind = 0;
693721
nrf_driver_start_pairing(buffer_get_int32(data, &ind));
@@ -1268,6 +1296,54 @@ void commands_process_packet(unsigned char *data, unsigned int len,
12681296
comm_can_psw_switch(id, is_on, plot);
12691297
} break;
12701298

1299+
case COMM_GET_QML_UI_HW: {
1300+
#ifdef QMLUI_SOURCE_HW
1301+
int32_t ind = 0;
1302+
1303+
int32_t len_qml = buffer_get_int32(data, &ind);
1304+
int32_t ofs_qml = buffer_get_int32(data, &ind);
1305+
1306+
if ((len_qml + ofs_qml) > DATA_QML_HW_SIZE || len_qml > (PACKET_MAX_PL_LEN - 10)) {
1307+
break;
1308+
}
1309+
1310+
chMtxLock(&send_buffer_mutex);
1311+
ind = 0;
1312+
send_buffer_global[ind++] = packet_id;
1313+
buffer_append_int32(send_buffer_global, DATA_QML_HW_SIZE, &ind);
1314+
buffer_append_int32(send_buffer_global, ofs_qml, &ind);
1315+
memcpy(send_buffer_global + ind, data_qml_hw + ofs_qml, len_qml);
1316+
ind += len_qml;
1317+
reply_func(send_buffer_global, ind);
1318+
1319+
chMtxUnlock(&send_buffer_mutex);
1320+
#endif
1321+
} break;
1322+
1323+
case COMM_GET_QML_UI_APP: {
1324+
#ifdef QMLUI_SOURCE_APP
1325+
int32_t ind = 0;
1326+
1327+
int32_t len_qml = buffer_get_int32(data, &ind);
1328+
int32_t ofs_qml = buffer_get_int32(data, &ind);
1329+
1330+
if ((len_qml + ofs_qml) > DATA_QML_APP_SIZE || len_qml > (PACKET_MAX_PL_LEN - 10)) {
1331+
break;
1332+
}
1333+
1334+
chMtxLock(&send_buffer_mutex);
1335+
ind = 0;
1336+
send_buffer_global[ind++] = packet_id;
1337+
buffer_append_int32(send_buffer_global, DATA_QML_APP_SIZE, &ind);
1338+
buffer_append_int32(send_buffer_global, ofs_qml, &ind);
1339+
memcpy(send_buffer_global + ind, data_qml_app + ofs_qml, len_qml);
1340+
ind += len_qml;
1341+
reply_func(send_buffer_global, ind);
1342+
1343+
chMtxUnlock(&send_buffer_mutex);
1344+
#endif
1345+
} break;
1346+
12711347
// Blocking commands. Only one of them runs at any given time, in their
12721348
// own thread. If other blocking commands come before the previous one has
12731349
// finished, they are discarded.
@@ -1373,6 +1449,10 @@ void commands_set_app_data_handler(void(*func)(unsigned char *data, unsigned int
13731449
appdata_func = func;
13741450
}
13751451

1452+
void commands_set_hw_data_handler(void(*func)(unsigned char *data, unsigned int len)) {
1453+
hwdata_func = func;
1454+
}
1455+
13761456
void commands_send_app_data(unsigned char *data, unsigned int len) {
13771457
int32_t index = 0;
13781458
chMtxLock(&send_buffer_mutex);
@@ -1383,6 +1463,16 @@ void commands_send_app_data(unsigned char *data, unsigned int len) {
13831463
chMtxUnlock(&send_buffer_mutex);
13841464
}
13851465

1466+
void commands_send_hw_data(unsigned char *data, unsigned int len) {
1467+
int32_t index = 0;
1468+
chMtxLock(&send_buffer_mutex);
1469+
send_buffer_global[index++] = COMM_CUSTOM_HW_DATA;
1470+
memcpy(send_buffer_global + index, data, len);
1471+
index += len;
1472+
commands_send_packet(send_buffer_global, index);
1473+
chMtxUnlock(&send_buffer_mutex);
1474+
}
1475+
13861476
void commands_send_gpd_buffer_notify(void) {
13871477
int32_t index = 0;
13881478
uint8_t buffer[1];

commands.h

+2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ void commands_send_experiment_samples(float *samples, int len);
3737
void commands_fwd_can_frame(int len, unsigned char *data, uint32_t id, bool is_extended);
3838
disp_pos_mode commands_get_disp_pos_mode(void);
3939
void commands_set_app_data_handler(void(*func)(unsigned char *data, unsigned int len));
40+
void commands_set_hw_data_handler(void(*func)(unsigned char *data, unsigned int len));
4041
void commands_send_app_data(unsigned char *data, unsigned int len);
42+
void commands_send_hw_data(unsigned char *data, unsigned int len);
4143
void commands_send_gpd_buffer_notify(void);
4244
void commands_send_mcconf(COMM_PACKET_ID packet_id, mc_configuration *mcconf);
4345
void commands_send_appconf(COMM_PACKET_ID packet_id, app_configuration *appconf);

conf_general.h

+19-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define FW_VERSION_MAJOR 5
2525
#define FW_VERSION_MINOR 03
2626
// Set to 0 for building a release and iterate during beta test builds
27-
#define FW_TEST_VERSION_NUMBER 24
27+
#define FW_TEST_VERSION_NUMBER 25
2828

2929
#include "datatypes.h"
3030

@@ -187,6 +187,24 @@
187187
#include USER_APP_CONF
188188
#endif
189189

190+
// This is how to provide a custom UI in VESC Tool. The UI can be created and tested in the
191+
// scripting page, then the source files can be exported. The defines below use the exported
192+
// files to provide the custom UI when VESC Tool connects.
193+
//
194+
// The intention if the HW gui is to be part of the HW-file and the app gui is for custom apps.
195+
// Both can be used at the same time.
196+
//
197+
// Defining QMLUI_HW_FULLSCREEN and/or QMLUI_APP_FULLSCREEN will disable the other pages in the
198+
// mobile version of VESC Tool.
199+
//
200+
//#define QMLUI_SOURCE_HW "qmlui/hw/qmlui_example_hw.c"
201+
//#define QMLUI_HEADER_HW "qmlui/hw/qmlui_example_hw.h"
202+
//#define QMLUI_HW_FULLSCREEN
203+
//
204+
//#define QMLUI_SOURCE_APP "qmlui/app/qmlui_example_app.c"
205+
//#define QMLUI_HEADER_APP "qmlui/app/qmlui_example_app.h"
206+
//#define QMLUI_APP_FULLSCREEN
207+
190208
/*
191209
* Select default user motor configuration
192210
*/

datatypes.h

+3
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,9 @@ typedef enum {
969969
COMM_BMS_HW_DATA,
970970
COMM_GET_BATTERY_CUT,
971971
COMM_BM_HALT_REQ,
972+
COMM_GET_QML_UI_HW,
973+
COMM_GET_QML_UI_APP,
974+
COMM_CUSTOM_HW_DATA,
972975
} COMM_PACKET_ID;
973976

974977
// CAN commands

hwconf/hw_es19.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// HW properties
2828
#define HW_HAS_3_SHUNTS
2929
#define HW_HAS_PHASE_SHUNTS
30-
//#define HW_HAS_PHASE_FILTERS
30+
#define HW_HAS_PHASE_FILTERS
3131
#define HW_HAS_SI8900
3232

3333
// Macros

qmlui/app/qmlui_example_app.c

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
// This file is autogenerated by VESC Tool
2+
3+
#include "qmlui_example_app.h"
4+
5+
uint8_t data_qml_app[1632] = {
6+
0x00, 0x00, 0x36, 0xbe, 0x78, 0xda, 0xed, 0x5b, 0x6d, 0x53, 0xe3, 0x36, 0x10, 0xfe, 0xdc, 0xfc,
7+
0x8a, 0x6d, 0x3e, 0x85, 0x1b, 0x70, 0x1c, 0xe8, 0xf5, 0x25, 0xd7, 0xe9, 0x34, 0x04, 0xb8, 0xcb,
8+
0x0c, 0x70, 0x69, 0x12, 0x60, 0x98, 0xe9, 0x17, 0xc5, 0xde, 0x24, 0x2a, 0xb6, 0xe5, 0x93, 0x65,
9+
0x42, 0xda, 0xc9, 0x7f, 0xef, 0xca, 0x76, 0xde, 0x20, 0xb1, 0x4d, 0x80, 0x0e, 0x14, 0x7b, 0x06,
10+
0x12, 0x5b, 0xbb, 0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 0x4f, 0xf9, 0x37, 0x80, 0x78, 0xee, 0x8a,
100+
0x55, 0xf1, 0x9d, 0xac, 0x8a, 0xf1, 0xb7, 0xe9, 0xe2, 0x2d, 0x87, 0x1e, 0x77, 0x71, 0xf9, 0x3d,
101+
0x05, 0x9d, 0xd7, 0xcc, 0xe1, 0xb7, 0x18, 0x35, 0x2c, 0x1e, 0xeb, 0xd7, 0xb2, 0x6e, 0x99, 0xa3,
102+
0x4b, 0xe0, 0xa2, 0x06, 0xca, 0xd0, 0xf3, 0xa2, 0x35, 0x68, 0x25, 0x9e, 0x12, 0x7d, 0x64, 0xf7,
103+
0x2b, 0x51, 0x69, 0x11, 0x9c, 0x9e, 0xe4, 0xc3, 0x21, 0xca, 0x87, 0xe1, 0xd1, 0xc0, 0x9c, 0xbd,
104+
0x92, 0x11, 0xb4, 0x85, 0x54, 0x54, 0x32, 0x3c, 0xaa, 0x82, 0x68, 0x57, 0x76, 0xd6, 0x21, 0xb3,
105+
0x5a, 0x85, 0x2e, 0x7a, 0x76, 0xec, 0xaf, 0x7e, 0x97, 0x48, 0x4e, 0xb4, 0x7b, 0xe0, 0x06, 0xa0,
106+
0x04, 0xdc, 0x20, 0xfa, 0xd1, 0x8b, 0x3a, 0xae, 0x50, 0x42, 0xce, 0x7c, 0x2d, 0xa5, 0xcd, 0x81,
107+
0x67, 0x37, 0xb4, 0xa9, 0xca, 0x4e, 0x46, 0xf4, 0xa6, 0xa5, 0x7f, 0x01, 0xfa, 0x6d, 0xe9, 0xe8,
108+
};

qmlui/app/qmlui_example_app.h

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// This file is autogenerated by VESC Tool
2+
3+
#ifndef QMLUI_EXAMPLE_APP_H_
4+
#define QMLUI_EXAMPLE_APP_H_
5+
6+
#include "datatypes.h"
7+
#include <stdint.h>
8+
#include <stdbool.h>
9+
10+
// Constants
11+
#define DATA_QML_APP_SIZE 1632
12+
13+
// Variables
14+
extern uint8_t data_qml_app[];
15+
16+
// QMLUI_EXAMPLE_APP_H_
17+
#endif

0 commit comments

Comments
 (0)