how to use frdm-kw40z blue send data to other frdm-kw40z or imx6 by bluetooth? and kw40z bluetooth is bluetooth 4.1?
how to do kw40z become client or server mode?
Yes, our KW40Z is a BLE 4.1 compliant and it does support server and client roles.
If you are starting playing with FRDM-KW40Z. It is recommended that you follow the getting started guideline provided in NXP web page. It provides steps about how to set up your environment with FRDM-KW40Z.
There are a couple of demos included in the KW40Z Connectivity Software package that allows you to play with the FRDM-KW40Z in different modes.
Could you please provide more information about the target application you want to implement? Then, we could point you to the proper example that best suits your final application.
Hello Jose Miguel Reyes Chaidez :
a . How to use frdm-kw40z BLE 4.1 communication BLE 4.0 、 bluetooth 3.0 +HS ....?
b.I would like to frdm-kw40z communication with VAR-SOM-SOLO/DUA module or notebook computer by bluetooth .
1. I found VAR-SOM-SOLO/DUA module cannot scan frdm-kw40z .
Is it possible firmware vision different ?
2. My notebook computer can scan frdm-kw40z ,but it cannot communication each other.
c. Have example can frdm-kw40z scan others bluetooth machine ?
Bluetooth Low Energy was introduced with Bluetooth 4.0, so any device with BT 4.x should be able to communicate with a BLE device. However, BLE is not backwards compatible with previous versions of Bluetooth (a BT 3.0 device is not going to be able to communicate with a BLE device). If you are able to detect a KW40Z with your computer, it most likely has BT 4.0 or newer. The VAR-SOM-SOLO/DUAL is a custom board not made by NXP, but according to its specifications, it has BT 4.0, so it should be able to communicate with the KW40Z. For support concerning the VAR-SOM-SOLO/DUAL you would have to contact its vendor directly.
If both your devices have BT 4.x, having them communicate with KW40Z has to do with the applications running in both the KW40Z and the device you want to connect to (either the PC or the VAR-SOM-SOLO/DUAL). If you want to use the KW40Z as a server, make sure it is advertising, so that other devices are aware of its presence. And in your client, make sure that it is scanning for clients with the set of services included in your KW40Z. Whether you can detect and connect to the KW40Z depends entirely on your application.
You can try several of the included examples in the KW40Z Connectivity Software. Once you have downloaded and installed the software shown in the previous link, you can program the board with any of the BLE examples available. The HID device demo should work with any PC or Android device with BT 4.x, without the need for additional software.
You can find the HID device demo in the following directory: <KW40Z_connSw_install_dir>\ConnSw\examples\bluetooth\hid_device\frdmkw40z\bare_metal\build\iar
You can find more information on how the demo applications work in the Demo Applications User's Guide. You can find that guide in the following directory: <KW40Z_connSw_install_dir>\ConnSw\doc\BLEDAUG.pdf
You'll need IAR Embedded Workbench.
And the driver for the KW40Z serial port.
Also, how to program the KW40Z with IAR Embedded Workbench
I would like to use kw40z 4 adc pin to detect signal and then transmit data by bluetooth .
Do you have suggest example code ?
Thanks for your help
Sure. I suggest you check out the temperature_sensor demo application. In the temperature_service.c file, there's a function called Tms_RecordTemperatureMeasurement().
That function receives a value read by the ADC, and this value is then written in the Temperature Sensor GATT database. Once the new temperature value is written in the GATT database, it is notified to a client.
However, once the value is written in the GATT database, it can also by indicated to the client (instead of notified), or a read request can be made by the client to get the value.
Retrieving data ...