ElectronicCats / CatWAN_USB_Stick

An Open Source USB Stick compatible with LoRa and LoRaWAN with Cortex M0+. To connect, review and analyze packages of LoRa®
GNU General Public License v3.0
39 stars 13 forks source link

Lack of build instructions #5

Closed BatchDrake closed 4 years ago

BatchDrake commented 4 years ago

Hi all,

I'm trying to use the LoRa PHY Sniffer example, but I'm having trouble making it work. First of all, after installing the corresponding board description as you suggest in your README, I faced the following build issue:

LoRaSniffer:20:27: fatal error: SerialCommand.h: No such file or directory
 #include <SerialCommand.h>

My guess was that it depended on SerialCommand, but this library does not show up in the library manager. I looked it up on GitHub and, after finding multiple mutually-incompatible implementations of the same library, I came across this one (https://github.com/kroimon/Arduino-SerialCommand) which seemed to build. The problem now is that LoRaSniffer does not get past these lines:

void setup(){  
  pinMode(LED_BUILTIN,OUTPUT);      // Configure the onboard LED for output
  digitalWrite(LED_BUILTIN,LOW);    // default to LED off
  pinMode(RFM_DIO5,INPUT);
  Serial.begin(115200); 
  while (!Serial);

which don't seem to be related to SerialCommand at all. I know the bootloader works because if I set the LED_BUILTIN to HIGH right before initializing the serial, the green LED lights it up. However, if I set it right after the while(!Serial), the LED remains switched off.

I think I may be missing a primary source of documentation here. The only thing I need is to read the contents of the LoRa PHY frames from Putty, that would be pretty much it. Is there a guide somewhere with detailed steps on how to build & use this sniffer?

Thanks!

sabas1080 commented 4 years ago

Hi @BatchDrake

while (!Serial);

wait for serial port to open via Arduino IDE or Putty, after that you would see

  Serial.println("Welcome to the LoRa Sniffer CLI " + String(fwVersion,1) + "v\n");
  Serial.println("With this sketch you can scan the LoRa spectrum");
  Serial.println("Changing the Frequency, Spreading Factor, BandWidth or the IQ signals of the radio.");
  Serial.println("Type help to get the available commands.");
  Serial.println("Electronic Cats ® 2020");

if you don´t open serial port, the program will not advance

BatchDrake commented 4 years ago

Waited for minutes with no results. Pressing Enter or typing help didn't work either. Port speed was 115200.

El vie., 12 jun. 2020 19:34, Sabas notifications@github.com escribió:

Hi @BatchDrake https://github.com/BatchDrake

while (!Serial);

wait for serial port to open via Arduino IDE or Putty, after that you would see

Serial.println("Welcome to the LoRa Sniffer CLI " + String(fwVersion,1) + "v\n");

Serial.println("With this sketch you can scan the LoRa spectrum");

Serial.println("Changing the Frequency, Spreading Factor, BandWidth or the IQ signals of the radio.");

Serial.println("Type help to get the available commands.");

Serial.println("Electronic Cats ® 2020");

if you don´t open serial port, the program will not advance

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ElectronicCats/CatWAN_USB_Stick/issues/5#issuecomment-643399037, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEVET55RFQLTQG2SVBRAZLRWJRJPANCNFSM4N4KEVVA .

sabas1080 commented 4 years ago

You have to active in serial monitor New Line and carriage Return and send command "help please"

Captura de Pantalla 2020-06-12 a la(s) 12 49 51
BatchDrake commented 4 years ago

Okay, it works now. Thanks!