Search found 38 matches

by ThomasB
Mon Jan 16, 2017 12:22 am
Forum: Showcase
Topic: A very basic WebSocket Server
Replies: 12
Views: 38375

A very basic WebSocket Server

Hiho, I wrote a very basic WebSocket Server for the ESP32. It is far from perfect, the code is ugly, it does not handle any special cases but I think a good starting point and it works fine with my environment (Chrome). Next I will check if I need to implement "ping" for WebSockets and then I will t...
by ThomasB
Fri Jan 13, 2017 9:59 am
Forum: ESP-IDF
Topic: ESP-IDF include additional paths
Replies: 14
Views: 48375

Re: ESP-IDF include additional paths

Hi, COMPONENT_ADD_INCLUDEDIRS and COMPONENT_SRCDIRS work fine. Thanks! kolban, you are right. Eclipse is simply a convenient editor, which has to know the include paths in order to ease editing. However, from GCC I know that additional eclipse include dirs are passed in the CLI. I thought that the m...
by ThomasB
Thu Jan 12, 2017 9:27 pm
Forum: ESP-IDF
Topic: ESP-IDF include additional paths
Replies: 14
Views: 48375

ESP-IDF include additional paths

Hi, my first ESP32 project develops and of course I want to organize the headers and sources in a structured way. However, if I create a new folder in the workspace and add it as include path(eclipse), the make process cant find it. I use the latest version (cloned today) of ESP-IDF on windows with ...
by ThomasB
Tue Jan 03, 2017 3:16 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 311349

Re: About the CAN controller.

Found a bug in eerimoq's code. The timing values are not correct for 1Mbit. I calculated the settings for 1M/500k/250k with http://www.esacademy.com/en/library/calculators/sja1000-timing-calculator.html (80Mhz Clock) and updated my previous post. I successfully have tested all speeds but as I dont k...
by ThomasB
Mon Jan 02, 2017 7:17 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 311349

Re: About the CAN controller.

Here a CAN driver with basic interfaces. Absolutely no warranty! If you have ideas for improvement, let me know. I only need standard format frame in my application. If you want to use extended frames, use the MODULE_CAN->MBX_CTRL.FCTRL.TX_RX.EXT structure and set MBX_CTRL.FCTRL.FIR.B.FF to 1. API d...
by ThomasB
Sun Dec 25, 2016 11:26 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 311349

Re: About the CAN controller.

Thats possible. I can remember that I had seen a oscillating pattern with my logic analyzer but my assumption was that the CAN is running with the wrong clock.

On the other hand, I have seen the repository just ~2 days ago for the first time :?
by ThomasB
Sun Dec 25, 2016 3:30 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 311349

Re: About the CAN controller.

Please note that this is still work in progress (e.g. Frame info register etc) but it should be a good starting point. Also please note that this code is based on eerimoq's implementation. I found that GPIO32 and GPIO 33 are not connected to IO32/IO33 on the AI ESP32S. Therefore I use GPIO4 and GPIO...
by ThomasB
Sun Dec 25, 2016 1:17 am
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 311349

Re: About the CAN controller.

Hi guys, Im trying to implement a CAN driver based on eerimoq's implementation, using ESP-IDF on a AI ESP-32S. So far, there are not too much things that could go wrong... at least I thought so... I can't get any interrupts from the CAN module. The transceiver works fine with my other micros. The pl...