Hi, interesting, so may I ask, when it shows up as 'pairable' in the Tuya app, are you able to *actually pair* and provision it, i.e. go all the way through so it's fully set up on the Tuya app?
Reason I ask is because now I've been able to flash OpenBk and bring up the AP/web interface deterministically. So I go through the motions, configure an IP (tried both static and DHCP), configure the wifi AP and password, and then hit submit, after which the transitional page says "WIFI: Please wait for module to reset..." (screenshot below). And then, once again, nothing happens after that. The OpenBK AP disappears, which is expected, but then the newly configured system never shows up on my LAN, no authentication attempts, no MAC broadcasts, nothing. The only slight subtlety maybe is that somewhere on the OpenBK web interface it says you have to 'reboot' the chip, or something, for settings to take effect. When I've submitted configurations, the 'uptime' clock keeps ticking, and it shows something like '6 minutes' uptime, i.e. it never rebooted. So one time I tried manually restarting it, in the hopes that would make the settings 'take', but it didn't make any difference. Is there anything there I should look at? (to confirm that the wifi/IP settings really 'take').
So, I started over by reflashing the factory firmware back on, repowering it up, and then apparently all good -- I go into the Tuya app to add the wifi power strip manually etc. That's when, it turns out, it never works at all. After a several tries, I'm never able to successfully add it as a device. During the 'fast-blink' add, it finds the device, starts to add it, but then fails with the attached screenshot(s) below. One time, when I rebooted the strip and tried to add it again, the 'slow-blink' came up instead, but it never added the Tuya AP. So I reboot (although the strip sometimes reboots itself, not in a good looking way, during the add process) to bring up fast-blink again, try to add again etc. It never works. Often times, the fast-flashing blue LED just stops flashing midway through the add process. I believe that might be normal. But regardless of whether it stops blinking or continues blinking all the way through the end of the add process, it never succeeds and always fails. (The Tuya app 'add device clock' counts down from something like 3 minutes, and it always gets to the end, with failure).
So all of this seems to point to the fact that there may be something wrong with the hardware on my particular device, would you agree? It seems that would be confirmed if you're able to bring up the same factory firmware of mine on a different hardware or virtual test harness environment, and add it the Tuya app successfully.
If it is hardware, not sure if it's worth trying to get the UART logs and figure out why, unless there's something that can be changed in the hardware or on the chip?
One last hail-mary shot/guess, one small thing I noticed is that when I had the OpenBK web page 'Scan for local networks!,' instead of manually adding my local LAN wifi network AP, it only shows *2* 2.4Ghz networks, 2 out of 2, neither of which are the right ones, screenshot below. Plus, a wifi scan from any other device I have shows something like 20-30 networks available, near me and the device, not just the 2 (only) that the OpenBK shows. Could that be significant, in that the CB3S chip is somehow not 'receiving' well enough to be able to see my network/router (which is only about 10 feet away and visible to every other device)? So perhaps an antenna problem, or something?
divadiow wrote:
well I flashed I flashed a CB3S to your backup and it booted and was pairable in the Tuya app
Added after 2 [hours] 17 [minutes]:
tlpelektroda wrote: One last hail-mary shot .... So perhaps an antenna problem, or something?
Eureka! so it turns out that was it. I repeated the whole sequence, but this time bringing it up with it sitting right next to my router. This time 'Scan local networks' showed my LAN AP right away. Connected, all good now. ... Or so it *seemed*...
One thing I noticed right away is that, when I scanned for networks, this time right next to my router, once again, the OpenBK web page showed only *2* networks, one of which was mine and correct, but not any of the other 20-30 networks that are available to any other devices that do a wifi scan for APs.
As soon as I moved the now-OBK-configured and provisioned power strip away from the router, it disappears. The power strip can't connect to my wifi network, even when it's only as far as 5 feet away from the router.
So it would seem there's something wrong with the CB3S antenna?
Or could it be something else? I see from CB3S diagrams that the antenna is baked into the PCB at the top of the chip. And it looks fine on the chip in this power strip AFAICT.
Any idea whether there's any circuitry or section of the software/firmware on the chip, that would affect the receptivity, other than the characteristics of the physical antenna itself?
Or perhaps that there's something wrong in OpenBeken, such that it only looks for and can connect to the 'top 2' highest-signal-strength networks it sees, and ignores all the others?
Because otherwise this device is useless as-is. Of course I can now turn to the other new identical power strips I ordered, flash them and see if they suffer from the same poor receptivity, though.
One last question in the meantime, if you or anyone might know -- is there a *template* around to configure the SM-SO301U pin/GPIO layout in OpenBeken?
If there isn't, could I just use the same template that Tasmota, and I, used to configure the previous version of these strips, that had the TYWE3S chip? (considering that I think I read that they're pin-compatible?).