Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
is there a way I can transmit files/ data from the XDK - Arduino ?? I was thinking about connecting them through bluetooth or maybe going through the gateway?? Any suggestion would be really appreciate.
Hello Natalie, there are many possibilities to transmit data from the XDK to an Arduino. It completely depends on your purpose. You can connect them wireless via BLE or Wi-Fi with several protocols. (Direct or indirect though a server) Alternatively you can connect them wired via a serial port. To decide which is the best connection method I recommend to consider the requirements of your use case and compare them to the advantages and disadvantages of each connection method. To make any suggestion I would ask you to get more into detail. Kind regards, Manuel
Hello - i have done a lot of trials to connect the XDK to an arduino and also to photons and redbearduo devices. As already told there are many solutions possible.
Actually i have done many test with the xdk rest client solution. That works also perfect now as the mqtt solution.
So after sometime of research I finally decided to go along with serial port. I want to send temp and humidity sensor data over to my arduino through the serial port wired. Unfortunately, I coudn't find an example or a place to learn it. Any suggestion on where should I start from ??
Hello Natalie, there are wired solutions to send data from the XDK to your Arduino like the USB, SPI or UART bus. The UART and SPI bus are working in combination with the extension bus. Four pins of the extension bus are reserved to be used to transmit or receive data via UART or SPI. The available documentation about how to implement sending functionality is available in the UART header file SER_serialDriver_ih.h and the SPI header file SPI_ih.h. Further, you can use the USB bus to send data to an external device like the Arduino. USB allows the direct sending of data via the serial USB port of the XDK. There are more information about how to implement a working USB sending application available in the USB guide you can find here. Please note that you will have to implement in both cases the sending functionality on your XDK by yourself. Please do not hesitate to ask if you have further questions. Kind regards, Manuel