Add CACHE_STATUS UART poll and dashboard live stream.

Combine cached accel and tap in one low-overhead master command for ~16 ms
host polling. The dashboard uses a single live-stream toggle plus per-slave
accel-stream controls; fix live_stream state so polling is not cleared every
slow client refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-29 20:57:54 +02:00
co-authored by Cursor
parent a8d4d42920
commit f512936d97
21 changed files with 764 additions and 377 deletions
+237 -95
View File
@@ -46,6 +46,8 @@ const (
MessageType_BATTERY_STATUS MessageType = 26
MessageType_TAP_NOTIFY MessageType = 27
MessageType_TAP_SNAPSHOT MessageType = 28
// * Combined cached accel + tap poll (one UART round-trip, ~16 ms cadence).
MessageType_CACHE_STATUS MessageType = 29
)
// Enum value maps for MessageType.
@@ -73,6 +75,7 @@ var (
26: "BATTERY_STATUS",
27: "TAP_NOTIFY",
28: "TAP_SNAPSHOT",
29: "CACHE_STATUS",
}
MessageType_value = map[string]int32{
"UNKNOWN": 0,
@@ -97,6 +100,7 @@ var (
"BATTERY_STATUS": 26,
"TAP_NOTIFY": 27,
"TAP_SNAPSHOT": 28,
"CACHE_STATUS": 29,
}
)
@@ -215,6 +219,8 @@ type UartMessage struct {
// *UartMessage_TapNotifyResponse
// *UartMessage_TapSnapshotRequest
// *UartMessage_TapSnapshotResponse
// *UartMessage_CacheStatusRequest
// *UartMessage_CacheStatusResponse
Payload isUartMessage_Payload `protobuf_oneof:"payload"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
@@ -543,6 +549,24 @@ func (x *UartMessage) GetTapSnapshotResponse() *TapSnapshotResponse {
return nil
}
func (x *UartMessage) GetCacheStatusRequest() *CacheStatusRequest {
if x != nil {
if x, ok := x.Payload.(*UartMessage_CacheStatusRequest); ok {
return x.CacheStatusRequest
}
}
return nil
}
func (x *UartMessage) GetCacheStatusResponse() *CacheStatusResponse {
if x != nil {
if x, ok := x.Payload.(*UartMessage_CacheStatusResponse); ok {
return x.CacheStatusResponse
}
}
return nil
}
type isUartMessage_Payload interface {
isUartMessage_Payload()
}
@@ -671,6 +695,14 @@ type UartMessage_TapSnapshotResponse struct {
TapSnapshotResponse *TapSnapshotResponse `protobuf:"bytes,32,opt,name=tap_snapshot_response,json=tapSnapshotResponse,proto3,oneof"`
}
type UartMessage_CacheStatusRequest struct {
CacheStatusRequest *CacheStatusRequest `protobuf:"bytes,33,opt,name=cache_status_request,json=cacheStatusRequest,proto3,oneof"`
}
type UartMessage_CacheStatusResponse struct {
CacheStatusResponse *CacheStatusResponse `protobuf:"bytes,34,opt,name=cache_status_response,json=cacheStatusResponse,proto3,oneof"`
}
func (*UartMessage_AckPayload) isUartMessage_Payload() {}
func (*UartMessage_EchoPayload) isUartMessage_Payload() {}
@@ -733,6 +765,10 @@ func (*UartMessage_TapSnapshotRequest) isUartMessage_Payload() {}
func (*UartMessage_TapSnapshotResponse) isUartMessage_Payload() {}
func (*UartMessage_CacheStatusRequest) isUartMessage_Payload() {}
func (*UartMessage_CacheStatusResponse) isUartMessage_Payload() {}
type Ack struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
@@ -2163,6 +2199,97 @@ func (x *TapSnapshotResponse) GetEvents() []*TapEvent {
return nil
}
// * Host → master: one-shot read of subscribed cached slave data (no request body).
type CacheStatusRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CacheStatusRequest) Reset() {
*x = CacheStatusRequest{}
mi := &file_uart_messages_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CacheStatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CacheStatusRequest) ProtoMessage() {}
func (x *CacheStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CacheStatusRequest.ProtoReflect.Descriptor instead.
func (*CacheStatusRequest) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{24}
}
type CacheStatusResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// * Slaves with accel_stream_enabled.
Accel []*AccelSample `protobuf:"bytes,1,rep,name=accel,proto3" json:"accel,omitempty"`
// * Slaves with any tap notify flag; pending taps are consumed (like TAP_SNAPSHOT).
Taps []*TapEvent `protobuf:"bytes,2,rep,name=taps,proto3" json:"taps,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CacheStatusResponse) Reset() {
*x = CacheStatusResponse{}
mi := &file_uart_messages_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CacheStatusResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CacheStatusResponse) ProtoMessage() {}
func (x *CacheStatusResponse) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CacheStatusResponse.ProtoReflect.Descriptor instead.
func (*CacheStatusResponse) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{25}
}
func (x *CacheStatusResponse) GetAccel() []*AccelSample {
if x != nil {
return x.Accel
}
return nil
}
func (x *CacheStatusResponse) GetTaps() []*TapEvent {
if x != nil {
return x.Taps
}
return nil
}
type EspNowUnicastTestRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ClientId uint32 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
@@ -2173,7 +2300,7 @@ type EspNowUnicastTestRequest struct {
func (x *EspNowUnicastTestRequest) Reset() {
*x = EspNowUnicastTestRequest{}
mi := &file_uart_messages_proto_msgTypes[24]
mi := &file_uart_messages_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2185,7 +2312,7 @@ func (x *EspNowUnicastTestRequest) String() string {
func (*EspNowUnicastTestRequest) ProtoMessage() {}
func (x *EspNowUnicastTestRequest) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[24]
mi := &file_uart_messages_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2198,7 +2325,7 @@ func (x *EspNowUnicastTestRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use EspNowUnicastTestRequest.ProtoReflect.Descriptor instead.
func (*EspNowUnicastTestRequest) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{24}
return file_uart_messages_proto_rawDescGZIP(), []int{26}
}
func (x *EspNowUnicastTestRequest) GetClientId() uint32 {
@@ -2225,7 +2352,7 @@ type EspNowUnicastTestResponse struct {
func (x *EspNowUnicastTestResponse) Reset() {
*x = EspNowUnicastTestResponse{}
mi := &file_uart_messages_proto_msgTypes[25]
mi := &file_uart_messages_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2237,7 +2364,7 @@ func (x *EspNowUnicastTestResponse) String() string {
func (*EspNowUnicastTestResponse) ProtoMessage() {}
func (x *EspNowUnicastTestResponse) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[25]
mi := &file_uart_messages_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2250,7 +2377,7 @@ func (x *EspNowUnicastTestResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use EspNowUnicastTestResponse.ProtoReflect.Descriptor instead.
func (*EspNowUnicastTestResponse) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{25}
return file_uart_messages_proto_rawDescGZIP(), []int{27}
}
func (x *EspNowUnicastTestResponse) GetSuccess() bool {
@@ -2297,7 +2424,7 @@ type LedRingProgressRequest struct {
func (x *LedRingProgressRequest) Reset() {
*x = LedRingProgressRequest{}
mi := &file_uart_messages_proto_msgTypes[26]
mi := &file_uart_messages_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2309,7 +2436,7 @@ func (x *LedRingProgressRequest) String() string {
func (*LedRingProgressRequest) ProtoMessage() {}
func (x *LedRingProgressRequest) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[26]
mi := &file_uart_messages_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2322,7 +2449,7 @@ func (x *LedRingProgressRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use LedRingProgressRequest.ProtoReflect.Descriptor instead.
func (*LedRingProgressRequest) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{26}
return file_uart_messages_proto_rawDescGZIP(), []int{28}
}
func (x *LedRingProgressRequest) GetMode() uint32 {
@@ -2423,7 +2550,7 @@ type LedRingProgressResponse struct {
func (x *LedRingProgressResponse) Reset() {
*x = LedRingProgressResponse{}
mi := &file_uart_messages_proto_msgTypes[27]
mi := &file_uart_messages_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2435,7 +2562,7 @@ func (x *LedRingProgressResponse) String() string {
func (*LedRingProgressResponse) ProtoMessage() {}
func (x *LedRingProgressResponse) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[27]
mi := &file_uart_messages_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2448,7 +2575,7 @@ func (x *LedRingProgressResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use LedRingProgressResponse.ProtoReflect.Descriptor instead.
func (*LedRingProgressResponse) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{27}
return file_uart_messages_proto_rawDescGZIP(), []int{29}
}
func (x *LedRingProgressResponse) GetSuccess() bool {
@@ -2503,7 +2630,7 @@ type EspNowFindMeRequest struct {
func (x *EspNowFindMeRequest) Reset() {
*x = EspNowFindMeRequest{}
mi := &file_uart_messages_proto_msgTypes[28]
mi := &file_uart_messages_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2515,7 +2642,7 @@ func (x *EspNowFindMeRequest) String() string {
func (*EspNowFindMeRequest) ProtoMessage() {}
func (x *EspNowFindMeRequest) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[28]
mi := &file_uart_messages_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2528,7 +2655,7 @@ func (x *EspNowFindMeRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use EspNowFindMeRequest.ProtoReflect.Descriptor instead.
func (*EspNowFindMeRequest) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{28}
return file_uart_messages_proto_rawDescGZIP(), []int{30}
}
func (x *EspNowFindMeRequest) GetClientId() uint32 {
@@ -2548,7 +2675,7 @@ type EspNowFindMeResponse struct {
func (x *EspNowFindMeResponse) Reset() {
*x = EspNowFindMeResponse{}
mi := &file_uart_messages_proto_msgTypes[29]
mi := &file_uart_messages_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2560,7 +2687,7 @@ func (x *EspNowFindMeResponse) String() string {
func (*EspNowFindMeResponse) ProtoMessage() {}
func (x *EspNowFindMeResponse) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[29]
mi := &file_uart_messages_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2573,7 +2700,7 @@ func (x *EspNowFindMeResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use EspNowFindMeResponse.ProtoReflect.Descriptor instead.
func (*EspNowFindMeResponse) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{29}
return file_uart_messages_proto_rawDescGZIP(), []int{31}
}
func (x *EspNowFindMeResponse) GetSuccess() bool {
@@ -2600,7 +2727,7 @@ type RestartRequest struct {
func (x *RestartRequest) Reset() {
*x = RestartRequest{}
mi := &file_uart_messages_proto_msgTypes[30]
mi := &file_uart_messages_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2612,7 +2739,7 @@ func (x *RestartRequest) String() string {
func (*RestartRequest) ProtoMessage() {}
func (x *RestartRequest) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[30]
mi := &file_uart_messages_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2625,7 +2752,7 @@ func (x *RestartRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RestartRequest.ProtoReflect.Descriptor instead.
func (*RestartRequest) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{30}
return file_uart_messages_proto_rawDescGZIP(), []int{32}
}
func (x *RestartRequest) GetClientId() uint32 {
@@ -2645,7 +2772,7 @@ type RestartResponse struct {
func (x *RestartResponse) Reset() {
*x = RestartResponse{}
mi := &file_uart_messages_proto_msgTypes[31]
mi := &file_uart_messages_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2657,7 +2784,7 @@ func (x *RestartResponse) String() string {
func (*RestartResponse) ProtoMessage() {}
func (x *RestartResponse) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[31]
mi := &file_uart_messages_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2670,7 +2797,7 @@ func (x *RestartResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RestartResponse.ProtoReflect.Descriptor instead.
func (*RestartResponse) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{31}
return file_uart_messages_proto_rawDescGZIP(), []int{33}
}
func (x *RestartResponse) GetSuccess() bool {
@@ -2697,7 +2824,7 @@ type OtaStartPayload struct {
func (x *OtaStartPayload) Reset() {
*x = OtaStartPayload{}
mi := &file_uart_messages_proto_msgTypes[32]
mi := &file_uart_messages_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2709,7 +2836,7 @@ func (x *OtaStartPayload) String() string {
func (*OtaStartPayload) ProtoMessage() {}
func (x *OtaStartPayload) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[32]
mi := &file_uart_messages_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2722,7 +2849,7 @@ func (x *OtaStartPayload) ProtoReflect() protoreflect.Message {
// Deprecated: Use OtaStartPayload.ProtoReflect.Descriptor instead.
func (*OtaStartPayload) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{32}
return file_uart_messages_proto_rawDescGZIP(), []int{34}
}
func (x *OtaStartPayload) GetTotalSize() uint32 {
@@ -2743,7 +2870,7 @@ type OtaPayload struct {
func (x *OtaPayload) Reset() {
*x = OtaPayload{}
mi := &file_uart_messages_proto_msgTypes[33]
mi := &file_uart_messages_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2755,7 +2882,7 @@ func (x *OtaPayload) String() string {
func (*OtaPayload) ProtoMessage() {}
func (x *OtaPayload) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[33]
mi := &file_uart_messages_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2768,7 +2895,7 @@ func (x *OtaPayload) ProtoReflect() protoreflect.Message {
// Deprecated: Use OtaPayload.ProtoReflect.Descriptor instead.
func (*OtaPayload) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{33}
return file_uart_messages_proto_rawDescGZIP(), []int{35}
}
func (x *OtaPayload) GetSeq() uint32 {
@@ -2794,7 +2921,7 @@ type OtaEndPayload struct {
func (x *OtaEndPayload) Reset() {
*x = OtaEndPayload{}
mi := &file_uart_messages_proto_msgTypes[34]
mi := &file_uart_messages_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2806,7 +2933,7 @@ func (x *OtaEndPayload) String() string {
func (*OtaEndPayload) ProtoMessage() {}
func (x *OtaEndPayload) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[34]
mi := &file_uart_messages_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2819,7 +2946,7 @@ func (x *OtaEndPayload) ProtoReflect() protoreflect.Message {
// Deprecated: Use OtaEndPayload.ProtoReflect.Descriptor instead.
func (*OtaEndPayload) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{34}
return file_uart_messages_proto_rawDescGZIP(), []int{36}
}
// Device → host status (also used as ACK after each 4 KiB written).
@@ -2836,7 +2963,7 @@ type OtaStatusPayload struct {
func (x *OtaStatusPayload) Reset() {
*x = OtaStatusPayload{}
mi := &file_uart_messages_proto_msgTypes[35]
mi := &file_uart_messages_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2848,7 +2975,7 @@ func (x *OtaStatusPayload) String() string {
func (*OtaStatusPayload) ProtoMessage() {}
func (x *OtaStatusPayload) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[35]
mi := &file_uart_messages_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2861,7 +2988,7 @@ func (x *OtaStatusPayload) ProtoReflect() protoreflect.Message {
// Deprecated: Use OtaStatusPayload.ProtoReflect.Descriptor instead.
func (*OtaStatusPayload) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{35}
return file_uart_messages_proto_rawDescGZIP(), []int{37}
}
func (x *OtaStatusPayload) GetStatus() uint32 {
@@ -2902,7 +3029,7 @@ type OtaSlaveProgressRequest struct {
func (x *OtaSlaveProgressRequest) Reset() {
*x = OtaSlaveProgressRequest{}
mi := &file_uart_messages_proto_msgTypes[36]
mi := &file_uart_messages_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2914,7 +3041,7 @@ func (x *OtaSlaveProgressRequest) String() string {
func (*OtaSlaveProgressRequest) ProtoMessage() {}
func (x *OtaSlaveProgressRequest) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[36]
mi := &file_uart_messages_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2927,7 +3054,7 @@ func (x *OtaSlaveProgressRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use OtaSlaveProgressRequest.ProtoReflect.Descriptor instead.
func (*OtaSlaveProgressRequest) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{36}
return file_uart_messages_proto_rawDescGZIP(), []int{38}
}
func (x *OtaSlaveProgressRequest) GetClientId() uint32 {
@@ -2951,7 +3078,7 @@ type OtaSlaveProgressEntry struct {
func (x *OtaSlaveProgressEntry) Reset() {
*x = OtaSlaveProgressEntry{}
mi := &file_uart_messages_proto_msgTypes[37]
mi := &file_uart_messages_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2963,7 +3090,7 @@ func (x *OtaSlaveProgressEntry) String() string {
func (*OtaSlaveProgressEntry) ProtoMessage() {}
func (x *OtaSlaveProgressEntry) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[37]
mi := &file_uart_messages_proto_msgTypes[39]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2976,7 +3103,7 @@ func (x *OtaSlaveProgressEntry) ProtoReflect() protoreflect.Message {
// Deprecated: Use OtaSlaveProgressEntry.ProtoReflect.Descriptor instead.
func (*OtaSlaveProgressEntry) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{37}
return file_uart_messages_proto_rawDescGZIP(), []int{39}
}
func (x *OtaSlaveProgressEntry) GetClientId() uint32 {
@@ -3027,7 +3154,7 @@ type OtaSlaveProgressResponse struct {
func (x *OtaSlaveProgressResponse) Reset() {
*x = OtaSlaveProgressResponse{}
mi := &file_uart_messages_proto_msgTypes[38]
mi := &file_uart_messages_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3039,7 +3166,7 @@ func (x *OtaSlaveProgressResponse) String() string {
func (*OtaSlaveProgressResponse) ProtoMessage() {}
func (x *OtaSlaveProgressResponse) ProtoReflect() protoreflect.Message {
mi := &file_uart_messages_proto_msgTypes[38]
mi := &file_uart_messages_proto_msgTypes[40]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3052,7 +3179,7 @@ func (x *OtaSlaveProgressResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use OtaSlaveProgressResponse.ProtoReflect.Descriptor instead.
func (*OtaSlaveProgressResponse) Descriptor() ([]byte, []int) {
return file_uart_messages_proto_rawDescGZIP(), []int{38}
return file_uart_messages_proto_rawDescGZIP(), []int{40}
}
func (x *OtaSlaveProgressResponse) GetActive() bool {
@@ -3094,7 +3221,7 @@ var File_uart_messages_proto protoreflect.FileDescriptor
const file_uart_messages_proto_rawDesc = "" +
"\n" +
"\x13uart_messages.proto\x12\x04alox\x1a\fnanopb.proto\"\x97\x13\n" +
"\x13uart_messages.proto\x12\x04alox\x1a\fnanopb.proto\"\xb6\x14\n" +
"\vUartMessage\x12%\n" +
"\x04type\x18\x01 \x01(\x0e2\x11.alox.MessageTypeR\x04type\x12,\n" +
"\vack_payload\x18\x02 \x01(\v2\t.alox.AckH\x00R\n" +
@@ -3131,7 +3258,9 @@ const file_uart_messages_proto_rawDesc = "" +
"\x12tap_notify_request\x18\x1d \x01(\v2\x16.alox.TapNotifyRequestH\x00R\x10tapNotifyRequest\x12I\n" +
"\x13tap_notify_response\x18\x1e \x01(\v2\x17.alox.TapNotifyResponseH\x00R\x11tapNotifyResponse\x12L\n" +
"\x14tap_snapshot_request\x18\x1f \x01(\v2\x18.alox.TapSnapshotRequestH\x00R\x12tapSnapshotRequest\x12O\n" +
"\x15tap_snapshot_response\x18 \x01(\v2\x19.alox.TapSnapshotResponseH\x00R\x13tapSnapshotResponseB\t\n" +
"\x15tap_snapshot_response\x18 \x01(\v2\x19.alox.TapSnapshotResponseH\x00R\x13tapSnapshotResponse\x12L\n" +
"\x14cache_status_request\x18! \x01(\v2\x18.alox.CacheStatusRequestH\x00R\x12cacheStatusRequest\x12O\n" +
"\x15cache_status_response\x18\" \x01(\v2\x19.alox.CacheStatusResponseH\x00R\x13cacheStatusResponseB\t\n" +
"\apayload\"\x05\n" +
"\x03Ack\"!\n" +
"\vEchoPayload\x12\x12\n" +
@@ -3237,7 +3366,11 @@ const file_uart_messages_proto_rawDesc = "" +
"\x04kind\x18\x03 \x01(\x0e2\r.alox.TapKindR\x04kind\x12\x15\n" +
"\x06age_ms\x18\x04 \x01(\rR\x05ageMs\"D\n" +
"\x13TapSnapshotResponse\x12-\n" +
"\x06events\x18\x01 \x03(\v2\x0e.alox.TapEventB\x05\x92?\x02\x10\x10R\x06events\"I\n" +
"\x06events\x18\x01 \x03(\v2\x0e.alox.TapEventB\x05\x92?\x02\x10\x10R\x06events\"\x14\n" +
"\x12CacheStatusRequest\"p\n" +
"\x13CacheStatusResponse\x12.\n" +
"\x05accel\x18\x01 \x03(\v2\x11.alox.AccelSampleB\x05\x92?\x02\x10\x10R\x05accel\x12)\n" +
"\x04taps\x18\x02 \x03(\v2\x0e.alox.TapEventB\x05\x92?\x02\x10\x10R\x04taps\"I\n" +
"\x18EspNowUnicastTestRequest\x12\x1b\n" +
"\tclient_id\x18\x01 \x01(\rR\bclientId\x12\x10\n" +
"\x03seq\x18\x02 \x01(\rR\x03seq\"G\n" +
@@ -3308,7 +3441,7 @@ const file_uart_messages_proto_rawDesc = "" +
"\x0faggregate_bytes\x18\x03 \x01(\rR\x0eaggregateBytes\x12\x1f\n" +
"\vslave_count\x18\x04 \x01(\rR\n" +
"slaveCount\x12:\n" +
"\x06slaves\x18\x05 \x03(\v2\x1b.alox.OtaSlaveProgressEntryB\x05\x92?\x02\x10\x10R\x06slaves*\xf9\x02\n" +
"\x06slaves\x18\x05 \x03(\v2\x1b.alox.OtaSlaveProgressEntryB\x05\x92?\x02\x10\x10R\x06slaves*\x8b\x03\n" +
"\vMessageType\x12\v\n" +
"\aUNKNOWN\x10\x00\x12\a\n" +
"\x03ACK\x10\x01\x12\b\n" +
@@ -3333,7 +3466,8 @@ const file_uart_messages_proto_rawDesc = "" +
"\x0eBATTERY_STATUS\x10\x1a\x12\x0e\n" +
"\n" +
"TAP_NOTIFY\x10\x1b\x12\x10\n" +
"\fTAP_SNAPSHOT\x10\x1c*G\n" +
"\fTAP_SNAPSHOT\x10\x1c\x12\x10\n" +
"\fCACHE_STATUS\x10\x1d*G\n" +
"\aTapKind\x12\f\n" +
"\bTAP_NONE\x10\x00\x12\x0e\n" +
"\n" +
@@ -3356,7 +3490,7 @@ func file_uart_messages_proto_rawDescGZIP() []byte {
}
var file_uart_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_uart_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 39)
var file_uart_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 41)
var file_uart_messages_proto_goTypes = []any{
(MessageType)(0), // 0: alox.MessageType
(TapKind)(0), // 1: alox.TapKind
@@ -3384,21 +3518,23 @@ var file_uart_messages_proto_goTypes = []any{
(*TapSnapshotRequest)(nil), // 23: alox.TapSnapshotRequest
(*TapEvent)(nil), // 24: alox.TapEvent
(*TapSnapshotResponse)(nil), // 25: alox.TapSnapshotResponse
(*EspNowUnicastTestRequest)(nil), // 26: alox.EspNowUnicastTestRequest
(*EspNowUnicastTestResponse)(nil), // 27: alox.EspNowUnicastTestResponse
(*LedRingProgressRequest)(nil), // 28: alox.LedRingProgressRequest
(*LedRingProgressResponse)(nil), // 29: alox.LedRingProgressResponse
(*EspNowFindMeRequest)(nil), // 30: alox.EspNowFindMeRequest
(*EspNowFindMeResponse)(nil), // 31: alox.EspNowFindMeResponse
(*RestartRequest)(nil), // 32: alox.RestartRequest
(*RestartResponse)(nil), // 33: alox.RestartResponse
(*OtaStartPayload)(nil), // 34: alox.OtaStartPayload
(*OtaPayload)(nil), // 35: alox.OtaPayload
(*OtaEndPayload)(nil), // 36: alox.OtaEndPayload
(*OtaStatusPayload)(nil), // 37: alox.OtaStatusPayload
(*OtaSlaveProgressRequest)(nil), // 38: alox.OtaSlaveProgressRequest
(*OtaSlaveProgressEntry)(nil), // 39: alox.OtaSlaveProgressEntry
(*OtaSlaveProgressResponse)(nil), // 40: alox.OtaSlaveProgressResponse
(*CacheStatusRequest)(nil), // 26: alox.CacheStatusRequest
(*CacheStatusResponse)(nil), // 27: alox.CacheStatusResponse
(*EspNowUnicastTestRequest)(nil), // 28: alox.EspNowUnicastTestRequest
(*EspNowUnicastTestResponse)(nil), // 29: alox.EspNowUnicastTestResponse
(*LedRingProgressRequest)(nil), // 30: alox.LedRingProgressRequest
(*LedRingProgressResponse)(nil), // 31: alox.LedRingProgressResponse
(*EspNowFindMeRequest)(nil), // 32: alox.EspNowFindMeRequest
(*EspNowFindMeResponse)(nil), // 33: alox.EspNowFindMeResponse
(*RestartRequest)(nil), // 34: alox.RestartRequest
(*RestartResponse)(nil), // 35: alox.RestartResponse
(*OtaStartPayload)(nil), // 36: alox.OtaStartPayload
(*OtaPayload)(nil), // 37: alox.OtaPayload
(*OtaEndPayload)(nil), // 38: alox.OtaEndPayload
(*OtaStatusPayload)(nil), // 39: alox.OtaStatusPayload
(*OtaSlaveProgressRequest)(nil), // 40: alox.OtaSlaveProgressRequest
(*OtaSlaveProgressEntry)(nil), // 41: alox.OtaSlaveProgressEntry
(*OtaSlaveProgressResponse)(nil), // 42: alox.OtaSlaveProgressResponse
}
var file_uart_messages_proto_depIdxs = []int32{
0, // 0: alox.UartMessage.type:type_name -> alox.MessageType
@@ -3407,22 +3543,22 @@ var file_uart_messages_proto_depIdxs = []int32{
5, // 3: alox.UartMessage.version_response:type_name -> alox.VersionResponse
7, // 4: alox.UartMessage.client_info_response:type_name -> alox.ClientInfoResponse
9, // 5: alox.UartMessage.client_input_response:type_name -> alox.ClientInputResponse
34, // 6: alox.UartMessage.ota_start:type_name -> alox.OtaStartPayload
35, // 7: alox.UartMessage.ota_payload:type_name -> alox.OtaPayload
36, // 8: alox.UartMessage.ota_end:type_name -> alox.OtaEndPayload
37, // 9: alox.UartMessage.ota_status:type_name -> alox.OtaStatusPayload
36, // 6: alox.UartMessage.ota_start:type_name -> alox.OtaStartPayload
37, // 7: alox.UartMessage.ota_payload:type_name -> alox.OtaPayload
38, // 8: alox.UartMessage.ota_end:type_name -> alox.OtaEndPayload
39, // 9: alox.UartMessage.ota_status:type_name -> alox.OtaStatusPayload
10, // 10: alox.UartMessage.accel_deadzone_request:type_name -> alox.AccelDeadzoneRequest
11, // 11: alox.UartMessage.accel_deadzone_response:type_name -> alox.AccelDeadzoneResponse
26, // 12: alox.UartMessage.espnow_unicast_test_request:type_name -> alox.EspNowUnicastTestRequest
27, // 13: alox.UartMessage.espnow_unicast_test_response:type_name -> alox.EspNowUnicastTestResponse
38, // 14: alox.UartMessage.ota_slave_progress_request:type_name -> alox.OtaSlaveProgressRequest
40, // 15: alox.UartMessage.ota_slave_progress_response:type_name -> alox.OtaSlaveProgressResponse
28, // 16: alox.UartMessage.led_ring_progress_request:type_name -> alox.LedRingProgressRequest
29, // 17: alox.UartMessage.led_ring_progress_response:type_name -> alox.LedRingProgressResponse
30, // 18: alox.UartMessage.espnow_find_me_request:type_name -> alox.EspNowFindMeRequest
31, // 19: alox.UartMessage.espnow_find_me_response:type_name -> alox.EspNowFindMeResponse
32, // 20: alox.UartMessage.restart_request:type_name -> alox.RestartRequest
33, // 21: alox.UartMessage.restart_response:type_name -> alox.RestartResponse
28, // 12: alox.UartMessage.espnow_unicast_test_request:type_name -> alox.EspNowUnicastTestRequest
29, // 13: alox.UartMessage.espnow_unicast_test_response:type_name -> alox.EspNowUnicastTestResponse
40, // 14: alox.UartMessage.ota_slave_progress_request:type_name -> alox.OtaSlaveProgressRequest
42, // 15: alox.UartMessage.ota_slave_progress_response:type_name -> alox.OtaSlaveProgressResponse
30, // 16: alox.UartMessage.led_ring_progress_request:type_name -> alox.LedRingProgressRequest
31, // 17: alox.UartMessage.led_ring_progress_response:type_name -> alox.LedRingProgressResponse
32, // 18: alox.UartMessage.espnow_find_me_request:type_name -> alox.EspNowFindMeRequest
33, // 19: alox.UartMessage.espnow_find_me_response:type_name -> alox.EspNowFindMeResponse
34, // 20: alox.UartMessage.restart_request:type_name -> alox.RestartRequest
35, // 21: alox.UartMessage.restart_response:type_name -> alox.RestartResponse
18, // 22: alox.UartMessage.accel_snapshot_request:type_name -> alox.AccelSnapshotRequest
20, // 23: alox.UartMessage.accel_snapshot_response:type_name -> alox.AccelSnapshotResponse
12, // 24: alox.UartMessage.accel_stream_request:type_name -> alox.AccelStreamRequest
@@ -3433,20 +3569,24 @@ var file_uart_messages_proto_depIdxs = []int32{
22, // 29: alox.UartMessage.tap_notify_response:type_name -> alox.TapNotifyResponse
23, // 30: alox.UartMessage.tap_snapshot_request:type_name -> alox.TapSnapshotRequest
25, // 31: alox.UartMessage.tap_snapshot_response:type_name -> alox.TapSnapshotResponse
6, // 32: alox.ClientInfoResponse.clients:type_name -> alox.ClientInfo
8, // 33: alox.ClientInputResponse.clients:type_name -> alox.ClientInput
15, // 34: alox.BatterySample.lipo1:type_name -> alox.LipoReading
15, // 35: alox.BatterySample.lipo2:type_name -> alox.LipoReading
16, // 36: alox.BatteryStatusResponse.samples:type_name -> alox.BatterySample
19, // 37: alox.AccelSnapshotResponse.samples:type_name -> alox.AccelSample
1, // 38: alox.TapEvent.kind:type_name -> alox.TapKind
24, // 39: alox.TapSnapshotResponse.events:type_name -> alox.TapEvent
39, // 40: alox.OtaSlaveProgressResponse.slaves:type_name -> alox.OtaSlaveProgressEntry
41, // [41:41] is the sub-list for method output_type
41, // [41:41] is the sub-list for method input_type
41, // [41:41] is the sub-list for extension type_name
41, // [41:41] is the sub-list for extension extendee
0, // [0:41] is the sub-list for field type_name
26, // 32: alox.UartMessage.cache_status_request:type_name -> alox.CacheStatusRequest
27, // 33: alox.UartMessage.cache_status_response:type_name -> alox.CacheStatusResponse
6, // 34: alox.ClientInfoResponse.clients:type_name -> alox.ClientInfo
8, // 35: alox.ClientInputResponse.clients:type_name -> alox.ClientInput
15, // 36: alox.BatterySample.lipo1:type_name -> alox.LipoReading
15, // 37: alox.BatterySample.lipo2:type_name -> alox.LipoReading
16, // 38: alox.BatteryStatusResponse.samples:type_name -> alox.BatterySample
19, // 39: alox.AccelSnapshotResponse.samples:type_name -> alox.AccelSample
1, // 40: alox.TapEvent.kind:type_name -> alox.TapKind
24, // 41: alox.TapSnapshotResponse.events:type_name -> alox.TapEvent
19, // 42: alox.CacheStatusResponse.accel:type_name -> alox.AccelSample
24, // 43: alox.CacheStatusResponse.taps:type_name -> alox.TapEvent
41, // 44: alox.OtaSlaveProgressResponse.slaves:type_name -> alox.OtaSlaveProgressEntry
45, // [45:45] is the sub-list for method output_type
45, // [45:45] is the sub-list for method input_type
45, // [45:45] is the sub-list for extension type_name
45, // [45:45] is the sub-list for extension extendee
0, // [0:45] is the sub-list for field type_name
}
func init() { file_uart_messages_proto_init() }
@@ -3486,6 +3626,8 @@ func file_uart_messages_proto_init() {
(*UartMessage_TapNotifyResponse)(nil),
(*UartMessage_TapSnapshotRequest)(nil),
(*UartMessage_TapSnapshotResponse)(nil),
(*UartMessage_CacheStatusRequest)(nil),
(*UartMessage_CacheStatusResponse)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -3493,7 +3635,7 @@ func file_uart_messages_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_uart_messages_proto_rawDesc), len(file_uart_messages_proto_rawDesc)),
NumEnums: 2,
NumMessages: 39,
NumMessages: 41,
NumExtensions: 0,
NumServices: 0,
},