Getting data from SLN-LOCAL/2-IOT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting data from SLN-LOCAL/2-IOT

Jump to solution
2,399 Views
diegococonut
Contributor I

Hello, I'm new to i.MX RT board. I'm joining a team trying to develop a project that we can tell a number to a board and the board will send it to our database. In "dialog demo", we noticed that in tera term there are some index:

[ASR] Session started
[ASR] Wake Word: Hey NXP(0) - MapID(1)
[ASR] Command: Set Preheat(0) - MapID(7)
[ASR] Command: three hundred degrees(40) - MapID(8)
[ASR] Session ended

I'm wonder that if there is any way to get the index and the MapID of the commands, since we can use this index to do further applications. If there is another way that we can get these data directly from the board, please also tell us.

Thank you.

0 Kudos
Reply
1 Solution
2,386 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @diegococonut ,

   Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

 1. index 

   You can use this code:

oob_demo_control.ledCmd = g_asrControl.result.keywordID[1];

2. 

    pInfCMD = g_asrControl.infEngineCMD;

  pInfCMD->iWhoAmI_inf

More details, you can check the local2 SDK sln_local2_iot_local_demo, sln_local_voice.c.

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

kerry

 

View solution in original post

0 Kudos
Reply
8 Replies
2,374 Views
diegococonut
Contributor I

@kerryzhou 
Thanks for your reply.

May I also ask that if there is anyway to use SLN-LOCAL/2-IOT to send this parameters directly to database such as mySQL from WIFI. I've noticed that the board seems to have WIFI functions, but not really sure how and if we can use it.

Thank you very much.

0 Kudos
Reply
2,370 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @diegococonut ,

   What I can tell you is, the SLN_LOCAL2-IOT board can send the data through the WIFI, but about the WIFI to your database mySQL, it should be the network things, not the MCU side things.

  Wish it helps you!

Best Regards,

Kerry

0 Kudos
Reply
2,387 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @diegococonut ,

   Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

 1. index 

   You can use this code:

oob_demo_control.ledCmd = g_asrControl.result.keywordID[1];

2. 

    pInfCMD = g_asrControl.infEngineCMD;

  pInfCMD->iWhoAmI_inf

More details, you can check the local2 SDK sln_local2_iot_local_demo, sln_local_voice.c.

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

kerry

 

0 Kudos
Reply
2,364 Views
diegococonut
Contributor I

@kerryzhou 

I've seen your reply for WIFI. Thank you for your supply.

I've went to see the code you refered two replies ago. May I ask that is there any document we can refer to for connecting wires to our other develop board, such as connecting SLN-LOCAL/2-IOT to ESP32 or other board, and send these data to the board?

To be more specify, I've noticed that the board has a demo about washing machine. Is there any document that we can refer to for how to connect SLN-LOCAL/2-IOT to the washing machine both in hardware and software?

Thank you again for your time and reply.

Best regards
Guan-Ying Chen

0 Kudos
Reply
2,348 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @diegococonut ,

  1.  SLN-LOCAL/2-IOT to ESP32 or other board

 Answer:  Yes, you can. But we don't have the related driver, you may need to write the related interface driver for yourself. Now, Local2 board is using the LBEE5KL1DX wifi module, so the code is also for that module.

  2.  Is there any document that we can refer to for how to connect SLN-LOCAL/2-IOT to the washing machine both in hardware and software?

Answer: In fact, the local_demo already add the wash machine command detect example:

kerryzhou_0-1646107758532.png

If you need the detail function, you can add the related wash machine function code by yourself.

NXP just provides an example of audio detection.

 

Wish it helps you!

Best Regards,

Kerry

 

0 Kudos
Reply
2,333 Views
diegococonut
Contributor I

@kerryzhou 

I see. Thanks for your reply

 

Best regards,

Guan-Ying, Chen

0 Kudos
Reply
2,328 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @diegococonut ,

  You are welcome!

   Do you still have question about this topic?

  If your question is solved, please help me to mark the correct answer.

 Any new issues, welcome to create the new question post.

 

Best Regards,

Kerry

0 Kudos
Reply
2,319 Views
diegococonut
Contributor I

@kerryzhou 

I've marked the correct answer.

Thank you.

 

Best regards,

Guan-Ying, Chen

0 Kudos
Reply