Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:38 05 Jun 2025 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 : PicoMite V6.00.02 release candidates - all versions

     Page 49 of 49    
Author Message
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2467
Posted: 03:54pm 02 Jun 2025
Copy link to clipboard 
Print this post

Mick- latest projects - 2 hdmi break out arrived  waiting for usb to ttl and micro usb
sd card reader. dunno if retro ie soldered ribbon, no molex.
let you know as may be useful... it will be like olimex  on vero but working proper
stan
I also got a spare 2350 pre soldered from the pihut as did the sd card readers and hdmi breakout, they're good. fed up of soldering 40 pins...still got to do them for socket as never soldered pico board
Edited 2025-06-03 02:36 by stanleyella
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2467
Posted: 05:41pm 02 Jun 2025
Copy link to clipboard 
Print this post

the sd cards are 3V so that's why I'm solder wiring it all and sd and hdmi break out underneath the pico board if it's on headers.
going for hdmi usb so usb to ttl for connect to pc. this has 5V and 333V out which will be used as power to pin 40 vbus, the swd card could be from the usb to ttl 3.3V or pico 3.3V
see when usb to ttl arrive and test olimex again cos the 2 converters I got don't work
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10123
Posted: 05:43pm 02 Jun 2025
Copy link to clipboard 
Print this post

Off topic?
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2467
Posted: 06:31pm 02 Jun 2025
Copy link to clipboard 
Print this post

won't argue with you just a new hardware layout hdmi usb and open for suggestions like there's a dac chip that works and any ideas to try anything else welcome.
nowt wrong with what I got so I'll blow this up for anyone... when built
stan
 
jkdelauney
Newbie

Joined: 03/06/2025
Location: United States
Posts: 1
Posted: 04:15pm 03 Jun 2025
Copy link to clipboard 
Print this post

I haven't seen this mentioned in this thread, and did a search to see if it got brought up in another thread.

Between 6.00.01 release and the 6.00.02 betas there seems to be a loss of functionality with MQTT. I say seems to be as there isn't any detail in the manual on how it is supposed to work (that I could find) so my usage has been derived from examples I've found.

When a message is posted to a broker in a subscribed topic MM.MESSAGE$ holds the message and it can be displayed or used, as in .01, but MM.TOPIC$ does not seem to contain anything. I haven't done extensive testing to see if it returns a blank or null, but usage in a PRINT line produces no visible output.

I see that a bit has changed in how these two are populated between .01 and now; and while I understand the code enough to see what it's supposed to be doing I don't understand it enough to identify why it might not be,

My environment is as follows:

MM.TOPIC$ works:
Pico 2 W running: WebMite MMBasic RP2350A Edition V6.00.01

Options:
OPTION FLASH SIZE 4194304
OPTION CPUSPEED  150000 'KHz
OPTION WIFI [network appropriate data here]


MM.TOPIC$ does not work:
Pico 2 W running: WebMite MMBasic RP2350A Edition V6.00.02RC25

Options:
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION CPUSPEED (KHz) 150000
OPTION WIFI [network appropriate data here]


Code used to test:
' MQTT client test

WEB MQTT CLOSE

WEB MQTT CONNECT "test.mosquitto.org", 1884, "ro", "readonly", msgPrint

WEB MQTT SUBSCRIBE "#", 0

Sub msgPrint
 Print DateTime$(now)
 Print "Topic  : "; MM.TOPIC$
 Print "Message: "; MM.MESSAGE$
End Sub

Do

Loop Until Inkey$ = "q"


Sample Output from .02RC25:
Connecting to 5.196.78.28 port 1884
03-06-2025 11:40:31
Topic  :
Message: 1748965230
03-06-2025 11:40:31
Topic  :
Message: oint_temperature":{"value":0,"status_code":"{null} @ def","units":""},"unoccupied_heating_setpoint_temperature":{"
03-06-2025 11:40:31
Topic  :
Message: {"command":0,"timestamp":1744046230,"node_id":8,"node_name":"ตู้ OPD 2","pla
03-06-2025 11:40:31
Topic  :
Message: tamp":"2025-05-31T11:01:30"}


Sample Output from .01 Release:
Connecting to 5.196.78.28 port 1884
03-06-2025 12:05:23
Topic  : //16484256345/radio/rx_succe
Message: 48122
03-06-2025 12:05:23
Topic  : /116484256345/radio/rx_success
Message: 48122
03-06-2025 12:05:23
Topic  : /Acm_Moburapa/11C
Message: {"slave":1,"temp":1,"co
03-06-2025 12:05:23
Topic  : /MCP_Moburapa/11
Message: {"slave":1,"temp":1,"co


Between each flash of firmware I've done a clear flash to make sure nothing lingered.

MM.MESSAGE$ seems to be truncating, but I'm not sure if that's a limitation of the MQTT implementation or a buffer issue.
Edited 2025-06-04 02:18 by jkdelauney
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10123
Posted: 06:48am 04 Jun 2025
Copy link to clipboard 
Print this post

Travelling at the moment, will look at it when I get home
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 403
Posted: 02:34am 05 Jun 2025
Copy link to clipboard 
Print this post

CHAIN might have a problem in RC25. Here are two programs. If this is the first time prog1 is run, it sets a to 4 and chains prog2. Prog2 prints a message, sets a to 1, and chains prog1.

prog1:
if a<>1 then
  a=4
  chain "prog2"
endif
print "We're back!"


prog2
print "Here's program 2"
a=1
chain "prog1"


When I run prog1, I get
[LIBRARY] const true=-1
Error : true variable already declared


I do have TRUE declared in my library but why is CHAIN trying to rerun the library commands?

Even if I delete the library, CHAIN never prints the "Here's program 2" message.
Edited 2025-06-05 12:56 by toml_12953
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2500
Posted: 03:06am 05 Jun 2025
Copy link to clipboard 
Print this post

> save "Prog1.bas"
> list "Prog1.bas"
' prog1
Print  "Prog1.bas starting... a="a
If a<>1 Then
 a=4
 Print "a="a
 Chain "Prog2.bas"
EndIf
Print "We're back!"
> list "Prog2.bas"
Print "Here's program 2"
a=1
Chain "Prog1.bas"
>
> RUN
Prog1.bas starting... a= 0
a= 4
Prog1.bas starting... a= 4
a= 4
Prog1.bas starting... a= 4
a= 4
Prog1.bas starting... a= 4
a= 4
Prog1.bas starting... a= 4
a= 4
Prog1.bas starting... a= 4
a= 4

It would appear prog2 is called but does nothing except call prog1. Print and a=1 get skipped.
Edited 2025-06-05 13:35 by phil99
 
     Page 49 of 49    
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025