Reply
Highlighted
Posts: 12
Registered: ‎04-03-2017

i2s with dkwt32i

Hello !!


I have connected an I2S microphone to the dkwt32i board and i would like send by bluetooth the sound
to another dkwt32i. I know that i must used the external codec but i don't know how ?

 

Thanks for your help.

Regards

Posts: 343
Registered: ‎10-07-2015

Re: i2s with dkwt32i

Hello,

 

It is all described in the iWRAP User's Guide (with example):

http://www.silabs.com/documents/login/reference-manuals/iWRAP6-API-RM.pdf

chapter 6.78 (SET CONTROL EXTCODEC) on page 171.

 

 

Regards,

Bartosz

Posts: 12
Registered: ‎04-03-2017

Re: i2s with dkwt32i

Hello!!

 

Thanks for your answer, but i would like to know how configure the wt32i to provide the sck and the ws to the external codec and to receive the data from the microphone.

 

i use this i2s microphone: https://www.digikey.fr/product-detail/fr/knowles/SPH0645LM4H-B/423-1405-1-ND/5332432?WT.srch=1&mkwid...

 

Thanks again for your help

Posts: 343
Registered: ‎10-07-2015

Re: i2s with dkwt32i

Hello,

 

You would also need to configure the iWRAP physical audio interface with SET CONTROL AUDIO command (same document, chapter 6.67). E.g. for A2DP and HFP I2S audio, you would issue:

SET CONTROL AUDIO I2S I2S

 

Regards,

Bartosz

Posts: 12
Registered: ‎04-03-2017

Re: i2s with dkwt32i

Hello!


I connected the I2S microphone (SPH0645LM4H-B) thanks to a flex adapter.


(see attached files)

 

This is the set of the wt32i :


set
SET BT BDADDR 00:07:80:c4:b7:5a
SET BT NAME DKWT32i
SET BT CLASS 240428
SET BT AUTH * 0000
SET BT IDENT BT:47 f000 6.0.0 Bluegiga iWRAP
SET BT LAP 9e8b33
SET BT PAGEMODE 4 2000 1
SET BT PAIR f0:dc:e2:d5:84:33 298b9e788a9954ba8726d2d6b941921e
SET BT PAIR 08:df:1f:32:8d:43 c24b699f7e2bc4327917a8a6e322d510
SET BT PAIR b8:69:c2:89:b6:a9 23e65ac4f44c6a084c645aff3c9e3dbf
SET BT PAIR 00:07:80:c4:b7:a8 934ede87ce8f33998da712cf9fde8a74
SET BT POWER 6 6 6
SET BT ROLE 0 f 2580
SET BT SNIFF 190 20 1 8 3c
SET BT SSP 3 0
SET BT MTU 667 672
SET CONTROL AUDIO I2S I2S EVENT 32
SET CONTROL BAUD 115200,8n1
SET CONTROL BIND 0 400 R VOLUME UP
SET CONTROL BIND 1 200 R VOLUME DOWN
SET CONTROL BIND 2 10 R AVRCP FORWARD
SET CONTROL BIND 3 8 R AVRCP PLAY
SET CONTROL BIND 4 1 R AVRCP PAUSE
SET CONTROL CD 00 0
SET CONTROL CODEC SBC JOINT_STEREO 44100 0
SET CONTROL EXTCODEC PRE 30 18 0200918000008a1037000100008000000ff07c7c787c7c78 30 04 25c01400 30 0a 28c00000000000008000 30 03 330f00 30 05 3f00800f00 30 04 6500a200
SET CONTROL CONFIG 0000 0000 0000 1100
SET CONTROL ECHO 7
SET CONTROL ESCAPE 43 00 1
SET CONTROL GAIN 8 8
SET CONTROL MICBIAS 8 2
SET CONTROL MSC DTE 00 00 00 00 00 00
SET CONTROL PIO 00 00 c6
SET CONTROL PREAMP 1 1
SET CONTROL READY 00
SET CONTROL RINGTONE &-5aaa;f:_6c-5a;f:_6c-5a_-6eee;f:_6c-5a;f:_6c-5a
SET CONTROL VREGEN 2 02
SET PROFILE A2DP SOURCE
SET PROFILE HFP Hands-Free
SET PROFILE SPP Bluetooth Serial Port
SET PROFILE AVRCP CONTROLLER 1f
SET


Then i send a call in A2DP but i don't hear the sound from the microphone.

Do you have any idea what that might be ?