Setting up DHCP Server with MQX 4.2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Setting up DHCP Server with MQX 4.2

1,745件の閲覧回数
PHXFAE
Contributor II

My customer downloaded MQX 4.2 and is going to take a look at the USB-virtual-nic. He was wondering if there was a way to enable the DHCP server that is provided by 4.2?  That way he doesn't
have to go into the network adapter in the PC to give it an IP address. He also doesn't see exactly where to enable the macro high speed support.  He see the predefines all over the place but not where to actually uncomment or #define it himself.

0 件の賞賛
返信
3 返答(返信)

1,478件の閲覧回数
soledad
NXP Employee
NXP Employee

Hello Alex,

Is your customer using a Freescale Board?

Which device is your customer using?

Regards

Soledad

0 件の賞賛
返信

1,478件の閲覧回数
PHXFAE
Contributor II

He is looking at using the MK20FX512VMD12 or the MK20FN1M0VMD12 since they support HS-USB and 2x CAN.  He doesn't have a dev board for this yet.  He may use a tower board or his own board.  He has other designs with Kinetis.  Since this is more of a software question should this matter?

0 件の賞賛
返信

1,478件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Alex,

The MQX_4.2 RTCS shell example allow you to issue shell commands to initialize the Ethernet interface and then to issue a DHCP command.

Ex:

shell> ipconfig

Ethernet device 0 not yet initialized.

shell>

shell> ipconfig 0 init

Ethernet device 0 initialization successful.

shell>

shell> ipconfig

Eth#     : 0

Link     : on

MTU      : 1500

MAC      : 00:00:5e:00:00:00

IP4      : 0.0.0.0 Type: UNBOUND

IP4 Mask : 0.0.0.0

IP4 Gate : 0.0.0.0

IP4 DNS  : 0.0.0.0

IP6      : DISABLED

Link status task stopped

shell>

shell> ipconfig 0 dhcp

Bind via dhcp successful.

shell>

shell> ipconfig

Eth#     : 0

Link     : on

MTU      : 1500

MAC      : 00:00:5e:00:00:00

IP4      : 10.0.1.198 Type: DHCPNOAUTO

IP4 Mask : 255.255.255.0

IP4 Gate : 10.0.1.1

IP4 DNS  : 10.0.1.1

IP6      : DISABLED

Link status task stopped

shell>

EDITed

I also updated the web_hvac for the TWR-K70F120M demo rtcs.c source and hvac.h header files in MQX_4.2 to enable checking for Ethernet cable attached, and then doing DHCP.

Those file are attached.

Shell (build: Jun  3 2015)

Copyright (c) 2013 Freescale Semiconductor;

shell>

shell>

Waiting for Ethernet cable plug in ... Cable connected

DHCP bind ... Successful!

shell>

Regards,

David

0 件の賞賛
返信