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!
Best posts made by kieran.osborne
-
RE: USB Device not recognised
Latest posts made by kieran.osborne
-
RE: HOWTO: M5Stack with GPS, GSM and LoRa, all at the same time
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 -
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)