Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Community Manager
1,688 Views

Serial write/read between 2 Edisons

Hello,

For my project, I am trying to have two separate Edisons read and write data to each other via wireless connection. Is this possible through bluetooth? Wifi?

I would prefer to get this to work through a bluetooth connection.

I'm having difficulty finding any information about this.

Any help would be much appreciated.

Thanks.

8 Replies
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

Hello noahko,

 

 

If you would like to create a "serial" connection through Bluetooth you should use SPP (however there's an issue with SPP in image 3.0 and 3.5 as you can see in https://communities.intel.com/thread/101689 https://communities.intel.com/thread/101689, you will have to use older images). You can learn more about SPP in section 6.7 of Edison's Bluetooth User Guide: http://www.intel.com/support/edison/sb/CS-035381.htm.

 

 

If you would like to create the "serial" connection using Wi-Fi, you will have to use a third party package such as Ncat or socat. You can learn more about them in:

 

 

https://nmap.org/ncat/

 

http://www.dest-unreach.org/socat/

 

 

I hope this helps.

 

-Peter.
0 Kudos
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

Peter,

In your opinion, what would be the best/most simply way to read and write data between multiple edisons?

Serial RF pro is not an option because I have a GPS in the UART.

Thanks,

Noah

0 Kudos
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

What exactly do you mean by "read and write data"? I mean, do you specifically need to use interface that imitates a serial port? If so, I would prefer to use SPP, but it has the imitation I mentioned before.

 

 

If you could read the data from a file, you could Wi-Fi Direct as in this guide:

 

 

https://communities.intel.com/docs/DOC-109932 https://communities.intel.com/docs/DOC-109932

 

 

Let me know if this approach helps you.

 

-Peter.
0 Kudos
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

Hi Peter,

Sorry for being unclear. When I say "read and write data," I really mean sending text between multiple edisons.

Thanks,

Noah

0 Kudos
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

In that case you'd have all the options I mentioned in my first post. You should choose which of those fits your project's best as all of them should get the work done. I'd suggest you to test them all to see which one you like better.

 

 

-Peter.
0 Kudos
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

Hi Peter,

Sorry for all the questions. Any idea which one would be the easiest to implement and then work with through the Intel XDK/node.js?

-Noah

0 Kudos
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

Defining which one is the easiest would be difficult, however, on a quick search online I found this: https://github.com/eelcocramer/node-bluetooth-serial-port. It is node module that lets you communicate over SPP with devices using Node.js. Maybe it'll be of help for you.

 

 

-Peter.
0 Kudos
Highlighted
Community Manager
2 Views

Re: Serial write/read between 2 Edisons

Hi Noah,

 

 

Do you have any update about this? Were you able to test the package I mentioned earlier?

 

 

-Peter.
0 Kudos