Go Down

Topic: MKRFOX1200 (Read 637 times) previous topic - next topic

reza597

Hey folks.
I've been using MKRFOX1200 and actually managed to send some data to the backend.
but suddenly after a couple of times I connected and disconnected the USB cable, the Computer no longer recognizes the MKRFOX1200 device. I've already tried the drivers and rebooting the system and a whole lot more methods. none worked!!
Btw here is the device status in the device manager:
"Windows has stopped this device because it has reported problems. (Code 43)

A request for the USB device descriptor failed"

thanks in advance

horace

I have had similar problems getting the MKR FOX 1200 serial port to appear
I usually
1. open the Control Panel > System > Device manager > Ports  so I can watch the COM ports appear/disappear
2. double cllick the reset button - after a few tries a COM port appears
3. upload the Blink example code so I have a operational program

sometimes when compiling/uploading I have to double click  the reset again
I have also found that the COM port can change after upload

reza597

#2
May 20, 2018, 03:19 pm Last Edit: May 20, 2018, 03:54 pm by reza597
Thanks for your answer, it helped.
I also found out the ports also might change while trying to use the serial monitor.
pushing the reset button twice resets the Bootloader.
I think the problem appears when using the board to connect to the backend and maybe sth goes wrong while using the SigFox libraries.
I'll update any further improvements here.

DavidSuzP

Hi.
I had the same issue, with this code:
#include <SigFox.h>

int sensorPin = A1;
int value = 0;
void setup() {
 Serial.begin(9600);
 
}
 
void loop() {
 delay(1000);
 value = analogRead(sensorPin);
 Serial.println(value, DEC);
 Serial.println(SigFox.internalTemperature());
 


and the way to solve it was to include  the initializer in the sketch:

#include <SigFox.h>

int sensorPin = A1;
int value = 0;
void setup() {
 Serial.begin(9600);
 if (!SigFox.begin()) {
    Serial.println("Shield error or not present!");
    return;
  }
 
}
void loop() {
 delay(1000);
 value = analogRead(sensorPin);
 Serial.println(value, DEC);
 Serial.println(SigFox.internalTemperature());
 
}

So, the issue is related with the initialization of SigFox, to use .internalTemperature it's necessary to initialize the SigFox module. Really has sense.


runningz

This problem solved pressing twice the reset button, and then upload again the sketch. This forces to connect again USB port.

Go Up