Search found 11 matches

by chenkejin
Fri Dec 15, 2023 2:58 pm
Forum: ESP-IDF
Topic: Why is there a 15us interval between rmt pulses between two rmt_transmit?
Replies: 3
Views: 51258

Re: Why is there a 15us interval between rmt pulses between two rmt_transmit?

ESP_Sprite wrote:
Fri Dec 15, 2023 7:16 am
Because finalizing and starting a new transfer takes time. You're probably better off merging those transfers if you want zero overlap.
I actually tried. I needed the output in an infinite loop, but it failed due to a lack of RMT memory.I think this is transmitor time less than encoder time.
by chenkejin
Fri Dec 15, 2023 2:39 am
Forum: ESP-IDF
Topic: Why is there a 15us interval between rmt pulses between two rmt_transmit?
Replies: 3
Views: 51258

Why is there a 15us interval between rmt pulses between two rmt_transmit?

I've noticed in successive calls to the rmt_transmit function that neighboring encoders create intervals. How do I phase out this time? 图片1.png rmt_transmit(crs_channel, crs_encoder, &crs_gear_wave[out_index], sizeof(uint16_t), &crs_transmit_config); // rmt_transmit(cas_channel, cas_encoder, &cas_ge...
by chenkejin
Tue Dec 12, 2023 1:04 am
Forum: ESP-IDF
Topic: How can I dynamically modify the duration0 parameter of this structure 'bytes_encoder_config' after calling rmt_new_byte
Replies: 0
Views: 14398

How can I dynamically modify the duration0 parameter of this structure 'bytes_encoder_config' after calling rmt_new_byte

In the following code, In the following code, how do I dynamically modify the duration0 parameter already configured in the object nec_encoder->bytes_encoder of the rmt_encoder_handle_t structure? [Codebox=c file=Untitled.c] typedef struct { rmt_encoder_t base; // the base "class", declares the stan...
by chenkejin
Tue Nov 08, 2022 2:32 am
Forum: ESP-IDF
Topic: On the topic "USB vendor class with Microsoft OS descriptor", can anyone provide a similar demo?
Replies: 3
Views: 1501

Re: On the topic "USB vendor class with Microsoft OS descriptor", can anyone provide a similar demo?

Follow your instructions,I tried a few times and it didn't work. I may have some missteps that caused it to not compile properly.
It is expected that ESPTINYUSB can be used in ESP-IDF in the future.
by chenkejin
Mon Nov 07, 2022 2:49 am
Forum: ESP-IDF
Topic: On the topic "USB vendor class with Microsoft OS descriptor", can anyone provide a similar demo?
Replies: 3
Views: 1501

On the topic "USB vendor class with Microsoft OS descriptor", can anyone provide a similar demo?

"USB vendor class with Microsoft OS descriptor": https://www.esp32.com/viewtopic.php?f=2&t=24150&p=105144#p105144 Similar to this theme.I want to implement the WinUSB driver via IDF V4. But the official demo is only CDC and MSC. Tinyusb comes with a webUSB demo, but it doesn't compile successfully i...
by chenkejin
Mon Nov 07, 2022 2:31 am
Forum: General Discussion
Topic: USB vendor class with Microsoft OS descriptor
Replies: 3
Views: 3843

Re: USB vendor class with Microsoft OS descriptor

Hello, is it possible to provide a demo? I would like to implement a similar idea, but at the moment I have no clue.
by chenkejin
Sun Sep 25, 2022 9:30 am
Forum: ESP IoT Solution 中文讨论版
Topic: 如何ESP32S3的USB实现winusb自定义设备方式
Replies: 0
Views: 3373

如何ESP32S3的USB实现winusb自定义设备方式

我正在考虑移植基于stm32的can2usb的固件(https://github.com/candle-usb/candleLight_fw)。该方案使用winusb方式现实,并且完全自定义usb的描述符。 我了解了esp32的tinyusb库,并使用了tusb_sample_descriptor_main的demo,但是这个demo并不完整,它只有简单示例如何配置DeviceDescriptor。 如何基于tinyusb实现自定义的usb通讯,并且符合winusb要求,以达到我的can2usb的目的? 以下为stm32的主要代码: /* CAN interface class callbac...
by chenkejin
Tue Aug 16, 2022 2:11 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32 flash地址如何重映射到ram(以实现ECU参数在线标定)
Replies: 5
Views: 3561

Re: ESP32 flash地址如何重映射到ram(以实现ECU参数在线标定)

抱歉,不知道论坛的规矩。我习惯性按了ctrl+enter导致信息没写完就被发送了。这个功能主要是实现在线优化调参,然后再烧写入ecu。通常在汽车里,通过can总线使用xcp协议在线修改单片机里指定地址的变量的值,实现在线修改变量的值。可修改的标定量被写成const,但是const的变量无法在线修改,所以需要把被写成const的变量映射到ram里进行修改。在线调试得到最优参数后,我将重新烧写。
by chenkejin
Tue Aug 16, 2022 2:03 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32 flash地址如何重映射到ram(以实现ECU参数在线标定)
Replies: 5
Views: 3561

Re: ESP32 flash地址如何重映射到ram(以实现ECU参数在线标定)

你是希望把在线修改完的数据再回写到 flash? 答:是的。