I’m using Notecarrier F 1.3 with Swan 3.0 and Arduino IDE, and I keep getting
Starting notecard... [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding [ERROR] notecard not responding
.
They were all(10) working until I uploaded the new code, and now 4 are having issues. I am testing them with the simple code below.
I have tried to power the Notecarrier from the microUSB port on the swan + a 3.7 V battery and from the microUSB on the Notecarrier itself, but the best I can get is flashing red in three of them while one isn’t responding. I updated the firmware using the STM32 programmer, but I can’t detect them on the in-browser terminal. The same code and swan work perfectly with Notecarrier F 1.0. I have also tried the instructions on recovering a bricked notecard.
#include <Notecard.h>
#define serialDebug Serial
#define txRxPinsSerial Serial1
#define productUID "xxxxxx"
Notecard notecard;
void setup (void) {
serialDebug.begin(115200);
while (!serialDebug) {
; // wait for serial port to connect. Needed for native USB
}
serialDebug.println("Starting notecard...");
//notecard.begin();
notecard.begin(txRxPinsSerial, 9600);
notecard.setDebugOutputStream(serialDebug);
J *req = notecard.newRequest("hub.set");
JAddStringToObject(req, "product", productUID);
JAddStringToObject(req, "mode", "continuous");
notecard.sendRequest(req);
}
void loop (void) {
}