fix: prevent ESP32 KISS modem stalls under USB backpressure
Switch ESP32-S3 KISS modem environments to HWCDC and move outbound KISS writes to a non-blocking queued frame path so loop() and TX completion keep progressing when the host reads slowly. Add native backpressure regression tests and correct the native_kiss_modem test filter so this suite runs directly with pio test.
This commit is contained in:
1 parent
c289e500d5
commit
2679fa8ebc
15 files changed
+701
-46
No files matched your search
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include "Utils.h"
|
||||
|
||||
namespace mesh {
|
||||
|
||||
class Identity {
|
||||
public:
|
||||
uint8_t pub_key[PUB_KEY_SIZE];
|
||||
|
||||
Identity() {
|
||||
std::memset(pub_key, 0, sizeof(pub_key));
|
||||
}
|
||||
|
||||
explicit Identity(const uint8_t* src) {
|
||||
std::memcpy(pub_key, src, PUB_KEY_SIZE);
|
||||
}
|
||||
|
||||
bool verify(const uint8_t*, const uint8_t*, int) const {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class LocalIdentity : public Identity {
|
||||
public:
|
||||
LocalIdentity() : Identity() {}
|
||||
|
||||
void sign(uint8_t* sig, const uint8_t*, int) const {
|
||||
std::memset(sig, 0x5A, SIGNATURE_SIZE);
|
||||
}
|
||||
|
||||
void calcSharedSecret(uint8_t* secret, const uint8_t*) const {
|
||||
std::memset(secret, 0x11, PUB_KEY_SIZE);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user