8000 Debugging via Serial1 is not confirming what being received · Issue #3 · TD-er/SC16IS752 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Debugging via Serial1 is not confirming what being received #3
Open
@SenerSoft

Description

@SenerSoft

Hi,

I've just installed the library onto my test project in PlatformIO and Visual Studio Code.
I can read and write data(!) through SC16IS752 via Serial1 on my Sparkfun ESP32-S2 Thing Plus.

But, I can't recognize the data I've sent through a USB-UART converter from the PC.

For example, I just send H\n or 48 0A in HEX.

Code snippet I use to read the raw data;

  if (i2cuart.available(SC16IS752_CHANNEL_A) > 0){ 
    char c = i2cuart.read(SC16IS752_CHANNEL_A); // read the incoming byte:
    uint8_t data = (uint8_t)c;
    Serial1.println(c);
  }

The output sample in different type casting;

**Decimal**
0{13}{10}0{13}{10}128{13}{10}0{13}{10}128{13}{10}0{13}{10}

**Hexadecimal**
0{0D}{0A}0{0D}{0A}128{0D}{0A}0{0D}{0A}128{0D}{0A}0{0D}{0A}

**ASCII**
0#CR#LF0#CR#LF128#CR#LF0#CR#LF128#CR#LF0#CR#LF

**Text**
0
0
128
0
128

What do I wrong here? Any input greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0