Giter Site home page Giter Site logo

Comments (24)

Jason2866 avatar Jason2866 commented on June 25, 2024 1

Via official Tasmota OTA server https://ota.tasmota.com/tasmota32/

from tasmota.

Mark-Muc avatar Mark-Muc commented on June 25, 2024

Hello . I have nearly the same problem.
I compile a latest version (14.0.0.1 dev) and run it on a ESP32 device (Sonoff SwitchMan 2C) configurated as shutter.
After i updated to 14.0.0.1 dev. The device getting (respond) getting terribly slow and NO BLE devices show up. Switch back to 13.4.0 (stable) everything works fine and the BLE devices show up.
Compile with:
image

Regards
Mark_Muc

from tasmota.

kroon040 avatar kroon040 commented on June 25, 2024

Same issue here. I have more devices with bluetooth and all lost connection with tasmota 14, reverting back to 13.4 resolves the issue. Also a issue for the EQ3 devices

v14.0

10:23:58.530 BLE: scan stall? no adverts > 120s, restart BLE
10:23:58.537 BLE: BLETask: Restart NimBLE - restart Tasmota in 10 if not complt
10:23:58.541 BLE: Task:Stopping NimBLE
10:23:58.664 BLE: BLETask:Starting NimBLE
10:23:59.547 MQT: tele/rolluikslaap1/BLE = {"blerestart":"no adverts in 120s"} (retained)
10:23:59.549 BLE: Failure! Restarting BLE Stack because no adverts in 120s
10:25:59.533 BLE: scan stall? no adverts > 120s, restart BLE
10:25:59.630 BLE: BLETask: Restart NimBLE - restart Tasmota in 10 if not complt
10:25:59.636 BLE: Task:Stopping NimBLE
10:25:59.757 BLE: BLETask:Starting NimBLE

from tasmota.

Jason2866 avatar Jason2866 commented on June 25, 2024

@btsimonh Can you have a look?

from tasmota.

btsimonh avatar btsimonh commented on June 25, 2024

looks like NimBLE may have some issues to be resolved to work well with core 3.0.0
h2zero/NimBLE-Arduino#645

I think we should wait to see how @h2zero progresses....

from tasmota.

Jason2866 avatar Jason2866 commented on June 25, 2024

@btsimonh wrong repo. Tasmota does not use NimBLE-Arduino anymore.
Moved to https://github.com/h2zero/esp-nimble-cpp.
The issue you mentioned is not relevant for esp-nimble-cpp
The MI driver from Staars does work well with esp-nimble-cpp and Arduino Core 3.0.0
"Only" the classic Tasmota BLE driver is not working.

from tasmota.

btsimonh avatar btsimonh commented on June 25, 2024

ahh... ok. So just taking a quick look at the source, there are really no changes to account for changing library? I guess the NimBLE classes and structures are identical in both cases...
I build the firmware and confirm the above - adverts are not all being seen. It DID see one from an EQ3, but then failed to connect to the EQ3. So it looks like the stack is working a bit, just the radio not working too well.
We could look at changes to the wifi/BLE sharing methods in core 3.0.0?

from tasmota.

Jason2866 avatar Jason2866 commented on June 25, 2024

There are some small changes made to make the BLE driver compile with Arduino Core 3.0.0 and h2zero lib esp-nimble-cpp. Take a look at the commits.

from tasmota.

btsimonh avatar btsimonh commented on June 25, 2024

