Unable to connect Nicla Voice Board to edge impulse for sampling

Hello,

I’m currently trying to connect my arduino nicla voice to edge impulse to sample data with it.

When I use the edge-impulse-daemon, I can connect the board to edge-impulse, but when I try to click on “start sample” in data acquisition it changes to “waiting to start” and after that nothing happens. (Screenshot 1)

After a while I get the “Sampling failed” errormessage. (Screenshot 2)

Also when I try to use the data-forwarder I get the error message from the third screenshot.

Maybe you can help me, thank you.

Hi @gom9sgm

In the screenshot you are using the edge-impulse-data-forwarder, do you have the same error when using the edge-impulse-daemon ?

fv

Hi @ei_francesco

No, with the edge-impulse-daemon I can connect to edge impulse and the device is on green and connected so I can click on “start sampling”

ok then with the daemon you get “waiting to start” and nothing happens, correct ?
Did you flash the board with an audio model ?

Can you connect with the daemon adding --verbose and past here the log of the connection phase and then when starting a sampling ?

thx

Yes, than nothing happens.

I downloaded the audio firmware from here: Arduino Nicla Voice - Edge Impulse Documentation

and flashed the flash_windows.bat

Thats the log when I try the “edge-impulse-daemon --verbose”-command and start sampling:

Microsoft Windows [Version 10.0.19045.3803]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\marcg>edge-impulse-daemon --verbose
Edge Impulse serial daemon v1.23.1
? What is your user name or e-mail address (edgeimpulse.com)? marclukas.goeppel@bosch.com
? What is your password? [hidden]
Endpoints:
    Websocket: wss://remote-mgmt.edgeimpulse.com
    API:       https://studio.edgeimpulse.com
    Ingestion: https://ingestion.edgeimpulse.com

[SER] Connecting to COM8
[SER] Serial is connected, trying to read config...
[Tx ] b
[Rx ] b
Not a valid AT command (b)
>
[Tx ] AT+CO
[Rx ] AT+CO
[Tx ] NFIG?
[Rx ] NFIG?
[Tx ]
[Rx ]
===== Device info =====
ID:         a3:e4:95:b3:5e:5f
Type:       ARDUINO_NICLA_VOICE
AT Version: 1.7.0
Data Transfer Baudrate: 230400

===== Sensors ======
Name: Microphone, Max sample length: 5s, Frequencies: [16000.000000Hz]

===== Snapshot ======
Has snapshot:    0

===== WIFI =====
SSID:
Password:
Security:  0
MAC:       00:00:00:00:00:00
Connected: 0
Present:   0

===== Sampling parameters =====
Label:     Test
Interval:  0.062500 ms.
Length:    5000 ms.
HMAC key:  bbfb0683401467a337b5d936fc8265be

===== Upload settings =====
Api Key:   ei_e5f2d7b3eee74e92f3f98f321238ef4aba4e9cd60b62363f2351c27d32c89555
Host:      /api/training/data
Path:

===== Remote management =====
ws://remote-mgmt.edgeimpulse.com

>
[SER] Unhandled configuration option management ws //remote-mgmt.edgeimpulse.com
[SER] Retrieved configuration
[SER] Device is running AT command version 1.7.0

? To which project do you want to connect this device? Marc Göppel / Keyword_Spotting
Setting upload host in device...[Tx ] AT+UP
[Rx ] AT+UP
[Tx ] LOADH
[Rx ] LOADH
[Tx ] OST=h
[Rx ] OST=h
[Tx ] ttp:/
[Rx ] ttp:/
[Tx ] /inge
[Rx ] /inge
[Tx ] stion
[Rx ] stion
[Tx ] .edge
[Rx ] .edge
[Tx ] impul
[Rx ] impul
[Tx ] se.co
[Rx ] se.co
[Tx ] m
[Rx ] m

[Rx ] OK
>
 OK
Configuring remote management settings...[Tx ] AT+MG
[Rx ] AT+MG
[Tx ] MTSET
[Rx ] MTSET
[Tx ] TINGS
[Rx ] TINGS
[Tx ] =ws:/
[Rx ] =ws:/
[Tx ] /remo
[Rx ] /remo
[Tx ] te-mg
[Rx ] te-mg
[Tx ] mt.ed
[Rx ] mt.ed
[Tx ] geimp
[Rx ] geimp
[Tx ] ulse.
[Rx ] ulse.
[Tx ] com
[Rx ] com

[Rx ] OK
>
 OK
[Tx ] AT+CO
[Rx ] AT+CO
[Tx ] NFIG?
[Rx ] NFIG?
[Tx ]
[Rx ]
===== Device info =====
ID:         a3:e4:95:b3:5e:5f
Type:       ARDUINO_NICLA_VOICE
AT Version: 1.7.0
Data Transfer Baudrate: 230400

===== Sensors ======
Name: Microphone, Max sample length: 5s, Frequencies: [16000.000000Hz]

===== Snapshot ======
Has snapshot:    0

===== WIFI =====
SSID:
Password:
Security:  0
MAC:       00:00:00:00:00:00
Connected: 0
Present:   0

===== Sampling parameters =====
Label:     Test
Interval:  0.062500 ms.
Length:    5000 ms.
HMAC key:  bbfb0683401467a337b5d936fc8265be

===== Upload settings =====
Api Key:   ei_e5f2d7b3eee74e92f3f98f321238ef4aba4e9cd60b62363f2351c27d32c89555
Host:      http://ingestion.edgeimpulse.com
Path:

