Hi,
I have a OPTA wifi connected to an analog expansion module powered by an external 24VDC supply. I’m trying to work with this miminal code:
#include <Arduino.h>
#include <OptaController.h>
void setup() {
Serial.begin(9600);
delay(7000);
Serial.println("Starting Opta expansion scan...");
OptaController.begin();
Serial.println("OptaController.begin() returned");
for (uint8_t i = 0; i < 6; i++) {
auto exp = OptaController.getExpansion(i);
Serial.print("Expansion ");
Serial.print(i);
Serial.print(": ");
Serial.println(exp ? "FOUND" : "none");
}
}
void loop() {}
However, I never get past OptaController.begin().
The analog expansion LED is blue with a brief red blink every 1-2 seconds.
My firmware is the latest 4.4.1.
I tried running QSPIF format, this is what I get when I run QSPIFReadPartitions:
Looking for Partitions on the Flash Memory... MBR Found
Boot Signature: 0x55AA
Printing Partitions Table and Info...
Partition: 1
Bootable: No
Type: 0x0B
Size [KBytes]: 1020
Start [C/H/S]: 0/2/0
Stop [C/H/S]: 4/0/0
================================
Partition: 2
Bootable: No
Type: 0x0B
Size [KBytes]: 5120
Start [C/H/S]: 4/1/0
Stop [C/H/S]: 24/0/0
================================
Partition: 3
Bootable: No
Type: 0x0B
Size [KBytes]: 1024
Start [C/H/S]: 24/1/0
Stop [C/H/S]: 28/0/0
================================
Partition: 4
Bootable: No
Type: 0x0B
Size [KBytes]: 7168
Start [C/H/S]: 28/1/0
Stop [C/H/S]: 56/0/0
No more partitions are present.
Total Space [KBytes]: 16384
Allocated Space [KBytes]: 14332
Unallocated Space [KBytes]: 2052
I also noticed something strange when I add the device to the IOT cloud..When I look in the device tab, my 3 other (working) OPTAs show nothing under Connectivity Module, but the problematic OPTA shows 1.94.0. The device page gives the option “Update firmware” but when I click it I get:
Device connected! Retrieving board information...
(This may take up to 30 seconds)
**
And then:
We could not find any Arduino device**
Tried running the WiFiFirmwareUpdater from the IDE, and it seemed to flash everything succesfully, however nothing’s changed and the problem presists.
I tried removing the device and adding it again, then clicked the update icon and it did start saying “Update Firmware” but but after a few seconds it returned to the device page and said “Firmware update skipped”
Any ideas on how to proceed?
Thanks