Search found 10 matches

by Captain.Chode
Sat Sep 05, 2020 9:21 am
Forum: ESP-IDF
Topic: Which peripheral to use for bus arbitration? RMT/MCPWM/LEDC/I2S/SPI?
Replies: 0
Views: 377

Which peripheral to use for bus arbitration? RMT/MCPWM/LEDC/I2S/SPI?

Hi, I am fiddling with a legacy automotive bus called VAN bus with an ESP32. I have successfully created a library using the RMT to read it, however I also would like to implement writing purely from software. To be able to do that bus arbitration logic must be implemented. For this I need to listen...
by Captain.Chode
Tue Apr 28, 2020 2:41 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 399
Views: 224884

Re: What would you like to see in The Next Chip?

CAN is a bit of a... thing. I won't say we have a CAN controller in our chip (because of ...reasons), but I can say that the ESP32-S2 has a peripheral we call the 'TWAI (Two Wire Automotive Interface) controller'; which happens to be fully compatible with the peripheral you used to use for that on ...
by Captain.Chode
Sat Feb 22, 2020 11:24 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 399
Views: 224884

Re: What would you like to see in The Next Chip?

Maybe a second CAN controller, support for MIPI DSI displays, and please keep the RMT peripheral, I just love it, it is very useful.
by Captain.Chode
Mon Feb 17, 2020 7:34 am
Forum: ESP32 Arduino
Topic: RMT peripheral clk_div how does it work?
Replies: 0
Views: 908

RMT peripheral clk_div how does it work?

Hi, I am trying to create an universal remote using the RMT peripheral based on this code: https://github.com/kimeckert/ESP32-RMT-Rx-raw/blob/master/main/rmt_rx_raw.c . It seems like it is working, however there is one thing that I can't quite get which is the clk_div parameter when initializing the...
by Captain.Chode
Wed Jul 17, 2019 5:02 pm
Forum: ESP-IDF
Topic: Using RMT to decode VAN bus protocol
Replies: 6
Views: 3601

Re: Using RMT to decode protocol

I took a quick look on that protocol, and it seems that it wouldn't be so complicated to write an RMT receiver library for it. Basically the rmt_van_rx_parse_byte method and the crc calculation method should be implemented, and the rest would be almost the same.
by Captain.Chode
Fri Jul 12, 2019 1:57 pm
Forum: ESP-IDF
Topic: Synchronize read and write when using the RMT peripheral
Replies: 1
Views: 1130

Re: Synchronize read and write when using the RMT peripheral

Studying the protocol I found out that 128 microseconds of continuous HIGH state indicates that the line is free. Basically this means that after I received a packet, I need to wait for 128 us and if no further reception was made I can transmit. I was wondering if I could have some kind of interrupt...
by Captain.Chode
Thu Jun 27, 2019 2:46 pm
Forum: ESP-IDF
Topic: Synchronize read and write when using the RMT peripheral
Replies: 1
Views: 1130

Synchronize read and write when using the RMT peripheral

So I created a VAN bus protocol reader and writer library. They can be found here: https://github.com/morcibacsi/esp32_rmt_van_rx https://github.com/morcibacsi/esp32_rmt_van_tx Both are utilizing the RMT peripheral and they are working on their own. However to be able to send properly (when there ar...
by Captain.Chode
Thu Mar 21, 2019 3:15 pm
Forum: ESP-IDF
Topic: Using RMT to decode VAN bus protocol
Replies: 6
Views: 3601

Re: Using RMT to decode protocol

So I created the reader, and uploaded it here: https://github.com/morcibacsi/esp32_rmt_van_rx

Is there a way to rename the topic to include the term VAN bus, like "Using RMT to decode VAN bus protocol" I could not find a way.
by Captain.Chode
Tue Mar 19, 2019 5:14 pm
Forum: ESP-IDF
Topic: Using RMT to decode VAN bus protocol
Replies: 6
Views: 3601

Re: Using RMT to decode protocol

Thank you, based on your answer, I successfully modified this nice example and I was able to get the following values: 32,-32,8,-8,8,-16,8,-8,8,-16,8,-8,8,-8,16,-24,16,-8,32,-8,32,-8,32,-8,32,-8,32,-32,8,-8,32,-8,8,-8,16,-40,8,-32,8,-32,8,-32,40,-8,32,-40,8,-32,8,-32,8,-32,8,-32,8,-32,40,-8,32,-32,8...
by Captain.Chode
Mon Mar 11, 2019 5:03 pm
Forum: ESP-IDF
Topic: Using RMT to decode VAN bus protocol
Replies: 6
Views: 3601

Using RMT to decode VAN bus protocol

Hi, I would like to use the RMT peripherial to read VAN bus protocol, but I have a hard time to figure out how to get the correct timings. I wrote an analyzer plugin for Saleae https://github.com/morcibacsi/VanAnalyzer so I know how the protocol looks like. There is also a description on it here: ht...

Go to advanced search