# Send G-code to device via serial connection (Snapmaker 2.0 A350)

**URL:** <https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364>\
**Category:** Snapmaker 2.0 (3-in-1)\
**Tags:** Gcode\
**Created:** [May 1, 2025, 1:33pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364 "2025-05-01T13:33:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike\_br](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/mike_br/32/29054_2.png) [@mike\_br](https://forum.snapmaker.com/u/mike_br)\
**Post date:** [May 1, 2025, 1:33pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/1 "2025-05-01T13:33:08Z")

</div>

Why I cannot send the G-Code (loaded in Luban workspace ) generated in other software to the device. I have to copy to the fresh drive or connect via wifi to send it.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/2/5/258a15085679b0b6edb062e2365f26729e7c79eb.png)

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [May 1, 2025, 5:32pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/2 "2025-05-01T17:32:31Z")

</div>

Interesting, never had problems like this.  
Whats your file-ending?  
May share your file here?  
Whats your Luban version and operating system?

---

<div class="post-metadata">

**Author:** ![mike\_br](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/mike_br/32/29054_2.png) [@mike\_br](https://forum.snapmaker.com/u/mike_br)\
**Post date:** [May 1, 2025, 5:41pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/3 "2025-05-01T17:41:22Z")

</div>

The file ending ? (I think CRLF) ,Windows generated..  
Any file generated using ESTL Cam , I have this problem…  
My Luban version is 4.15.0.  
so, attached a file as example.  
[TDO-3.cnc](https://forum.snapmaker.com/uploads/short-url/5csVLsqsKDsHGsQIR2XM5aCK2Yv.cnc) (65.5 KB)

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [May 1, 2025, 5:43pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/4 "2025-05-01T17:43:01Z")

</div>

You have to use a post processor for doing cnc.  
After correct generation the file ends in \*.nc

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [May 1, 2025, 5:47pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/5 "2025-05-01T17:47:47Z")

</div>

I looked at your file but i am not sure about the first lines which are not uncommented.

Try it again by editing the file extension to .nc

---

<div class="post-metadata">

**Author:** ![mike\_br](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/mike_br/32/29054_2.png) [@mike\_br](https://forum.snapmaker.com/u/mike_br)\
**Post date:** [May 1, 2025, 6:02pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/6 "2025-05-01T18:02:29Z")

</div>

Still the same issue,  
I have changed it to LF and changed it to \*.nc.  
I also have removed the first (lines) which are not un-commented (I thought “(” is also considered a comment).  
By the way, when we save the G-code from Luban, the extension suggested is \*.cnc.  
So, that is why I use cnc.

---

<div class="post-metadata">

**Author:** ![mike\_br](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/mike_br/32/29054_2.png) [@mike\_br](https://forum.snapmaker.com/u/mike_br)\
**Post date:** [May 1, 2025, 6:06pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/7 "2025-05-01T18:06:36Z")

</div>

Now, for testing purposes, I have generated a file using Luban (just a simple rectangle) and saved the G-code. Later, I have imported it (into the workspace), and it is also not able to send to device.

 ![image|690x4 Shape 1_1746121515020.cnc|attachment (15.5 KB) 66](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/f/6/f642972127cd27c4ed1e492628441b1e6fa5ff59.png)

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [May 1, 2025, 6:10pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/8 "2025-05-01T18:10:22Z")

</div>

[Form\_1746122879107.cnc](https://forum.snapmaker.com/uploads/short-url/l3akhwHEwhrA4k6J6O6WC4pTpbL.cnc) (13.4 KB)  
I created a similar test and i am able to send it, may try?

---

<div class="post-metadata">

**Author:** ![mike\_br](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/mike_br/32/29054_2.png) [@mike\_br](https://forum.snapmaker.com/u/mike_br)\
**Post date:** [May 1, 2025, 6:14pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/9 "2025-05-01T18:14:07Z")

</div>

> [@mike\_br](#):
>
> saved the G-code. Later, I have imported it (into the workspace), and it i

I have the same issue with your file.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/5/f/5f46654fa9ee93ae7161a681453880b97fa10418.png)

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [May 1, 2025, 6:38pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/10 "2025-05-01T18:38:51Z")

</div>

You are connected over serial, this way no upload is possible.

---

<div class="post-metadata">

**Author:** ![mike\_br](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/mike_br/32/29054_2.png) [@mike\_br](https://forum.snapmaker.com/u/mike_br)\
**Post date:** [May 1, 2025, 6:39pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/11 "2025-05-01T18:39:38Z")

</div>

So, just to clarify, if I connect to the Snapmaker via WI-fi, I am able to send the file to the device.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/c/4/c41343a36d4c0ac25f9f3d5e320406c6acbd8438.png)

I wanted to connect via USB (serial and send the G-code to the device the same way as in WI-FI )…

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [May 1, 2025, 6:40pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/12 "2025-05-01T18:40:50Z")

</div>

Serial connection is like bypassing the touchscreen and directly streaming to the controller of your machine.  
This way no upload is possible.

---

<div class="post-metadata">

**Author:** ![mike\_br](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/mike_br/32/29054_2.png) [@mike\_br](https://forum.snapmaker.com/u/mike_br)\
**Post date:** [May 1, 2025, 6:47pm UTC](https://forum.snapmaker.com/t/send-g-code-to-device-via-serial-connection-snapmaker-2-0-a350/39364/13 "2025-05-01T18:47:43Z")

</div>

Hum, ok, maybe a feature for the future then!  
Thanks for helping (understand the problem)!
