Giter VIP home page Giter VIP logo

Comments (17)

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024 1

You just gave the logging of the init process ;-)
What happens is that if the module is not working or one of the Power and/or SPI pins are not connected the module won't initialise. The firmware detects this and logs the message you copied. There is one other pin that cannot be checked this way but that will result in a good init but remote signals won't be processed.

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024 1

I believe I found it. There was a compiler directive not clean-up completely which resulted in an SPI pin not being set as output. This only manifests itself after a cold start.... so upgrade would go fine and the CC1101 module would work just fine but after a powercycle the CC1101 module is not detectable anymore. pfff, this was a nasty one.
Could you try this firmware file?
nrgitho-hw2-v2.2-rc2.bin.zip

from ithowifi.

rkuijer avatar rkuijer commented on August 15, 2024 1

Great catch!
I saw the changes but didn't link them to this issue.

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024

This is the case since the upgrade to beta 10? Or are you not sure?
Otherwise maybe a good idea to revert back to the previous version just as a test. If that doesn't work the only thing that I can come up with is that somehow the CC1101 module failed or the connection to the module failed. In that case I will send you a replacement module.

from ithowifi.

rkuijer avatar rkuijer commented on August 15, 2024

I'm not sure if it's since version beta 10.
Let me revert back to an older version to rule out if it's just beta 10.
Is there a way to retrieve logging of the init process of the CC1101 module?

from ithowifi.

rkuijer avatar rkuijer commented on August 15, 2024

I mean a more detailed logging 😛
Ok, so if dust of my scope I could try to see if the it's a connection issue. I'll look for the data sheets of the CC1101 module to guide me.
Does the Attiny only handle the init of the Itho or also the init of the CC1101 module?

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024

I can reproduce it, beta9 is working just fine.... somehow, don't know where but I implemented a bug.....

from ithowifi.

rkuijer avatar rkuijer commented on August 15, 2024

Let's look tomorrow 😊

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024

A recompile of the same source seems to 'fix' the issue. I'm afraid I made a mistake somewhere and selected the wrong build environment for the final build of beta10, doh!
2.2-rc1 is the version you can try to see if this fixes your issue.

edit: btw 'tomorrow' has become today :P

from ithowifi.

TD-er avatar TD-er commented on August 15, 2024

edit: btw 'tomorrow' has become today :P

That happens every day ;)

from ithowifi.

rkuijer avatar rkuijer commented on August 15, 2024

Sorry to tell you..........
Setup: init of CC1101 RF module failed
logfile0.current.log

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024

grmbl.... i'll investigate further. Could you please downgrade to beta9 and see if the init works again with that version. That at least rules out a hardware issue then.

from ithowifi.

rkuijer avatar rkuijer commented on August 15, 2024

Let's look at the code changes......beta 9 is OK
logfile0.current.log

from ithowifi.

rkuijer avatar rkuijer commented on August 15, 2024

This afternoon I looked at the delta between beta 9 and 10 and could find a lead.
How did you find it?

The new bin is OK

2163 N: System boot, last reset reason: POWERON_RESET
2182 N: HW rev: 2, FW ver.: 2.2-rc2
4240 N: WiFi: connection successful
4307 N: WiFi info:
4326 N: Mode:STA
4345 N: Status:3
4364 N: IP:192.168.41.149
4433 N: Setup: Virtual remote ID: 18,142,112
4471 N: Setup: Alternative SHT30 sensor found
4507 N: Setup: init of CC1101 RF module successful
5991 N: MQTT: connected, System config: 1
6069 N: Webserver: started
6089 N: mDNS: started
6109 N: Hostname: nrg-itho-8e70
6131 N: Setup: done

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024

This afternoon I looked at the delta between beta 9 and 10 and could find a lead.
How did you find it?

I removed '#include "hardware.h"' with commit 92fdcb0 which is actually not really used anyway but forgot to remove

#if defined (__HW_VERSION_ONE__) || defined (__HW_VERSION_TWO__)

which results in 'pinMode(SS, OUTPUT);' not being compiled in.

Apparently only a cold boot resets the pin regs of the ESP32, so an upgrade from beta9 to beat10 would first just work fine.
That set me on the wrong foot a few times but after a lot of trying I could narrow it down to the mentioned commit.

The new bin is OK

great!

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024

I saw the changes but didn't link them to this issue.

My neither but luckily time and effort solves all these kind of things :)

from ithowifi.

arjenhiemstra avatar arjenhiemstra commented on August 15, 2024

solved with 2a65bd6

from ithowifi.

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.