Hi,
Here we are using imx8mm mini evk board for bluetooth communication with other bluetooth devices
we are using below procedure for bluetooth communication.
for bluetooth pairing:
1.modprobe moal mod_para=nxp/wifi_mod_para.conf
2.hciattach /dev/ttymxc0 any 115200 flow
3.hciconfig
4.hciconfig hci0 up
5.hciconfig
6.bluetoothctl
7.scan on
8.pair 7C:9E:BD:4C:56:AE
9.trust 7C:9E:BD:4C:56:AE
10.quit
11.rfcomm bind hci0 7C:9E:BD:4C:56:AE
12.echo -n -e 1 > /dev/rfcomm0
after this we are getting below error
root@imx8mm-lpddr4-evk:~# echo -n -e 1 > /dev/rfcomm0
-sh: /dev/rfcomm0: Cannot allocate memoryroot@imx8mm-lpddr4-evk:~# echo -n -e 1 > /dev/rfcomm0
-sh: /dev/rfcomm0: Cannot allocate memoryroot@imx8mm-lpddr4-evk:~# echo -n -e 1 > /dev/rfcomm0
-sh: /dev/rfcomm0: Cannot allocate memoryroot@imx8mm-lpddr4-evk:~#
when go for second time after reboot
we trying below commands because imx8mm mini evk board is already paired after this below command executing for data transmission
modprobe moal mod_para=nxp/wifi_mod_para.conf
hciattach /dev/ttymxc0 any 115200 flow
hciconfig hci0 up
hciconfig hci0 up
hciconfig
rfcomm bind hci0 7C:9E:BD:4C:56:AE
echo -n -e 1 > /dev/rfcomm0
here we able to transmit data through bluetooth.
but again reboot imx8mm mini evk board using below same command for data transmission
modprobe moal mod_para=nxp/wifi_mod_para.conf
hciattach /dev/ttymxc0 any 115200 flow
hciconfig hci0 up
hciconfig hci0 up
hciconfig
rfcomm bind hci0 7C:9E:BD:4C:56:AE
echo -n -e 1 > /dev/rfcomm0
but this time it is not transmitting data giving same below error which we faced first time
root@imx8mm-lpddr4-evk:~# echo -n -e 1 > /dev/rfcomm0
-sh: /dev/rfcomm0: Cannot allocate memory
root@imx8mm-lpddr4-evk:~# echo -n -e 1 > /dev/rfcomm0
-sh: /dev/rfcomm0: Cannot allocate memory
root@imx8mm-lpddr4-evk:~# echo -n -e 1 > /dev/rfcomm0
-sh: /dev/rfcomm0: Cannot allocate memory
we checked for data transmission consistency , some time it is working and some time not working.
we have no idea why it is happening some time transmitting data and some time not.
why it is happening some time transmitting data and some time not.
Please suggest