Skip to content

[CDC ACM] Is it possible to run CBOR mode on CDC ACM ? #64

@jalinei

Description

@jalinei

Hi !

Today I was playing with thingset, trying to have a cdc acm running with serial mode in binary mode.
I could not figure it out.

This is my overlay :

/ {
	chosen {
		zephyr,console = &cdc_acm_uart0;
        thingset,serial = &cdc_acm_uart1;
		thingset,can = &fdcan2;
	};
};

zephyr_udc0: &usb {
	pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
	pinctrl-names = "default";
	status = "okay";
	cdc_acm_uart0: cdc_acm_uart0 {
		compatible = "zephyr,cdc-acm-uart";
	};
    cdc_acm_uart1: cdc_acm_uart1 {
		compatible = "zephyr,cdc-acm-uart";
	};
};

My .conf

CONFIG_SERIAL=y

CONFIG_THINGSET=y
CONFIG_THINGSET_SDK=y
CONFIG_THINGSET_SERIAL=y
CONFIG_THINGSET_TEXT_MODE=n


CONFIG_THINGSET_SUBSET_LIVE_METRICS=n

I'm testing by doing :

echo -ne '\x05\x81\x05' > /dev/ttyACM1 
cat /dev/ttyACM1 | hexdump -C

No luck so far. Am I missing something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions