dev/rfcomm3 cannot allocate memory after sending data(imx8mm mini evk baord)

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

dev/rfcomm3 cannot allocate memory after sending data(imx8mm mini evk baord)

546 Views
anilpathrut
Contributor I

Hello Sir,

here i am using imx8mm mini evk board and ESP32 board for bluetooth base data transmission.

i want to do communication between A53 linux and esp32 using bluetooth.

on A53 linux executing below commands 

void Bluetooth_Init(Void)
{
system("modprobe moal mod_para=nxp/wifi_mod_para.conf"); //before enabling bluetooth need to Enable WIFI first

delay(1000);

system("hciattach /dev/ttymxc0 any 115200 flow");//Set up Baud Rate with 115200 for bluetooth

delay(500);

system("hciconfig hci0 up");// basic configuration for the bluetooth

delay(500);

system("hciconfig");// basic configuration for the bluetooth

delay(500);

system("rfcomm bind rfcomm3 7C:9E:BD:35:F2:7A");//MAC Address of ESP32 Device

delay(500);

}

after this executing below command for data trnasmission from A53 to ESP32

while(1)

{

system( "echo -n -e 4 > /dev/rfcomm3");

delay(5000);

system( "echo -n -e 3 > /dev/rfcomm3");

delay(5000);

system( "echo -n -e 2 > /dev/rfcomm3");

delay(5000);

}

after this getting error /dev/rfcomm3 cannot allocate memory

i have no idea, why getting this error

is there any missing in above steps 

Please suggest why getting error /dev/rfcomm3 cannot allocate memory

0 Kudos
1 Reply

535 Views
igorpadykov
NXP Employee
NXP Employee

Hi Anil

 

one can look at similar issues on esp32 forum and post issue there

https://www.esp32.com/viewtopic.php?t=1606

https://www.esp32.com/viewtopic.php?t=10710

 

Best regards
igor

0 Kudos