OPTA WiFi does not proceed after OptaController.begin();

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

Would really appreciate any help here..I tried the Finder factory reset utility, didn’t help. I suspect it has something to do with this OPTA unit being connected to the PLC IDE in the past..However I tried the QSPIF format several times with no change.
The unit is working fine without expansions (not calling OptaController.begin()), but I need expansions for my project.

Thanks

Hi @dotan_qd-sol , if you followed all the steps in this tutorial, and it still isn't working, I'd raise a case with Arduino directly.
https://docs.arduino.cc/tutorials/opta-analog-exp/opta-analog-expansion-plc-ide/

https://www.arduino.cc/en/contact-us/

Thanks..I tried following the steps, but I can’t get past updating the expansion fw version..It always gets stuck when calling OptaController.begin():

Serial monitor:


**** OPTA Expansions Updater sketch ****

This update will update
  - OPTA ** DIGITAL ** to version: 0.1.5
  - OPTA ** ANALOG ** to version: 0.1.13

When looking at the updateExpansionFw code I can see that it gets stuck in OptaController.begin:

void setup() {
/* -------------------------------------------------------------------------- */    
  Serial.begin(115200);
  while(!Serial) {
  }

  Serial.println("\n**** OPTA Expansions Updater sketch ****\n");

  Serial.print("This update will update\n  - OPTA ** DIGITAL ** to version: ");
  printVersion(od_M, od_m, od_r);

  Serial.print("  - OPTA ** ANALOG ** to version: ");
  printVersion(oa_M, oa_m, oa_r);

  OptaController.begin(); 
}

I tried adding a serial print after the .being to verify, and it was never displayed…
I tried working with 3 different expansions and it seems the problem is with the main OPTA unit.

I will try to contact Arduino directly.

Thanks

Hi, having the exact same problem with the same expansion You cant even update the firmware as that calls .begin()!

When reconnecting the expansion, the led goes red as if its waiting to be addressed. Wire reports it on the I2C bus as it should at 0x0A, then after .begin() tries to assign it an address, the LED goes green as if its configures, but the address it reports back is 0x10, which OptaController doesn’t expect and the select line goes low, causing it to wait indefinitely.

Seems to be device firmware??

Did you find a solution??