Welcome, Guest

Recent Posts

Pages: 1 ... 8 9 [10]
91
A20 / Re: Lime2 RTC battery
« Last post by LubOlimex on February 22, 2019, 10:20:29 AM »
How do you check the time?

How is the Li-Po not saving the time, if the board doesn't shutdown (since the Li-Po is keep it fully powered)?

What image you you using?

If you want to preserve time between reboots you would find this thread helpful: https://www.olimex.com/forum/index.php?topic=3896.0
92
ESP32 / Re: ESP32-POE wired ethernet not working
« Last post by LubOlimex on February 22, 2019, 10:18:20 AM »
Do the Ethernet LEDs at the connector show some activity (light up, blink, etc)?

The example software is working fine. Tested today with the same Arduino ESP32 package (1.0.1).

The board passes software test of the Ethernet after manufacturing.

I'd assume something in your network is the culprit so focus your effort in that regard. Whether it is switch setting or similar it is hard to tell.
93
ESP32 / ESP32-POE wired ethernet not working
« Last post by itisnt on February 22, 2019, 01:50:05 AM »
Hi Guys,

It seems that i'm too stupid to connect my ESP32-POE to a wired ethernet network. I took the example from the Olimex Githup:

Code: [Select]
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
#define ETH_PHY_POWER 12

#include <ETH.h>

static bool eth_connected = false;

void WiFiEvent(WiFiEvent_t event)
{
  switch (event) {
    case SYSTEM_EVENT_ETH_START:
      Serial.println("ETH Started");
      //set eth hostname here
      ETH.setHostname("esp32-ethernet");
      break;
    case SYSTEM_EVENT_ETH_CONNECTED:
      Serial.println("ETH Connected");
      break;
    case SYSTEM_EVENT_ETH_GOT_IP:
      Serial.print("ETH MAC: ");
      Serial.print(ETH.macAddress());
      Serial.print(", IPv4: ");
      Serial.print(ETH.localIP());
      if (ETH.fullDuplex()) {
        Serial.print(", FULL_DUPLEX");
      }
      Serial.print(", ");
      Serial.print(ETH.linkSpeed());
      Serial.println("Mbps");
      eth_connected = true;
      break;
    case SYSTEM_EVENT_ETH_DISCONNECTED:
      Serial.println("ETH Disconnected");
      eth_connected = false;
      break;
    case SYSTEM_EVENT_ETH_STOP:
      Serial.println("ETH Stopped");
      eth_connected = false;
      break;
    default:
      break;
  }
}

void testClient(const char * host, uint16_t port)
{
  Serial.print("\nconnecting to ");
  Serial.println(host);

  WiFiClient client;
  if (!client.connect(host, port)) {
    Serial.println("connection failed");
    return;
  }
  client.printf("GET / HTTP/1.1\r\nHost: %s\r\n\r\n", host);
  while (client.connected() && !client.available());
  while (client.available()) {
    Serial.write(client.read());
  }

  Serial.println("closing connection\n");
  client.stop();
}

void setup()
{
  Serial.begin(115200);
  WiFi.onEvent(WiFiEvent);
  ETH.begin();
}


void loop()
{
  Serial.print("Looping.. ");
  Serial.print("IPv4: ");
  Serial.println(ETH.localIP());
  if (eth_connected) {
    testClient("google.com", 80);
  }
  delay(10000);
}

Power over USB cable, no POE (does also not working with POE and no USB-cable)
Output:
Code: [Select]
rst:0x1 (POWERON_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:9280
load:0x40080400,len:5848
entry 0x40080698
Looping.. IPv4: 0.0.0.0
ETH Started
ETH Connected
Looping.. IPv4: 0.0.0.0
Looping.. IPv4: 0.0.0.0

I see the DHCP request from the ESP32 board on my DCHP server (pfsense firewall), the DCHP server answers with a DCHP-OFFER, so everything should be fine. But nothing happens on the board after the "ETH connected". The Board is not pingable, not local IP nothing.

What do i miss ?

Dev-environment: Arduino 1.8.7 on Win10 with Espressif esp32 1.0.1 installed. Board: OLIMEX ESP32-POE

IP-Switch (100MB) and IP-cables are verified and working with other devices (Labtop).

Any help would be appriciated

Daniel
94
A20 / Re: Lime2 RTC battery
« Last post by splite on February 21, 2019, 04:58:59 PM »
Hey Lub,

Thanks for these good advice. I did not quite well understood if I can use the LiPo battery to save the clock.

In my use case, I have only the LiPo battery and this is not saving the clock. Is there any way to save it this way ?

Thanks
Florian
95
DUINOMITE / Re: A question about Duinomite-eMega
« Last post by Flamore on February 21, 2019, 03:05:33 PM »
We used to make cases for the Mega and eMega but not anymore: https://www.olimex.com/forum/index.php?topic=1527.0

The best bet would be if some previous customer created and shared a 3D design for it or some shop for boxes designed something for it.
When i get mine i'll design an enclosure. Thanks for letting me know.  ;D
- Flamore
96
A13 / Re: Boot Error "SPL: Unsupported Boot Device!"
« Last post by Faruk on February 21, 2019, 08:26:35 AM »
Yes I added SPI flash. I prefered modification instead of buying new one. I think it is going fine :)
97
A13 / Re: Boot Error "SPL: Unsupported Boot Device!"
« Last post by LubOlimex on February 21, 2019, 08:03:21 AM »
That is very interesting. I am looking at the schematic of A13-OLinuXino and A13-OLinuXino-WIFI and I can't find SPI flash memory, maybe I am understanding something wrong. Did you add own SPI flash?

Some of our A20 boards have SPI flash, these have *16M* suffix in their name, for example "A20-OLinuXino-MICRO-e4Gs16M" . The latest A20 images has script that allows booting from the SPI memory.
98
A13 / Re: Boot Error "SPL: Unsupported Boot Device!"
« Last post by Faruk on February 21, 2019, 07:53:39 AM »
I exceed this step. I researched and I saw SPL_SPI_SUNXI is not enabled(Actually so simple config, should not have been overlooked). I enabled SPL_SPI_SUNXI. A13 board boot from spiflash now. Thanks. 
99
A13 / Re: Boot Error "SPL: Unsupported Boot Device!"
« Last post by Faruk on February 21, 2019, 06:55:08 AM »
Yes. Additionally after this step I'll also try to install a small system from the SPI flash. First I try boot from SPI flash.
100
DUINOMITE / Re: A question about Duinomite-eMega
« Last post by LubOlimex on February 20, 2019, 09:22:35 PM »
We used to make cases for the Mega and eMega but not anymore: https://www.olimex.com/forum/index.php?topic=1527.0

The best bet would be if some previous customer created and shared a 3D design for it or some shop for boxes designed something for it.
Pages: 1 ... 8 9 [10]