How to interface MOD-ENC624J600 with PC?

Started by fxrdude, January 09, 2013, 01:11:55 PM

Previous topic - Next topic

fxrdude

Hello everyone,
 
I have just bougth this module from Olimex : https://www.olimex.com/Pr...hernet/MOD-ENC624J600/
 
I use SPI interface to communicate with the ENC624J600 controller and it's OK because I can wead/write MAC address and other resgisters. I would like to know if you could give me some exeprience about interfacing directly to PC such as which type of cable to be used (cross over or straight through), which tool can be used to analyse raw TX/X data ...
 
Thanks so much for your helps!
 
Pascal.

LubOlimex

Hey Pascal,

We usually use MOD-USB-RS232 https://www.olimex.com/Products/Modules/Interface/MOD-USB-RS232/ to connect to computers via UEXT. Just make sure the SMD jumpers of the above linked board are set to host mode (else the RX and TX lines would conflict).

About the cable: I search the ENC28J60's datasheet but can't find cross over function. So generally if you connect to computer you need cross over cable and if you connect to switch/router (that doesn't have cross over function also) you have to use straight cable.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

fxrdude

Hello lubOlimex,
It seems that you didnt understand what I want to do : I have a micro controller kit and I want to test Ethernet interface provided by the MOD-ENC624J600 by initialzing this module and sending data to PC via this module. I've sucessfully communicated with the MOD-ENC624J600 using SPI commands to initialize, to read and write its registers. When I tried to send a raw packet, the module said that the packet has been sent but I didnt see anything from PC side (I used Wireshark as sniffer tool).

Following is the raw data frame that I tried to send to PC via the MOD-ENC624J600 module :

u8 tx_packet[104]   = {
0xXX,0xXX,0xXX,0xXX,0xXX,0xXX, // Destination MAC which is MAC of my PC 
0x00,0x04,0xA3,0x11,0x22,0x33, // Source MAC which is MAC set to the ENC624J600 
0x08, 0x00, //  IP protocol
0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,    0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62, 0x62,    0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63,    0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64,    0x65, 0x65, 0x65, 0x65, 0x65, 0x65, 0x65, 0x65, 0x65, 0x65, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,    0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67,    0x68, 0x68, 0x68, 0x68, 0x68, 0x68, 0x68, 0x68, 0x68, 0x68,    0x69, 0x69, 0x69, 0x69, 0x69, 0x69, 0x69, 0x69, 0x69, 0x69    };

Regards,