Using MQX to send GPIO data over ethernet

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using MQX to send GPIO data over ethernet

4,678 Views
syedrasheed
Contributor I

Hi,

What is the best way to send GPIO and ADC data over ethernet using MQX. I've already established an ethernet connection through RTCS and I've noticed there were demos for sending GPIO data over telnet but none for sending data over ethernet. Are there any available demos? If not, what is the best way to approach this after connection is established and the GPIO/ADC data has already been stored as strings (or another data type)?

I am using MQX 3.8.1, codewarrior 10.2, and the Kinetis TWR-K60N512 development kit. Any advice on how to set it up, packet formatting for data (ex. strings), or which direction to head in would be greatly appreciated

Thanks,

Syed

Labels (1)
0 Kudos
Reply
2 Replies

849 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Syed,

Well, Ethernet is a very generic term. I would think in two options. A simple and complex. The complex is the easier to explain because we already have an appnote to send data and read data using twitter (http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4417.pdf). The simple option is using sockets. You have two options UDP and TCP. UDP is more for broadcasting apps and TCP is for applications where you want to make sure the data reaches the other side.

MQX is POSIX so if you are familiar on how to use sockets in linux then you will see that in MQX is the same way. You have to understand the server-client concept to create these application. It would be easier to understand if you read the chapter 2.1 from the appnote AN3907 (http://cache.freescale.com/files/32bit/doc/app_note/AN3907.pdf). I hope this can helps!

Best Regards,

Garabo

849 Views
khoanguyen
Contributor I

I would also like to know how to do this if anyone can help.

0 Kudos
Reply