Welcome! Log In Create A New Profile

Advanced

How to use Serial object at Marlin 2.0.x (SKR v1.3)?

Posted by DaniDiaz 
How to use Serial object at Marlin 2.0.x (SKR v1.3)?
June 12, 2020 01:39PM
Hi,

after several days trying it and reading a lot i need some help...

I'm upgrading a Anycubic Chiron from Trigorilla (8 bits) to SKR v1.3+TMC2208 (32 bits) and I want to use stock display from Anycubic. This display uses a custom protocol via serial communication and everything about it it's at Anycubic repo at GitHub.

I'd like to reuse code from other people (dkoch83) but i'm not able to make it works because everytime Serial object (class HardwareSerial) is used, USB communications is lost. I'm trying to connect stock display with TFT port and in a very simple way, read data from Serial and write it back to same port. To know what's happening i'm using a protocol analyzer so i can see data from display and if there's some answer.

My last attempt was the most simple test but only enable SERIAL_PORT to -1.

- Open Serial at setup() with Serial.begin(115200);
- Read data from Serial and write it back at loop()

if (Serial.available()){
      byte b = Serial.read();
      Serial.print(b);
    }


This test doesn't work and USB communication down.

If I enable SERIAL_PORT -1 and SERIAL_PORT_2 0, host communications works fine in both ports USB and TFT but i don't want TFT port as standard host.

I know some people did something like i'm trying with custom serial communication but there's must be something i can't see... sad smiley

My project at GitHub: [github.com]

Help will be appreciated smiling smiley
Attachments:
open | download - 2020-06-12_19-15.png (12.4 KB)
Re: How to use Serial object at Marlin 2.0.x (SKR v1.3)?
June 12, 2020 09:52PM
take a look at [github.com]
Re: How to use Serial object at Marlin 2.0.x (SKR v1.3)?
June 13, 2020 03:33AM
Thanks, i was using something similar and didn't work. But don't know how this morning is working... i can't explain. Anything at PlatformIO? I think i'm going to rewrite dkoch83 (https://github.com/dkoch83/Marlin-1.1.9_Anycubic_Chiron) code step to step and compile on each step to see what's happen.
Sorry, only registered users may post in this forum.

Click here to login