Issue with an XTool D1 Pro

Greetings,

I'm having a lot of problems with my XTool D1 Pro laser engraver.
I've tried to use virtualhere with a raspberry but with no big success.
My current configuration  is a Dell laptop on the server side, connected to the network by cable.

( Good and short USB cable by the way ) 

uname -a
Linux gandalf 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct  6 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

 

Client side is windows 11, and I use Lightburn to control the laser.

The latency is pretty low, between 3 to 4 ms.

 

But I always end up having a disconnect with subsequent messages

Client logs : 

2023-11-21 15:27:57 INFO  :VirtualHere Client 5.5.5 starting (Compiled: Sep 25 2023 18:37:20)
2023-11-21 15:27:57 INFO  :Client OS is Windows 11 (build 22621), 64-bit edition
2023-11-21 15:27:57 INFO  :Using config at C:\Users\ofresse\AppData\Roaming\vhui.ini
2023-11-21 15:27:57 INFO  :IPC available at \\.\pipe\vhclient
2023-11-21 15:27:57 INFO  :Auto-find (Bonjour) on
2023-11-21 15:27:57 INFO  :Auto-find (Bonjour SSL) on
2023-11-21 15:28:06 INFO  :No drivers found, they will be installed
2023-11-21 15:28:11 INFO  :Connected to the VirtualHere Client Driver (Version 2)
2023-11-21 17:39:34 INFO  :Connection 1 remotely disconnected gracefully (rx)
2023-11-21 17:41:11 INFO  :Server ping timeout, shutting down connection 1...
2023-11-21 18:05:04 INFO  :Connection 2 receiving msg size didnt complete due to error 10054, 
2023-11-21 18:05:54 INFO  :Connection 3 receiving msg size didnt complete due to error 10054, 
2023-11-21 18:06:18 INFO  :Server ping timeout, shutting down connection 2...
2023-11-21 18:07:11 INFO  :Server ping timeout, shutting down connection 3...

 

Server logs

[83342.530115] usb 3-3: ch341-uart converter now attached to ttyUSB0

...


[83453.944941] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[83453.944999] ch341 3-3:1.0: device disconnected
[83454.071925] usb 3-3: reset full-speed USB device number 14 using xhci_hcd
[83454.540019] usb 3-3: reset full-speed USB device number 14 using xhci_hcd

I did find messages talking about problems with braille readers, but I don't have these modules installed.

If anyone is using an XTool here... :-)

 

 

#2

Stop the server process and edit the config.ini file on the server and add the line

ClaimPorts=1

Then save the config.ini file and start the server again. See if that helps. 

#3

Hello Michael,

It seems better, but I still have some connections issues

 

[nov.24 12:56] usb 3-1: USB disconnect, device number 26
[  +1,486364] usb 3-1: new full-speed USB device number 27 using xhci_hcd
[  +0,148902] usb 3-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[  +0,000005] usb 3-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  +0,000001] usb 3-1: Product: USB Serial
[  +0,001642] ch341 3-1:1.0: ch341-uart converter detected
[  +0,000385] usb 3-1: ch341-uart converter now attached to ttyUSB0
[ +21,565660] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[  +0,000023] ch341 3-1:1.0: device disconnected
[  +0,127464] usb 3-1: reset full-speed USB device number 27 using xhci_hcd
[  +0,479954] usb 3-1: reset full-speed USB device number 27 using xhci_hcd

 

lspci -nn | grep USB
00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 04)
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26] (rev 04)

 

 

#4

I think its just the crappy ch341, they are terribly cheap and buggy adapters basically. I suspect the firmware in the ch341 is just crashing if the packets are delayed even slightly.  Ideally you need to use an FTDI or silabs serial adapter. Not sure if that CH341 is built-into your pro laser engraver, if not then switch to an FTDI adapter instead.

 

#5

I am also having a disconnect issue. I also have the xTool D1 pro but I am using the glar300m16 on the server side. The error on the client log on mine is 10053 instead of error 10054 as above, not sure what these errors mean or what the difference is. 

Also not sure how to access the glar300m16ext ini file.

Thanks.

Client log:

2024-03-14 20:54:41 INFO  :VirtualHere Client 5.5.7 starting (Compiled: Dec 11 2023 11:31:52)
2024-03-14 20:54:41 INFO  :Client OS is Windows 10 (build 19045), 64-bit edition
2024-03-14 20:54:41 INFO  :Using config at C:\Users\User\AppData\Roaming\vhui.ini
2024-03-14 20:54:41 INFO  :IPC available at \\.\pipe\vhclient
2024-03-14 20:54:41 INFO  :Auto-find (Bonjour) on
2024-03-14 20:54:41 INFO  :Auto-find (Bonjour SSL) on
2024-03-14 20:56:15 INFO  :Connection 1 receiving msg size didnt complete due to error 10053, 
2024-03-14 20:56:15 INFO  :Server ping timeout, shutting down connection 1...
2024-03-14 20:56:15 INFO  :assert:../src/common/event.cpp,1930,SearchDynamicEventTable,nNew != dynamicEvents.size(),
2024-03-14 21:03:02 INFO  :Connection 2 receiving msg size didnt complete due to error 10053, 
2024-03-14 21:03:11 INFO  :Server ping timeout, shutting down connection 2...
2024-03-14 21:04:06 INFO  :Drivers are up-to-date
2024-03-14 21:04:06 INFO  :Connected to the VirtualHere Client Driver (Version 2)
2024-03-14 21:07:45 INFO  :Server ping timeout, shutting down connection 3...
2024-03-14 21:07:45 INFO  :Connection 3 socket closed (rx)
2024-03-14 21:08:53 INFO  :Connection 4 receiving msg size didnt complete due to error 10053, 
2024-03-14 21:08:59 INFO  :Server ping timeout, shutting down connection 4...
2024-03-14 21:10:22 INFO  :Connection 5 receiving msg size didnt complete due to error 10053, 
2024-03-14 21:10:33 INFO  :Server ping timeout, shutting down connection 5...
2024-03-14 21:11:17 INFO  :Server ping timeout, shutting down connection 6...
2024-03-14 21:11:17 INFO  :Connection 6 socket closed (rx)
2024-03-14 21:28:00 INFO  :Connection 7 receiving msg size didnt complete due to error 10053, 
2024-03-14 21:28:10 INFO  :Server ping timeout, shutting down connection 7...
2024-03-14 21:28:19 INFO  :Connection 8 receiving msg size didnt complete due to error 10053, 
2024-03-14 21:28:30 INFO  :Server ping timeout, shutting down connection 8...
2024-03-14 21:31:29 INFO  :Server ping timeout, shutting down connection 9...
2024-03-14 21:31:29 INFO  :Connection 9 socket closed (rx)
2024-03-14 21:36:37 INFO  :Connection 10 receiving msg size didnt complete due to error 10053, 
2024-03-14 21:36:49 INFO  :Server ping timeout, shutting down connection 10...
2024-03-14 21:39:14 INFO  :Server ping timeout, shutting down connection 11...
2024-03-14 21:39:14 INFO  :Connection 11 socket closed (rx)


glar300m16ext - server

#6

The connection between the server and client is dropping. Not sure if you are using wifi or ethernet but probably best to use ethernet.

#7

Yes I am using wifi. I have to use wifi and the reason I set up this way. I took the client and set it up within five feet of the server device and have the same issue. I also tried bigger antennas (dual band off a net gear router) still no help. Any other ideas?

Thanks again!

#8

No i think it just the wifi connection is dropping momentarily.