Here are the logs I should obtain uploading an MRKFOX1200 https://www.arduino.cc/en/Tutorial/SigFoxFirstConfiguration
Here is what I actually get :
arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/467413460 -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/908271625/pinned -libraries /tmp/908271625/custom -fqbn arduino:samd:mkrfox1200 -build-cache /tmp -verbose=false /tmp/908271625/FirstConfiguration
Sketch uses 36880 bytes (14%) of program storage space. Maximum is 262144 bytes.
Restarting in bootloader mode
Get port list before reset
[/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem1421 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem1421]
Touching port /dev/cu.usbmodem1421 at 1200bps
Set DTR off
Flashing with command:/Users/myname/.arduino-create/arduino/bossac/1.7.0/bossac --port=tty.usbmodem1421 -U true -i -e -w -v /var/folders/n1/5byp3w956jnf42mcq5_dt_th0000gp/T/arduino-create-agent291575360/FirstConfiguration.bin -R
Atmel SMART device 0xeight digits number found
Device : ATSAMD21G18A
Chip ID : Eight digits number
Version : v2.0 [Arduino:XYZ] Mar 10 2017 12:20:17
Address : 8192
Pages : 3968
Page Size : 64 bytes
Total Size : 248KB
Planes : 1
Lock Regions : 16
Locked : none
Security : false
Boot Flash : true
BOD : true
BOR : true
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 0.811 seconds
Write 37344 bytes to flash (584 pages)
[=== ] 10% (64/584 pages) [====== ] 21% (128/584 pages) [========= ] 32% (192/584 pages) [============= ] 43% (256/584 pages) [================ ] 54% (320/584 pages) [=================== ] 65% (384/584 pages) [======================= ] 76% (448/584 pages) [========================== ] 87% (512/584 pages) [============================= ] 98% (576/584 pages) [==============================] 100% (584/584 pages)
done in 0.233 seconds
Verify 37344 bytes of flash with checksum.
Verify successful
done in 0.032 seconds
CPU reset.
An I really do not understand how I get this log with the following sketch :
/*
SigFox First Configuration
This sketch demonstrates the usage of MKRFox1200 SigFox module.
Since the board is designed with low power in mind, it depends directly on ArduinoLowPower library
This example code is in the public domain.
*/
#include <SigFox.h>
#include <ArduinoLowPower.h>
void setup() {
Serial.begin(9600);
while (!Serial) {};
// Uncomment this line and comment begin() if you are working with a custom board
//if (!SigFox.begin(SPI1, 30, 31, 33, 28, LED_BUILTIN)) {
if (!SigFox.begin()) {
Serial.println("Shield error or not present!");
return;
}
// Enable debug led and disable automatic deep sleep
// Comment this line when shipping your project
SigFox.debug();
String version = SigFox.SigVersion();
String ID = SigFox.ID();
String PAC = SigFox.PAC();
// Display module informations
Serial.println("MKRFox1200 Sigfox first configuration");
Serial.println("SigFox FW version " + version);
Serial.println("ID = " + ID);
Serial.println("PAC = " + PAC);
Serial.println("");
Serial.print("Module temperature: ");
Serial.println(SigFox.internalTemperature());
Serial.println("Register your board on Activate | Sigfox Buy with provided ID and PAC");
delay(100);
// Send the module to the deepest sleep
SigFox.end();
Serial.println("Type the message to be sent");
while (!Serial.available());
String message;
while (Serial.available()) {
message += (char)Serial.read();
}
// Every SigFox packet cannot exceed 12 bytes
// If the string is longer, only the first 12 bytes will be sent
if (message.length() > 12) {
Serial.println("Message too long, only first 12 bytes will be sent");
}
Serial.println("Sending " + message);
// Remove EOL
message.trim();
// Example of message that can be sent
// sendString(message);
Serial.println("Getting the response will take up to 50 seconds");
Serial.println("The LED will blink while the operation is ongoing");
// Example of send and read response
sendStringAndGetResponse(message);
}
void loop()
{
}
void sendString(String str) {
// Start the module
SigFox.begin();
// Wait at least 30mS after first configuration (100mS before)
delay(100);
// Clears all pending interrupts
SigFox.status();
delay(1);
SigFox.beginPacket();
SigFox.print(str);
int ret = SigFox.endPacket(); // send buffer to SIGFOX network
if (ret > 0) {
Serial.println("No transmission");
} else {
Serial.println("Transmission ok");
}
Serial.println(SigFox.status(SIGFOX));
Serial.println(SigFox.status(ATMEL));
SigFox.end();
}
void sendStringAndGetResponse(String str) {
// Start the module
SigFox.begin();
// Wait at least 30mS after first configuration (100mS before)
delay(100);
// Clears all pending interrupts
SigFox.status();
delay(1);
SigFox.beginPacket();
SigFox.print(str);
int ret = SigFox.endPacket(true); // send buffer to SIGFOX network and wait for a response
if (ret > 0) {
Serial.println("No transmission");
} else {
Serial.println("Transmission ok");
}
Serial.println(SigFox.status(SIGFOX));
Serial.println(SigFox.status(ATMEL));
if (SigFox.parsePacket()) {
Serial.println("Response from server:");
while (SigFox.available()) {
Serial.print("0x");
Serial.println(SigFox.read(), HEX);
}
} else {
Serial.println("Could not get any response from the server");
Serial.println("Check the SigFox coverage in your area");
Serial.println("If you are indoor, check the 20dB coverage or move near a window");
}
Serial.println();
SigFox.end();
}
Where are the DEVICE ID an PAC numbers that I am waiting for ?