I think i've found the issue,
I think when the LoRa.begin function is called it is locking up the SPI so that it then can't talk to it, but on the next time round the loop the screen's SPI.begin is being called again so is able to access it and draw to the screen
Posts made by kieran.osborne
-
RE: HOWTO: M5Stack with GPS, GSM and LoRa, all at the same time
-
RE: USB Device not recognised
Wow! haha, just found the most weirdest solution,
not sure if the USB port in the M5 stack is wired properly,
If I turn the USB C cable around then it works, so it seems like the cable has to be a certain direction for it to work, I have even tested this with multiple cables all with the same result!, so if it's not working try rotating your cable! -
RE: USB Device not recognised
Having the same issue again!!
I'm using a USB Device Viewer and it says:*!*ERROR: No open pipes!
===>Device Descriptor<===
*!*ERROR: bLength of 0 incorrect, should be 18
bLength: 0x00
bDescriptorType: 0x00
bcdUSB: 0x0000
bDeviceClass: 0x00
*!*ERROR: Device enumeration failure -
RE: HOWTO: M5Stack with GPS, GSM and LoRa, all at the same time
Hi rop,
When I run your code the screen is completely white,
but If i press the A button (button far left), it looks like it refreshes the screen and then the text is displayed?, weirder and weirder haha -
RE: HOWTO: M5Stack with GPS, GSM and LoRa, all at the same time
I have had issues with my M5 Stack keep popping up on windows with USB device not recognised, so wonder if somehow they are related, is a bit strange
-
RE: HOWTO: M5Stack with GPS, GSM and LoRa, all at the same time
Hi Rop,
I have tried pushing a little harder on it but didn't change anything.
On the serial port i'm getting:
"Testing LoRa ...
Init Succeeded
Reset line works" -
White screen when using LoRa module
Hello everyone, when I try to use the LoRa module i'm just getting a completely white screen.
The code i'm using is:#include <M5Stack.h>
#include <M5LoRa.h>void setup() {
M5.begin();
// override the default CS, reset, and IRQ pins (optional)
LoRa.setPins(); // default set CS, reset, IRQ pin
Serial.println("LoRa Receiver");
M5.Lcd.println("LoRa Receiver");// frequency in Hz (433E6, 866E6, 915E6)
if (!LoRa.begin(433E6)) {
Serial.println("Starting LoRa failed!");
M5.Lcd.println("Starting LoRa failed!");
while (1);
}// LoRa.setSyncWord(0x69);
Serial.println("LoRa init succeeded.");
M5.Lcd.println("LoRa init succeeded.");
}void loop() {
// try to parse packet
int packetSize = LoRa.parsePacket();
if (packetSize) {
// received a packet
Serial.print("Received packet: "");
M5.Lcd.print("Received packet: "");// read packet while (LoRa.available()) { char ch = (char)LoRa.read(); Serial.print(ch); M5.Lcd.print(ch); } // print RSSI of packet Serial.print("\" with RSSI "); Serial.println(LoRa.packetRssi()); M5.Lcd.print("\" with RSSI "); M5.Lcd.println(LoRa.packetRssi());
}
}not sure how to add a code tag sorry.
I have tried swapping the LoRa RST and INT pins according to someone on the forum to make the LoRa work, the LoRa seems to be working okay but the screen is just completely white. -
RE: HOWTO: M5Stack with GPS, GSM and LoRa, all at the same time
Just used your code to test with a LoRa module.
I just have the black M5 Stack and the LoRa module, but the screen goes white when I have the LoRa module attached? -
RE: USB Device not recognised
I have just tried taking the bottom section off (the section with the battery in it) and it seems to be working fine now, as soon as I put that bottom section back on it doesn't work again, so strange....
-
RE: USB Device not recognised
I have tried it on multiple computers and they are all coming up in device manager with "Windows has stopped this device because it has reported problems. (Code 43)
-
RE: USB Device not recognised
@ajb2k3 Yeah, the strange thing is that I have another device which seems to use the same driver as they had the same name in device manager, and the other device seems to work fine.
-
RE: USB Device not recognised
@ajb2k3 I have put a 2.2uf capacitor between RST and gnd as thats what I saw in the forums, I don't have another USB adapter unfortunately.
Is it the USB that is causing the issue? -
RE: USB Device not recognised
Anyone know why this is happening?,
I can plug it in and it works, but a little while later if I disconnect it and then reconnect it, this happens. -
USB Device not recognised
I was able to upload sketches to it if i dropped the upload speed to 115200 and i pressed the reset button when it was uploading but now windows (windows 10) isn't recognised the unit at all. I'm using the drivers that were recommended on the getting started section.