Thread Rating:
  • 1 Vote(s) - 5 Average
Control Printer via UART
#13
Hi, 

I plugged  my Elegoo Mars on a linux server in my basement using a USB to Serial adapter. 

The serial baud is 115200, to test you can use screen /dev/ttyUSBx 115200 to display results and a simple echo "xxxx" >> /dev/ttyUSBx to send gcode in another terminal.

The most interesting point is to be able to send file to the USB flash drive, but M28 is not documented.. and it seems to be a different protocol on the Anicubic Photon (https://github.com/Photonsters/Universal...wFrame.cpp).

I'm here :

Code:
>> M28 test.txt
File deleted :test.txt
ok N:536925260

>> whatever i sent
ok 536925260

>> M29
ok 536925260
Done saving file!
// test.txt

N: + something may means NOK so this is not the right syntax. No..
536925260 is probably the space left on my USB flash drive.  No it act as a pointer
But the file is empty.

In Photon Github's code he send for each packet of data : 
Code:
data (0x500 bytes) + offset (4 bytes litle-endian) + checksum (1 byte XOR like) + 0x83
ex : echo -ne "test\x00\x00\x00\x00\x16\x83" >> /dev/ttyUSB0
 
I tried without success ! I think this way to use M28 is for the old board version with ethernet plug, in the newer it might be different.. But without being able to decrypt the firmware, or dumping it from the board itself, we won't guess the protocol used !
Reply


Messages In This Thread
Control Printer via UART - by fips - 09-30-2019, 04:10 PM
RE: Control Printer via UART - by admin - 09-30-2019, 05:14 PM
RE: Control Printer via UART - by fips - 10-01-2019, 12:23 AM
RE: Control Printer via UART - by upright_animal - 12-04-2019, 02:06 PM
RE: Control Printer via UART - by fips - 01-06-2020, 07:24 PM
RE: Control Printer via UART - by revnull - 02-15-2020, 05:08 PM
RE: Control Printer via UART - by fips - 02-18-2020, 06:11 PM
RE: Control Printer via UART - by revnull - 02-23-2020, 07:56 AM
RE: Control Printer via UART - by fips - 03-01-2020, 07:47 AM
RE: Control Printer via UART - by revnull - 03-03-2020, 07:18 PM
RE: Control Printer via UART - by 0xDEADBEEF - 03-09-2020, 02:51 AM
RE: Control Printer via UART - by EMRosa - 03-20-2020, 09:41 PM
RE: Control Printer via UART - by dadwarf - 06-01-2020, 06:34 AM
RE: Control Printer via UART - by dadwarf - 06-03-2020, 09:23 AM
RE: Control Printer via UART - by dadwarf - 06-06-2020, 05:39 AM
RE: Control Printer via UART - by dadwarf - 06-07-2020, 08:41 AM
RE: Control Printer via UART - by fcobcn - 06-07-2020, 04:02 PM
RE: Control Printer via UART - by dadwarf - 06-08-2020, 12:49 AM
RE: Control Printer via UART - by revnull - 10-09-2020, 05:07 PM
RE: Control Printer via UART - by EMRosa - 10-10-2020, 06:42 AM
RE: Control Printer via UART - by l9o - 10-11-2020, 09:50 AM
RE: Control Printer via UART - by fab1o978 - 10-21-2020, 03:47 AM
RE: Control Printer via UART - by bob_the_vampire - 11-08-2020, 07:12 PM
RE: Control Printer via UART - by l9o - 11-08-2020, 07:33 PM
RE: Control Printer via UART - by bob_the_vampire - 11-09-2020, 10:15 AM
RE: Control Printer via UART - by bob_the_vampire - 11-09-2020, 03:53 PM
RE: Control Printer via UART - by l9o - 11-09-2020, 08:10 PM
RE: Control Printer via UART - by cliffyk - 11-09-2020, 04:37 PM
RE: Control Printer via UART - by bob_the_vampire - 11-09-2020, 06:19 PM
RE: Control Printer via UART - by bob_the_vampire - 11-10-2020, 05:29 PM
RE: Control Printer via UART - by xmodpt - 04-27-2023, 04:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)