ghoti57 / evofw3

Major overhaul of evofw2 Evohome listening software to use asynchronous radio mode
60 stars 10 forks source link

No longer working after upgrading to 0.7 #21

Closed lloyda closed 2 years ago

lloyda commented 2 years ago

I've just tried to upgrade from 0.4.4 to 0.7.

It's compiled ok and uploaded to the board, but all I'm getting is the version number message, no packets are being decoded.

I have followed the instructions in the readme, selected atmega328P (SW UART). Any clues on what the issue might be?

ghoti57 commented 2 years ago

There are two variants of the atmega328P based modules around. They have different connections between the 328 and the cc1101.

You need to select the correct option in the arduino GUI when compiling/building

lloyda commented 2 years ago

So I've tried both the nano and the Pro options from the GUI, and I get the same result

lloyda commented 2 years ago

Thinking back, I may be using an atmega128 - is this likely to be a problem with the newer version of the library?

ghoti57 commented 2 years ago

There is no significant difference between the 328 and 328p for evofw3

ghoti57 commented 2 years ago

Just realised you said 128 not 328. I'll have a look at the spec and work out how to get it to compile. If it worked with 0.4.4 there's a reasonable chance it will work with 0.7.0

Do you remember how you compiled 0.4.4 - that predates my custom board definitions. I wasn't aware anyone was using anything but 328(p) and was preparing for the much better 32u4 support.

May take me a few days - just returned from holiday and I'm going to be busy catching up with stuff.

ghoti57 commented 2 years ago

Did you mean atmega168? Is it 8MHz or 16MHz?

lloyda commented 2 years ago

Don't worry too much about this - I have a 32u4 board due to be delivered any day. I doubt very much I will be able to remember how I built it.

lloyda commented 2 years ago

And you were right - atmega168. 16MHz I believe

ghoti57 commented 2 years ago

Where are you getting the 32u4? If it's a nanocul device you might want to keep an eye on this issue.

https://github.com/ghoti57/evofw3/issues/22

lloyda commented 2 years ago

So I've got a genuine Arduino Micro, which looked to me to be compatible. HW Uart, 16MHz clock.

I've downloaded the Sketch, but getting absolutely nothing on the serial monitor.

Using Board: "atmega32u4 (HW Uart)" Processor: "atmega32u4 (5V 16MHz)" Pinout: "SHA atmega32u4"

Simple test sketch does output to serial port.

Any ideas?

ghoti57 commented 2 years ago

Where did you get the device?  Can you post a link.

⁣Get BlueMail for Android ​

On 13 Nov 2021, 19:02, at 19:02, lloyda @.***> wrote:

So I've got a genuine Arduino Micro, which looked to me to be compatible. HW Uart, 16MHz clock.

I've downloaded the Sketch, but getting absolutely nothing on the serial monitor.

Using Board: "atmega32u4 (HW Uart)" Processor: "atmega32u4 (5V 16MHz)" Pinout: "SHA atmega32u4"

Simple test sketch does output to serial port.

Any ideas?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ghoti57/evofw3/issues/21#issuecomment-968119015

lloyda commented 2 years ago

https://thepihut.com/products/arduino-micro-with-headers

lloyda commented 2 years ago

Sticking serial.println ("Hello World") in tty_init does give me an output.

ghoti57 commented 2 years ago

This doesn't have a radio. Evofw3 expects a cc1101 connected to the 32u4 spi interface. 

⁣Get BlueMail for Android ​

On 13 Nov 2021, 19:02, at 19:02, lloyda @.***> wrote:

So I've got a genuine Arduino Micro, which looked to me to be compatible. HW Uart, 16MHz clock.

I've downloaded the Sketch, but getting absolutely nothing on the serial monitor.

Using Board: "atmega32u4 (HW Uart)" Processor: "atmega32u4 (5V 16MHz)" Pinout: "SHA atmega32u4"

Simple test sketch does output to serial port.

Any ideas?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ghoti57/evofw3/issues/21#issuecomment-968119015

ghoti57 commented 2 years ago

You need something like this.

https://indalo-tech.onlineweb.shop/SSM-D/p7844707_21129532.aspx

Statement of interest.  I build and sell these.

⁣Get BlueMail for Android ​

On 13 Nov 2021, 19:02, at 19:02, lloyda @.***> wrote:

So I've got a genuine Arduino Micro, which looked to me to be compatible. HW Uart, 16MHz clock.

I've downloaded the Sketch, but getting absolutely nothing on the serial monitor.

Using Board: "atmega32u4 (HW Uart)" Processor: "atmega32u4 (5V 16MHz)" Pinout: "SHA atmega32u4"

Simple test sketch does output to serial port.

Any ideas?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ghoti57/evofw3/issues/21#issuecomment-968119015

lloyda commented 2 years ago

I have a cc1101 connected.

ghoti57 commented 2 years ago

What are the connections between the 32u4 and the cc1101

⁣Get BlueMail for Android ​

On 13 Nov 2021, 22:29, at 22:29, lloyda @.***> wrote:

I have a cc1101 connected.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ghoti57/evofw3/issues/21#issuecomment-968157438

lloyda commented 2 years ago

In theory, like this:

MOSI-B2 MISO-B3 SCK-B1 GDO0-TXD1(D3) GDO2-RXD1(D2) SHA: CSN-B0

I will double check in the morning

lloyda commented 2 years ago

So I had one of pins wrong. I'm now getting the version number, but nothing else. Looking at the code I thought I should be able to get a response from sending !V from the terminal window - but this does nothing? Or have a got this completely wrong?

lloyda commented 2 years ago

Ignore that last comment, tracked that issue down to serial port window not sending the expected end of line character

lloyda commented 2 years ago

And now getting some packets - had the GDO0 and GDO2 reversed.

ghoti57 commented 2 years ago

Glad you're sorted.