Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
988 Views

Sending data from a DE2i-150 FPGA to the Intel Edison

Jump to solution

Hello everyone,

new guy around here, needing some help. On my current project, I'm trying to send data (int32_t data[4]) from an DE2i-150 FPGA running Windows 7 to the Intel Edison. Serial1 is not an option, as it is being used to control some motors, so I would like to implement the communication using the Serial2 port. I'm writing my code in C, using the mraa library and the Eclipse IDE. The Edison is connected to an Arduino expansion board. I've been searching for options but I'm really stuck.

If anyone have an idea on how to do it, please let me know. I'm open to other alternatives (wifi, for example) for implementing the communication besides using the Serial2 port. Any help on this would be really appreciated.

Best,

Gustavo

0 Kudos

Accepted Solutions
Highlighted
Community Manager
23 Views

Hi Gustavo,

 

 

In order to use the Serial2 port as a UART, I suggest you to look into the following links:

 

/message/272136# 272136 how to activate uart2

 

/message/294492# 294492 Need help with /dev/ttyMFD2

 

 

If you want to use WiFi or Bluetooth, I suggest you to check the following documents:

 

For Bluetooth you can use the http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edisonbluetooth_331704007.pdf Intel® Edison - Bluetooth* Guide. An alternative could be using an SPP interface to send and receive data. Also, take a look at this file: /docs/DOC-100754 How to run SPP-loopback.py on Edison

 

For WiFi; you can use WiFi direct to send and receive data, look at the following documents:

 

http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edison_wifi_331438001.pdf Intel® Edison - Wi-Fi Guide

 

/docs/DOC-109932 Wi-Fi Direct data transfer between two Intel® Edison devices through FTP

 

 

There are other interfaces you can use like SPI and I2C, for these you can use the Arduino IDE and its language or you can use the MRAA library for C coding. You can create a script/code that sends packages of data, you may need to send data in different intervals. Please take a look at the following links regarding this library and some examples for C:

 

http://iotdk.intel.com/docs/master/mraa/ mraa Documentation

 

https://github.com/intel-iot-devkit/mraa/tree/master/api intel-iot-devkit/mraa (headers)

 

https://github.com/intel-iot-devkit/mraa/tree/master/examples intel-iot-devkit/mraa (examples)

 

 

I hope this helps.

 

Regards,

 

 

Charlie

View solution in original post

2 Replies
Highlighted
Community Manager
24 Views

Hi Gustavo,

 

 

In order to use the Serial2 port as a UART, I suggest you to look into the following links:

 

/message/272136# 272136 how to activate uart2

 

/message/294492# 294492 Need help with /dev/ttyMFD2

 

 

If you want to use WiFi or Bluetooth, I suggest you to check the following documents:

 

For Bluetooth you can use the http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edisonbluetooth_331704007.pdf Intel® Edison - Bluetooth* Guide. An alternative could be using an SPP interface to send and receive data. Also, take a look at this file: /docs/DOC-100754 How to run SPP-loopback.py on Edison

 

For WiFi; you can use WiFi direct to send and receive data, look at the following documents:

 

http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edison_wifi_331438001.pdf Intel® Edison - Wi-Fi Guide

 

/docs/DOC-109932 Wi-Fi Direct data transfer between two Intel® Edison devices through FTP

 

 

There are other interfaces you can use like SPI and I2C, for these you can use the Arduino IDE and its language or you can use the MRAA library for C coding. You can create a script/code that sends packages of data, you may need to send data in different intervals. Please take a look at the following links regarding this library and some examples for C:

 

http://iotdk.intel.com/docs/master/mraa/ mraa Documentation

 

https://github.com/intel-iot-devkit/mraa/tree/master/api intel-iot-devkit/mraa (headers)

 

https://github.com/intel-iot-devkit/mraa/tree/master/examples intel-iot-devkit/mraa (examples)

 

 

I hope this helps.

 

Regards,

 

 

Charlie

View solution in original post

Highlighted
Beginner
23 Views

Thanks a lot Charlie!

0 Kudos