yep, spotted it. NimBLE-arduino had a separate scan end callback, set in a different way. Your commits meant that it was never called. Just testing a change now, so let's see....
(the scan end callback caused the start of another scan. so basically, currently scan once at start, and never again - and it's the scanning which hears adverts)

from tasmota.

Rushmed avatar Rushmed commented on June 25, 2024

Thanks a lot!
When will the fix be available in precompiled files. Next version?

from tasmota.

Jason2866 avatar Jason2866 commented on June 25, 2024

@Rushmed It is already here in section development https://tasmota.github.io/install/

from tasmota.

btsimonh avatar btsimonh commented on June 25, 2024

@Rushmed @kroon040 @Mark-Muc - pls report success here.
For me, the mods showed my one pvv temp+hum sensor which was close, and 6 EQ3, 3 of which connection failed because of low signal, but the other three happily read valve position, etc. indicating connections success. (EQ3 connection is always a little dodgy - an ideal device to stress tas's BLE stack! ).
I didn't test aliasing or any other features - but nothing has changed there, so all should be good.

from tasmota.

kroon040 avatar kroon040 commented on June 25, 2024

@btsimonh ,

I got 4 EQ3 devices and 4 LYWSD03MMC devices. All the devices are working, also valve position and desired temp. Also aliasing also still works. I See one device he just needs to try 3 times and than it connects.

from tasmota.

Mark-Muc avatar Mark-Muc commented on June 25, 2024

Just to let you know. I also built today a version in the dev. brache and all BLE derives are visible.
one slight problem:
if u use a "." (dot) in the aliasing . like:
BLEAlias E72E0050A0CC=1.OG_Bad A4C1382D29C3=1.OG_Arbeit_2

it shows in the UI like that:
image
image

as u can see it shows a "," (coma) instead of a "." (dot)
it is also in the version: 13.4.0 final.
Mark_Muc

from tasmota.

arendst avatar arendst commented on June 25, 2024

That's the auto decimal kicking in. It replaces a dot by a comma for Germany :-)

Let me see if it can be easily fixed....

from tasmota.

arendst avatar arendst commented on June 25, 2024

Try latest dev.

from tasmota.

btsimonh avatar btsimonh commented on June 25, 2024

I wish CSV import in Excel different countries was fixed so easily and quickly!

from tasmota.

Mark-Muc avatar Mark-Muc commented on June 25, 2024

Try latest dev.

did and looked good!!
image
that was fast and quick!!
Thx & Regards
Mark

from tasmota.

Mark-Muc avatar Mark-Muc commented on June 25, 2024

but i do have an other problem.
not belog to the "bluetooth bug".
I foud out, that he newer versions of tasmota now connect my device (Sonoff SwitchMan 2C) now connect to my AP in
Mode HT40
image

bevor it connected to my AP in
Mode 11n
image

I think that will be the reason why it device is laging like hell.
The informiation of the device:
image

in my Fritz.Box it connects like:
image

if it's not the right place .. pls be so kind to move it!

Mark_Muc

from tasmota.

arendst avatar arendst commented on June 25, 2024

Well core3 does support both n (=HT20) and HT40 depending on your wifi AP. Reconfig your AP to HT20 and it should connect to HT20 (at least that's what my ubiquiti does.)

from tasmota.

Jason2866 avatar Jason2866 commented on June 25, 2024

The connection mode is most probably not the reason for your devices being laggy.
It is Bluetooth. Bluetooth and WiFi together enabled on an Esp32 is always problematic.

from tasmota.

Mark-Muc avatar Mark-Muc commented on June 25, 2024

Well core3 does support both n (=HT20) and HT40 depending on your wifi AP. Reconfig your AP to HT20 and it should connect to HT20 (at least that's what my ubiquiti does.)

seems that this is not the issue .. fount out.
If u use a fresh installed 32bit device . flashed it with the webflasher included the final with Bluetooth.
it works with the network and no lagging.
BUT
if i restore my config .. the it is lagging like hell.
Found out:
If u upload to the filesystem it happens.
i.e. I upload a file called: autoexec.bat the device hangs / lagging.
autoexec.bat contains:

Mi32Option6 1
MI32Page 10
MI32Block A4C138465A57
MI32Block E7764500F442
BLEAlias 150311116C66=LYWSD02-1 A4C138AF4A0B=Temp&Hum(LYWSD03MMC) E72E0050A0CC=1.OG_Bad A4C138465A57=Pavillion_innen A4C1382D29C3=1.OG_Arbeit_2 A4C1389C4D2A=Thermostat
shutteropen

asap it hangs after upload.

It is fine in 13.4.0!!
Regards Mark
PS: I can provide my safed .DMP file.

from tasmota.

Rushmed avatar Rushmed commented on June 25, 2024

@Rushmed It is already here in section development https://tasmota.github.io/install/

Thanks, how can I download the .bin file? I have to flash OTA.

from tasmota.

Rushmed avatar Rushmed commented on June 25, 2024

@Rushmed @kroon040 @Mark-Muc - pls report success here. For me, the mods showed my one pvv temp+hum sensor which was close, and 6 EQ3, 3 of which connection failed because of low signal, but the other three happily read valve position, etc. indicating connections success. (EQ3 connection is always a little dodgy - an ideal device to stress tas's BLE stack! ). I didn't test aliasing or any other features - but nothing has changed there, so all should be good.

Tasmota 14.0.0.3 (b61ea17-bluetooth) is working as expected. Thanks Sir!

from tasmota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.