===== Remote management =====
ws://remote-mgmt.edgeimpulse.com

>
[SER] Unhandled configuration option management ws //remote-mgmt.edgeimpulse.com
[Tx ] AT+CO
[Rx ] AT+CO
[Tx ] NFIG?
[Rx ] NFIG?
[Tx ]
[Rx ]
===== Device info =====
ID:         a3:e4:95:b3:5e:5f
Type:       ARDUINO_NICLA_VOICE
AT Version: 1.7.0
Data Transfer Baudrate: 230400

===== Sensors ======
Name: Microphone, Max sample length: 5s, Frequencies: [16000.000000Hz]

===== Snapshot ======
Has snapshot:    0

===== WIFI =====
SSID:
Password:
Security:  0
MAC:       00:00:00:00:00:00
Connected: 0
Present:   0

===== Sampling parameters =====
Label:     Test
Interval:  0.062500 ms.
Length:    5000 ms.
HMAC key:  bbfb0683401467a337b5d936fc8265be

===== Upload settings =====
Api Key:   ei_e5f2d7b3eee74e92f3f98f321238ef4aba4e9cd60b62363f2351c27d32c89555
Host:      http://ingestion.edgeimpulse.com
Path:

===== Remote management =====
ws://remote-mgmt.edgeimpulse.com

>
[SER] Unhandled configuration option management ws //remote-mgmt.edgeimpulse.com
[SER] Device is not connected to remote management API, will use daemon
[WS ] Connecting to wss://remote-mgmt.edgeimpulse.com
[WS ] Connected to wss://remote-mgmt.edgeimpulse.com
[WS ] Device "Nicla Voicee" is now connected to project "Keyword_Spotting". To connect to another project, run `edge-impulse-daemon --clean`.
[WS ] Go to https://studio.edgeimpulse.com/studio/334399/acquisition/training to build your machine learning model!
[WS ] Incoming sampling request {
  path: '/api/training/data',
  label: 'Test',
  length: 5000,
  interval: 0.0625,
  hmacKey: 'bbfb0683401467a337b5d936fc8265be',
  sensor: 'Microphone'
}
[Tx ] AT+SA
[Rx ] AT+SA
[Tx ] MPLES
[Rx ] MPLES
[Tx ] ETTIN
[Rx ] ETTIN
[Tx ] GS=Te
[Rx ] GS=Te
[Tx ] st,0.
[Rx ] st,0.
[Tx ] 0625,
[Rx ] 0625,
[Tx ] 5000,
[Rx ] 5000,
[Tx ] bbfb0
[Rx ] bbfb0
[Tx ] 68340
[Rx ] 68340
[Tx ] 1467a
[Rx ] 1467a
[Tx ] 337b5
[Rx ] 337b5
[Tx ] d936f
[Rx ] d936f
[Tx ] c8265
[Rx ] c8265
[Tx ] be
[Rx ] be

[Rx ] OK
>
[Tx ] AT+UP
[Rx ] AT+UP
[Tx ] LOADS
[Rx ] LOADS
[Tx ] ETTIN
[Rx ] ETTIN
[Tx ] GS=ei
[Rx ] GS=ei
[Tx ] _e5f2
[Rx ] _e5f2
[Tx ] d7b3e
[Rx ] d7b3e
[Tx ] ee74e
[Rx ] ee74e
[Tx ] 92f3f
[Rx ] 92f3f
[Tx ] 98f32
[Rx ] 98f32
[Tx ] 1238e
[Rx ] 1238e
[Tx ] f4aba
[Rx ] f4aba
[Tx ] 4e9cd
[Rx ] 4e9cd
[Tx ] 60b62
[Rx ] 60b62
[Tx ] 363f2
[Rx ] 363f2
[Tx ] 351c2
[Rx ] 351c2
[Tx ] 7d32c
[Rx ] 7d32c
[Tx ] 89555
[Rx ] 89555
[Tx ] ,/api
[Rx ] ,/api
[Tx ] /trai
[Rx ] /trai
[Tx ] ning/
[Rx ] ning/
[Tx ] data
[Rx ] data

[Rx ] OK
>
[SER] Configured upload settings
[Tx ] AT+SA
[Rx ] AT+SA
[Tx ] MPLES
[Rx ] MPLES
[Tx ] TART=
[Rx ] TART=
[Tx ] Micro
[Rx ] Micro
[Tx ] phone
[Rx ] phone
[Tx ]
[Rx ]
Sampling settings:
        Interval: 0.06250 ms.
        Length: 5000 ms.
        Name: Test
        HMAC Key: bbfb0683401467a337b5d936fc8265be
        File name: Test
Starting in 2000 ms... (or until all flash was erased)

[Rx ] Trying to write 248 byteMic thread: required samples 80000

[WS ] Failed to sample data Timeout when waiting for >  (timeout: 80000) AT+SAMPLESTART=Microphone

I’ll check, thx for reporting.

Hi @gom9sgm ,

can you try to run the format_ext command for your OS and then flash again ?
I just tested the bin in the zip and is working fine for me.

regards,
fv

Hi @ei_francesco

sry for asking, but I dont know which command you mean :sweat_smile:
Should I run the command in my console? And what does this command do? I couldnt find something helpful on the internet when I google “format_ext windows command”

Thank you.

Hi @gom9sgm ,

you can find the file in the zip.
Screenshot 2024-01-16 at 10.30.54

For win, the file is format_windows_ext_flash.bat

let me know

fv