Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:25 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Webmite Heartbear

Author Message
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 09:53pm 10 Dec 2023
Copy link to clipboard 
Print this post

Hi all

When no monitor is connected, and the Wifi link is turned off, then the only sign of life is the heartbeat.
I noticed different rates of blinking and when for some reason my program stops, the heartbeat disappears altogether. Yet I can CTRl C to get the prompt if I reconnect the monitor.

Can someone please explain the logic behind the heartbeat,  as to what slows it and when/why does it stop.
Regards
Hervey Bay Qld.
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 01:30am 13 Dec 2023
Copy link to clipboard 
Print this post

Hi All

I guess no-one can help on that, so...

The next question is, using the on board led for my own version of heartbeat.
But, when I disable the heartbeat (and that works) and try to use GP25 I get errors.

[54] SetPin gp25,dout
Error : Pin 43/R:  is invalid

Reading posts from about a year ago showed someone using the on board led.
Has something changed in the later versions ?
Regards
Hervey Bay Qld.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 02:04am 13 Dec 2023
Copy link to clipboard 
Print this post

That works on the other Picos but on the WebMite I think GP25 goes to the WiFi module. The heartbeat led is connected the WiFi module, so ON/OFF are the only options.
Edited 2023-12-13 12:18 by phil99
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 02:08am 13 Dec 2023
Copy link to clipboard 
Print this post

From the manual
  Quote  Unlike the original Raspberry Pi Pico, the on-board LED on Pico W is not connected to a pin on RP2040, but instead to a GPIO pin on the wireless chip and cannot be accessed from a BASIC program.


The heartbeat can be turned on/off but not otherwise controlled in Basic.

It beats slowly when not connected and then faster when connected to the network. This was done to make it easier to diagnose headless installations.

GP25 is only available in standard and VGA picomites

The heartbeat is controlled by one of the system timers so if the heartbeat has stopped, one of the timers has stopped. RTC and settick etc will also have stopped.

Jim
VK7JH
MMedit   MMBasic Help
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 02:12am 13 Dec 2023
Copy link to clipboard 
Print this post

Hi All

Thanks for that, I can stop trying to make my own work.
One problem I have is that the program is still under the impression that it is sending to the Rpi-Zero, but the Rpi-Zero is not receiving anything.
And you guessed it, the Heartbeat light was stopped.
Regards
Hervey Bay Qld.
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 02:28am 13 Dec 2023
Copy link to clipboard 
Print this post

Hi All

I feel the goal posts moving  
Installed the latest Beta  WebmiteV5.08.00b4.uf2

Now I get errors I didn't previously.

> option rtc enable
Error : Invalid Option

[52] SetPin GP18,CIN                               'we are counting Amp Hour pulses
Error : Invalid configuration

Yet
SetPin GP22,CIN doesn't create an error
Regards
Hervey Bay Qld.
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 03:20am 13 Dec 2023
Copy link to clipboard 
Print this post

Hi All

Apologies, forgot to reset all the options before running program.
Regards
Hervey Bay Qld.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9307
Posted: 05:18am 13 Dec 2023
Copy link to clipboard 
Print this post

  Dinosaur said  Hi All

Apologies, forgot to reset all the options before running program.


Very easy to do!  
I speak from experience on that one also!  
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024