Jump to content

Search the Community

Showing results for tags 'enc28j60'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 8 results

  1. Another one, good library for enc28j60, created by ntruchsess -> github project site This library is very similar in usage to existing Ethernet library in new TM4C129, most examples from Ethernet library working with this lib after little modification header files inside sketch, simple add #include "SPI.h" and replace #include "Ethernet.h" to #include "UIPEthernet.h" NEW version available on my github: https://github.com/reaper7/arduino_uip download zip, extract to energia libraries folder and rename to UIPEthernet in this version default CS pin is defined as launchpad pin 10 (definition ENC28J60_CONTROL_CS in file: UIPEthernet\utility\Enc28J60Network.h) works with tiva, msp5529 and maybe more...depends of the launchpad flash size -------------------------------------------------------------------------------------------------------------------------------------- OLD versions: SPI CS pin definition in file: UIPEthernet\utility\Enc28J60Network.h (default PE_5 (P6_6 on MSP430F5529)) UIPEthernet_v02.zip nothing new, only support for MSP430F5529 UIPEthernet_v01.zip -------------------------------------------------------------------------------------------------------------------------------------- This is my release, so... some aspects may not work properly but this library looks promising and I'm going to work on it further. not working: Ethernet.enableLinkLed(); Ethernet.enableActivityLed(); EthernetClient -> port
  2. This is a very simple enc28j60 library created by Renato Aloi for atmega modifed by me for MSP430G2553 and MSP430F5529 Please, check my latest master fork from Renato Aloi newMods branch or download directly v0.4.2: EtherEncLib-0.4.2.zip fix CS, fix examples, disable debug from tcpstack EtherEncLib-0.4.zip only harware SPI version (MSP430G2553 and MSP430F5529 tested) EtherEncLib_v03.zip - hard/soft spi version EtherEncLib_v2.zip - hardware spi version EtherEncLib_v01.zip - softspi version v03: selectable hardware/software spi all definitions moved to EtherEncLib.h lines 17,18 -> select between hard/soft spi lines 21,23-25 -> SPI pins definition for MSP430 lines 28,30-32,34 -> SPI pins definition for Stellaris & Tiva(?) v02: hardware spi version enctypes.h file contains CS pins definition (lines 247, 250) v01: init version At this moment, after my quick mod, spi communication work on softspi (shiftOut/shiftIn) and replace strange arduino access via registers like SPDR etc... So...shiftOut/shiftIn are not so fast enctypes.h file contains pins definition (lines 247-259) description from EtherEncLib.cpp file:
  3. from now UIPEthernet library (v02) are available for MSP430F5529LP too please check on stellarisiti energia forum: http://forum.43oh.com/topic/7489-energia-library-stellarpad-uipethernet-enc28j60-library/
  4. Hi good day ... I'm doing a project that consists of a network of RF sensors that communicate to a station connected to the Ethernet network, the target station that read the sensors and update the variables shown in the IP address configured. I have connected the module NRF24L01 SPI port 2. I am using Enrf24 library. I have the enc28j60 SPI3 module connected to the port. I am using the library UIPEthernet, configure the module to use port 3 Enc28J60Network modifying the file that is included in the same library. I have the following problem: -The NRF24L01 module works well alone. (Although this module connected and energized enc28j60). -The Enc28j60 module works well alone. (Although this module connected and energized NRF24L01). In my code, if I comment the line Ethernet.begin (mac, ip); NRF24L01 module operates but does not work enc28j60 module. If I uncommented the same line opposite happens. attached files of my project, I add my code. What could be my problem? Regards #include <SPI.h> //Libreria para habilitar el puerto de perifericos serie #include <UIPEthernet.h> //Micro IP adaptado a LMF120H5QR #include <Enrf24.h> //Manejador para envio de mensajes RF #include <nRF24L01.h> //Controlador del modulo RF #include <string.h> //Libreria para el manejo de cadenas de texto void nodoEthernet(); void nodoRF(); void printIndex(); /*Valores de los sensores*/ float temperatura1 = 0; float temperatura2 = 0; float temperatura3 = 0; int humedad2 = 0; int humedad3 = 0; /*Mapeo de pines SPI del Stellaris LMF120H5QR*/ #define P2_0 PA_5 // CE #define P2_1 PA_6 // CSN #define P2_2 PA_7 // IRQ /*Configuracion de nodo RF*/ Enrf24 radio(P2_0, P2_1, P2_2); const uint8_t rxaddr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0x01 }; //Direccion MAC del nodo RF principal void dump_radio_status_to_serialport(uint8_t); /*Configuracion del puerto Ethernet*/ EthernetServer server(80); //Iniciar servidor en el puerto 80 int statusConfig = 0; //codigo de configuracion void setup() { Serial.begin(9600); //Puerto Serie para depuracion SPI.begin(); //Iniciar el puerto SPI SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(MSBFIRST); /*Configuracion de arranque del nodo RF*/ radio.begin(25000); // Velocidad 250kbps, canal 0, max TX power radio.setRXaddress((void*)rxaddr); radio.enableRX(); // Iniciar Escucha RF canal 0 /*Configuracion de Arranque del puerto Ethernet*/ //Serial.println("Estableciendo conexion Ethernet...."); byte mac[] = {0x00, 0x4f, 0x49, 0x00, 0x00, 0x03}; //Direccion MAC IPAddress ip = IPAddress(192, 168, 1, 100); //Direccion IP //Ethernet.begin(mac, ip); //Iniciar el puerto con los parametros MAC y IP server.begin(); } EthernetClient client; void loop() { nodoEthernet(); nodoRF(); } void nodoEthernet() { client = server.available(); if (client) { String cadenaEntrante = ""; //Cadena para guardar las peticiones del cliente while (client.connected()) //Mientras un cliente este conectado { if (client.available()) //Si hay bytes para leer del cliente { char c = client.read(); //Leer un byte Serial.print(c); //Mostrar el byte en el puerto serie if (c == '\n') //Si es un retorno de carro { //Si la linea actual esta en blanco se tienen dos retornos de carro. //Lo cual seria el final de la peticion HTTP y se puede proceder a responder. if (cadenaEntrante.length() == 0) { break; } else { cadenaEntrante = ""; } } else if (c != '\r') { cadenaEntrante += c; } if (cadenaEntrante.endsWith("GET / ")) { statusConfig = 0; printIndex(); } //Leer peticiones del cliente if (cadenaEntrante.endsWith("GET /temperatura1")) {EnviarDatos(1);} if (cadenaEntrante.endsWith("GET /temperatura2")) {EnviarDatos(2);} if (cadenaEntrante.endsWith("GET /temperatura3")) {EnviarDatos(3);} if (cadenaEntrante.endsWith("GET /humedad2")) {EnviarDatos(4);} if (cadenaEntrante.endsWith("GET /humedad3")) {EnviarDatos(5);} } } //Cerrar la conexion client.stop(); //Serial.println("cliente desconectado"); } } int EnviarDatos(int dato) { switch(dato) { case 1: client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.println("<html>"); client.println(temperatura1); client.println("</html>"); break; case 2: client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.println("<html>"); client.println(temperatura2); client.println("</html>"); break; case 3: client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.println("<html>"); client.println(temperatura3); client.println("</html>"); break; case 4: client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.println("<html>"); client.println(humedad2); client.println("</html>"); break; case 5: client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.println("<html>"); client.println(humedad2); client.println("</html>"); break; default: break; } } void printIndex() { client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.println("<html>"); client.println("<head><title>Fancy Sensors</title>"); client.println("<style>"); client.println("body{ background: whitesmoke; color:black; font-family:Consolas, monospace; font-size: 16px; }"); client.println("article{ background: #f0f8ff; border - style: solid; border-color: #008080;"); client.println("border-width: 8px; border-radius: 0.5em; margin: 1em auto; padding: 1em 0;"); client.println("width: 80 % ; text-align: center; box-shadow: 10px 10px 5px #888888; }"); client.println("input{ width: 100 % ; font-size: 24px; text-align: center; }"); client.println("table{ font-size: 24px; } td{ text-align: center; }label{ display: block; margin: .5em 0 0 0; }</style>"); client.println("</head>"); client.println("<body>"); client.println("<article>"); client.println("<header style=\"font-size: 24px;\"><h1>Fancy Sensors</h1></header>"); client.println("<table border = 0, align = \"center\", cellspacing = \"30\">"); client.println("<tr>"); client.println("<td><label>Temperatura Zona 1</label><input type = \"text\" value =\" "); client.print(temperatura1); client.print("\""); client.print("readonly /></td>"); client.println("<td><label>Humedad Zona 2 % </label><input type = \"text\" value =\" "); client.print(humedad2); client.print("\""); client.print("readonly/></td>"); client.println("</tr><tr>"); client.println("<td><label>Temperatura Zona 2</label><input type = \"text\" value =\" "); client.print(temperatura2); client.print("\""); client.print("readonly/></td>"); client.println("<td><label>Humedad Zona 3 % </label><input type =\"text\" value =\" "); client.print(humedad3); client.print("\""); client.print("readonly/></td>"); client.println("</tr>"); client.println("<tr><td><label>Temperatura Zona 3 </label ><input type =\"text\" value =\" "); client.print(temperatura3); client.print("\""); client.print("readonly/></td>"); client.println("<td>"); client.println("</td>"); client.println("</tr>"); client.println("</table>"); client.println("</article>"); client.println("</body>"); client.println("</html>"); } void nodoRF() { char inbuf[33]; dump_radio_status_to_serialport(radio.radioState()); while (!radio.available(true)) ; if (radio.read(inbuf)) { Serial.println("**************************************************************"); Serial.print("Paquete Recibido: "); Serial.println(inbuf); String cadenaRecibida = inbuf; if(cadenaRecibida.startsWith("TMP1")) { String temp = cadenaRecibida.substring(4); int temperatura = temp.toInt(); float fTemp = ((3.0 * temperatura * 100.0)/1023.0); } else if(cadenaRecibida.startsWith("TMP2")) { String temp2 = cadenaRecibida.substring(4); int temperatura2 = temp2.toInt(); //float fTemp = ((3.0 * temperatura * 100.0)/1023.0); } else if(cadenaRecibida.startsWith("HUM2")) { String hum2 = cadenaRecibida.substring(4); int humedad2 = hum2.toInt(); // float fTemp = ((3.0 * temperatura * 100.0)/1023.0); } else if(cadenaRecibida.startsWith("TMP3")) { String temp2 = cadenaRecibida.substring(4); int temperatura2 = temp2.toInt(); //float fTemp = ((3.0 * temperatura * 100.0)/1023.0); } else if(cadenaRecibida.startsWith("HUM3")) { String hum2 = cadenaRecibida.substring(4); int humedad2 = hum2.toInt(); // float fTemp = ((3.0 * temperatura * 100.0)/1023.0); } } } void dump_radio_status_to_serialport(uint8_t status) { Serial.print("Estado del tranceptor principal: "); switch (status) { case ENRF24_STATE_NOTPRESENT: Serial.println("No hay un tranceptor instalado"); break; case ENRF24_STATE_DEEPSLEEP: Serial.println("Modo de ultra bajo consumo <1uA "); break; case ENRF24_STATE_IDLE: Serial.println("Modulo de inactividad ON||Fucionando con oscilador"); break; case ENRF24_STATE_PTX: Serial.println("Transmitiendo de forma activa"); break; case ENRF24_STATE_PRX: Serial.println("Modo de Recepcion de Datos"); break; default: Serial.println("Codigo de estado desconocido"); } }
  5. This is a JeeLab ENC28J60 library mod for Energia StellarPad, working OK with other devices on the same SPI bus. Library: Ethercard_v09a.zip Ethercard_v09.zip Ethercard_v08.zip EtherCard_v07a.zip EtherCard_v07.zip EtherCard_v06.zip EtherCard_v05.zip New version 0.9a [28.06.2014]: 1. fix wrong type of variable in emit_p 2. fixes by Francis Van Den Bussche, email 9/5/2014 3. fixed obvious bug, redmine issue #539 4. update README info and links 5. Add documentation on class BufferFiller New version 0.9 [20.06.2014]: 1. added all fixes since my last release -> exactly between 01-03.05.2014 (https://github.com/jcw/ethercard/commits/master) 2. library (v09) from now should work on MSP430F5529 too, please test New version 0.8 [26.04.2014]: 1. Fixes issue #492 (DNS lookup fails) New version 0.7a [07.04.2014]: 1. changes inside dhcp.cpp - Custom DHCP option processing #119 New version 0.7 [05.04.2014]: 1. contains all github fixes since the last release. 2. working with oryginal spi library from Energia 0101E0012 New version 0.6 [27.04.2013]: 1. For clarity *.ino files I decided to move SPI initialize to library. from now begin look like this: ether.begin(sizeof Ethernet::buffer, mymac, CS_PIN, SPI_MODULE). eg.: - ether.begin(sizeof Ethernet::buffer, mymac) -> DEFAULT initialize eth on SPI 2 & Chip Select on PB_5 - ether.begin(sizeof Ethernet::buffer, mymac, PD_1, 3) -> initialize eth on SPI 3 & Chip Select on PD_1 SPI speed is defined in enc28j60.cpp file (line 256), maybe more sense is move SPI speed to begin too? New version 0.5 [20.04.2013]: 1. "DHCP fix" - Andy Lindsay github commit New version 0.4 [12.04.2013]: 1. "Implemented a simple UDP listening server, that listens for packets on ports and triggers callbacks" - brianlah87 github commit New version 0.3 [04.04.2013]: 1. "adding header arg to browseUrl" - jscrane github commit New version 0.2 [24.02.2013]: 1. "Accept of tcp packets refactored to a separate method" - mrbig github commit 2. New example for the above: "quasiMultiport" -> You can open more browser windows on different ports with different contents e.g. http://stella_ip, http://stella_ip:1224, http://stella_ip:22222, etc... 3. New function setupWakeUp() in enc28j60.cpp/h -> You can setup enc28j60 to filter/receive only WOL package for e.g. WakeUp host (StellarPad) from hibernation,(enc28j60 pdf - chapter 12.2.1 pt1-3), return to normal mode through existing function enableBroadcast() P.S. pt2 & 3 is my low quality ideas, so - don't report problem with them to jeelib still is some bugs e.g. DHCP with mac addr starting with first number > 0 not working for me :-/ Connections (If You are using default Energia SPI bus 2): My sandwich StellarPad + universal ENC28J60 module from e.g. eBay + LCD5110 with tongue (nrf24l01+): Sandwich get temperature from remote sensor (based on my second StellarPad and this project moved to Energia) via MiRF library, display temp on LCD5110 modified library (number & graph idea by timotet) and create a simply web page to display temp This is a very simply and fast making test platform
  6. from now EtherCard library (v09) are available for MSP430F5529LP too please check on stellarisiti energia forum: http://forum.43oh.com/topic/6977-energia-library-stellarpad-ethercard-enc28j60-library/
  7. Very simple, http server only library, please check on 43oh MSP430 forum: http://forum.43oh.com/topic/5070-energia-library-etherenclib-for-enc28j60/#entry44803
  8. hi all, I'm trying to use an Ethernet module that i bought called "Ethernet LAN Module for Arduino / microcontrollers with SPI (ENC26J80)". I found a few example for it for different MSP430's but i cant get it to work. Does anyone know how to make it work? witch pins to connect and example code would be great. thanks, Ofer.
  • Create New...