sorry for all the questions but i have a Pico-LoRa-SX1262 Pico-W and it connects to my network and is fine with my android phone but if i try acsess it via a web browser on my laptop using https://client.meshtastic.org/ it wont connect has anyone had this issue please
Hey @Allan282673,
It seems very strange that it works on your Android phone but not on your laptop.
It would be ideal for you to provide us some more info, to allow us the help out more effectively, specifically:
- Images of your physical setup (Though I expect this to be fairly simple)
- Code snippets from your project, If possible.
- Links to the specific products you’re using.
I haven’t run into this specific issue before, but I’m sure we can figure out exactly what’s going wrong!
Thanks Zach im new to this but im using a SX1262 LoRa Node Module and a Raspberry Pi Pico WH i loaded the firmware via https://flasher.meshtastic.org/ and tried the alpha and beta files
atm i have Meshtastic 352e v2.5.12.aa184e6 hope that helps
Hey @Allan282673,
I would not expect the issue to lie with the LoRa Module/Raspberry Pi given the fact that your Android can communicate with no issue.
My instinct would be that this is a security issue on the laptop side. My suggestions for what to try next are as follows:
- Ensure the communication is not being blocked by a firewall
- If you have an adblocker, turn it off for the meshtastic website.
- Try using HTTP instead of HTTPS, though Meshtastic might have a hardcoded redirect anyway
These are some simple options I can think of as of right now.
Hope this helps!
Hi Allan,
Another thing to look at would be to check that if your router is dual band that your PC is connected to the 2.4GHz network, while it should still work with the PC being on the 5GHz band it could also be part of the issue that you’re experiencing.
Thanks guys ive tried everything i do have another ill put together during the week
Hi Alan,
Try and rule things out or what I like to call the divide by two rule.
Make the problem simpler then add complexity one thing at a time and test, test, test
I assume you are using a browser on both devices. It could be that the browser on your PC is not accepting the ssl certificate from the pico. Do you get an error message in the browser?
If it simply gives a 404 page not found type message it may indeed be a network problem. You have probably already figured out what the ip address of the pico is. Can you ping that ip from your PC?
You will probably need an app on your android to do a ping but I’m sure there are free ones of those around.
Keen to hear how you get on and what you find.
David
Hi David thanks for the response yes i can ping it and ive trie 3 differant laptops and browsers, I tried a second one i had and i get exactly the same responce Also i notice on my android phone i can connect initialy and it works fine but say the next day i cannot reconnect and i cannot ping it. im beginning to think its a firmware problem as im using the web based tool and using that firmware https://flasher.meshtastic.org/
Hi Alan,
I’m not sure what that flash tool is for. I haven’t needed to flash anything in my pico projects. I have a project that uses this same lora module on a pico. Actually two of each talking with each other. It’s been a little while since I completed the project but I did make a “Project” for it here on Core Electronics.
All the code is on git hub.
Thinking back to how I got the web page to work on the house end device, I had to start a new process on the second processor core. (The pico processor is dual core)
This way it can do two things at once, Otherwise if the code was processing something else it would miss the http request. Initially I could get the web page to work or I could get the Lora communication to work but not both at once and it was hit and miss.
Cut your code down into modules and test them one at a time.
Do you see the same http problems on a pico without the lora module?
I did a simple web page where a button on a web form can turn the led on and off or play a tone out the speaker.
I also determined that as my code became more complex I was running out of memory and needed to add garbage collections. Part of my debugging was to include how much memory is free.
I build debugging output into my code (not just print statements) so when I’m done with it I can just turn it off by changing one constant.
It you decide to have a look at my gate alarm code let me know if you get stuck on anything.
David
Ok so it seems the pico w does not have a web server and HTTP API , so it will never work i shouldve done more reserch before wasting my money
Hi Allan,
You could try using a Pi Zero? Depending on how your LoRa module works it shouldn’t be too difficult to port over.
Hey Allan,
It might not be what you are after but I have previously been able to connect that setup to a computer with just USB. It was a fair while ago but there is a way to run it all through the COM port.