great!
I will try my best to upload an example next week
Search found 38 matches
- Sat Feb 04, 2017 6:34 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 303164
- Tue Jan 31, 2017 6:36 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 303164
Re: About the CAN controller.
I also use the MCP2551.
An example is planned but currently im drowning in work...
An example is planned but currently im drowning in work...
- Tue Jan 17, 2017 9:01 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 303164
Re: About the CAN controller.
Update. Now the driver calculates the baud rate prescaler based on the APB clock and I added a few more baud rates. (requires math.h) CAN_Init intCAN_init(){ //Time quantum double __tq = 0; //Bit timing float __bt = 1000/CAN_cfg.speed; //enable module SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_...
- Tue Jan 17, 2017 12:08 pm
- Forum: ESP-IDF
- Topic: Where to get peripheral input clocks
- Replies: 3
- Views: 6921
Re: Where to get peripheral input clocks
Thanks!
Yes, it looks like CAN runs with APB speed/gets the clock from it.
Yes, it looks like CAN runs with APB speed/gets the clock from it.
- Tue Jan 17, 2017 11:13 am
- Forum: ESP-IDF
- Topic: Where to get peripheral input clocks
- Replies: 3
- Views: 6921
Where to get peripheral input clocks
Hi,
are there symbols or similiar to get the input clock frequency for peripherals?
Im especially curious about the CAN clock.
Maybe its derived from the peripheral bus frequency. How to get it? Is it fixed?
are there symbols or similiar to get the input clock frequency for peripherals?
Im especially curious about the CAN clock.
Maybe its derived from the peripheral bus frequency. How to get it? Is it fixed?
- Mon Jan 16, 2017 9:47 pm
- Forum: Showcase
- Topic: A very basic WebSocket Server
- Replies: 12
- Views: 37514
Re: A very basic WebSocket Server
https://github.com/ThomasBarth but there is not too much going on. I post most of my work on http://barth-dev.de
- Mon Jan 16, 2017 9:41 pm
- Forum: Showcase
- Topic: A very basic WebSocket Server
- Replies: 12
- Views: 37514
Re: A very basic WebSocket Server
Gern geschehen
(german: you are welcome)
(german: you are welcome)
- Mon Jan 16, 2017 9:31 pm
- Forum: Showcase
- Topic: A very basic WebSocket Server
- Replies: 12
- Views: 37514
Re: A very basic WebSocket Server
Thats my WIFI init code, not sure if there is room for improvement, its copy/paste from somewhere: #include "WIFI.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" #include "freertos/event_groups.h" #include "esp_wifi.h" #include "esp_system.h" #include "esp_event_loop.h" static EventGro...
- Mon Jan 16, 2017 9:17 pm
- Forum: Showcase
- Topic: A very basic WebSocket Server
- Replies: 12
- Views: 37514
Re: A very basic WebSocket Server
Update, now with the possibility to send frames to the client (without that masking nonsense...). Thats so far all I need :ugeek: I maybe will optimize (like out_buf on the stack) a few things but basically Im done for my part... WebSocket_Task.h #ifndef MAIN_WEBSOCKET_TASK_H_ #define MAIN_WEBSOCKET...
- Mon Jan 16, 2017 7:20 pm
- Forum: Showcase
- Topic: A very basic WebSocket Server
- Replies: 12
- Views: 37514
Re: A very basic WebSocket Server
Howdy. Strange... Have you defined WS_PORT? CANopen is irrelevant, that's stuff from the application layer. I continued working on it, so it looks a little different now. For now I will only handle frames with <126byte, as this is sufficient for my application (which will only use Chrome). main: //C...