Hi,
my name ist Thomas.
I'm using the MQX 3.7 library + a tower system with a Kinetis TWR K60 N512 board + a TWR SER board.
I'm trying to "connect" the MQX USB stack (the K60 is running in host mode, using the cdc device class) to the TCP/IP stack of the MQX RTCS, so that an UMTS modul (this is the USB device, which supports the cdc driver), which is receiving a HTTP request over the air can talk to the RTCS webserver via USB.
Does anybody have an idea, which function I have to use, to make this connection work?
Thanks in advance for each idea, even just a hint, where to look in the doc's!!
Thomas
已解决! 转到解答。
Hi Thomas,
Check PPP driver that is in the MQX RTCS.
Example: c:\Freescale\Freescale MQX 3.8\rtcs\examples\shell\
and MQX RTCS User's Guide Example: Setting Up RTCS (Set up RTCS with one PPP device and one ethernet device).
Next example to look at is
c:\Freescale\Freescale MQX 3.8\usb\host\examples\cdc\cdc_serial\
cdc_serial opens a file. this file you would pass to PPP_initialize,
assuming "tty0:" is installed and opened USB CDC Host file:
/*Set up PPP Driver: */
pfile = fopen("tty0:", NULL);
pio = _iopcb_ppphdlc_init(pfile);
error = PPP_initialize(pio, &phandle);
I'd recommend to use the latest MQX release. MQX 3.8.1 is the actual release at the moment, 4.0 will be released by the end of 2012.
Hi Thomas,
Check PPP driver that is in the MQX RTCS.
Example: c:\Freescale\Freescale MQX 3.8\rtcs\examples\shell\
and MQX RTCS User's Guide Example: Setting Up RTCS (Set up RTCS with one PPP device and one ethernet device).
Next example to look at is
c:\Freescale\Freescale MQX 3.8\usb\host\examples\cdc\cdc_serial\
cdc_serial opens a file. this file you would pass to PPP_initialize,
assuming "tty0:" is installed and opened USB CDC Host file:
/*Set up PPP Driver: */
pfile = fopen("tty0:", NULL);
pio = _iopcb_ppphdlc_init(pfile);
error = PPP_initialize(pio, &phandle);
I'd recommend to use the latest MQX release. MQX 3.8.1 is the actual release at the moment, 4.0 will be released by the end of 2012.
Hi Martin,
I’m working on the above example, where they say on page #8:
“Note, that one needs two serial line connections between the PC and the evaluation board -
one for the PPP communication (ittyb) and the other for the serial shell (ttya/default). In case
the PC has just one RS232 you can use USB-to-Serial adapter. If the application is started on
the embedded side run the PPP connection on the PC side.”
Do you know a clever idea, how to create the second RS-232-port on my TOWER system? Just adding a second TOWER-SER-board?
Or do I need to solder?
Thanks in advance
Thomas
Hi Martin,
thanks for your quick response.
My very best.
Thomas Hülsmann
==============================
ThomNet Media Engineering
Dipl.-Ing. Thomas Hülsmann
Walter-Benjamin-Platz 2
10629 Berlin
Tel.-Nr.: +49 (30) 20 61 41 41
Fax-Nr.: +49 (30) 20 61 41 45
Mobil: +49 (172) 540 56 96
Mail: <mailto:th@thomnet.de> th@thomnet.de
Internet: <http://www.thomnet.de> www.thomnet.de
Wir wünschen Ihnen eine schöne Zeit!
==============================
Von: Martin Latal mailto:admin@community.freescale.com
Gesendet: Montag, 26. November 2012 14:14
An: Thomas Hülsmann
Betreff: Re: MQX Software Solutions - Connecting USB stack to TCP/IP stack, where and how
<https://community.freescale.com/index.jspa> Freescale Community
Connecting USB stack to TCP/IP stack, where and how
created by Martin Latal <https://community.freescale.com/people/Martin_> in MQX Software Solutions - View the full discussion <https://community.freescale.com/message/307897#307897>