WHB02 remote control to QtPlasmac
- Franklin
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 19
			
	
						25 Apr 2024 07:48		 -  25 Apr 2024 07:51		#299049
		by Franklin
	
	
		
			
	
	
			 		
													
	
				WHB02 remote control to QtPlasmac was created by Franklin			
			
				Hello friends, has anyone tried to connect the WHB02 remote to linuxcnc? I would like to connect it to a qtplasmac. Before buying, I decided to ask on the forum. Thanks.			
					
		Last edit: 25 Apr 2024 07:51  by Franklin.			
			Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						04 May 2024 09:14				#299699
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic WHB02 remote control to QtPlasmac			
			
				Googling for Linuxcnc and XHC WHB02 seems to show Aliexpress vendors selling it for LinuxCNC use (but possibly only in Hebrew!, which I can't read) but then most vendors on Aliexpress have no idea what they are selling, so I wouldn't necessarily read too much onto that.
I don't see any mention of it on these forums.
It might be safer to go with the known-supported WHB04, if you don't feel like being the guinea pig.
					I don't see any mention of it on these forums.
It might be safer to go with the known-supported WHB04, if you don't feel like being the guinea pig.
Please Log in or Create an account to join the conversation.
- Franklin
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 19
			
	
						04 May 2024 11:32				#299719
		by Franklin
	
	
		
			
	
			
			 		
													
	
				Replied by Franklin on topic WHB02 remote control to QtPlasmac			
			
				Thanks for the answer, the WHB02 costs half as much as the WHB04 and it has enough functionality for plasma cutting.
The WHB02 is similar to the remote controls that come with laser cutting machines.
I thought that maybe the same component xhc-whb04b-6 could be suitable for this remote.
					The WHB02 is similar to the remote controls that come with laser cutting machines.
I thought that maybe the same component xhc-whb04b-6 could be suitable for this remote.
Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						04 May 2024 12:10				#299723
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic WHB02 remote control to QtPlasmac			
			
				It can almost certainly be made to work. You might have to modify one of the existing components, or it might just work as-is.			
					Please Log in or Create an account to join the conversation.
- Franklin
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 19
			
	
						04 May 2024 13:10				#299730
		by Franklin
	
	
		
			
	
			
			 		
													
	
				Replied by Franklin on topic WHB02 remote control to QtPlasmac			
			
				I think it's worth a try, I'll order it next week, and I will write here when I receive it.
I hope you will help me connect it to the qtplasmac. Thanks.
					I hope you will help me connect it to the qtplasmac. Thanks.
Please Log in or Create an account to join the conversation.
- Franklin
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 19
			
	
						18 Jul 2025 16:51				#331986
		by Franklin
	
	
		
			
	
			
			 		
													
	
				Replied by Franklin on topic WHB02 remote control to QtPlasmac			
			
				Hi, the remote was bought a long time ago, but I just took it out of the box and decided to connect it to my machine.
The lsusb command finds Device 031: ID 10ce:eb6f Silicon Labs
and I don't know what to do next?
					The lsusb command finds Device 031: ID 10ce:eb6f Silicon Labs
and I don't know what to do next?
Please Log in or Create an account to join the conversation.
- Franklin
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 19
			
	
						19 Jul 2025 10:55				#332009
		by Franklin
	
	
		
			
	
			
			 		
													
	
				Replied by Franklin on topic WHB02 remote control to QtPlasmac			
			
				So, with the help of the AI assistant I found out that it is a HID device. I entered the command: sudo cat /dev/hidraw4
then when I press the keys, characters appear in the terminal.
					then when I press the keys, characters appear in the terminal.
Please Log in or Create an account to join the conversation.
- Franklin
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 19
			
	
						24 Jul 2025 08:21				#332257
		by Franklin
	
	
		
			
	
			
			 		
													
	
				Replied by Franklin on topic WHB02 remote control to QtPlasmac			
			
				Hello, can you tell me if there is a way to connect remote control signals to the jog buttons of the qtplasmac interface?
halui.joint.N.plus is missing, and joint.0.jog-counts is difficult.
Would like to have external qtplasmac pins for joging
					halui.joint.N.plus is missing, and joint.0.jog-counts is difficult.
Would like to have external qtplasmac pins for joging
Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						25 Jul 2025 19:05				#332324
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic WHB02 remote control to QtPlasmac			
			
				Try this HAL component to map key events to HAL pins:
linuxcnc.org/docs/stable/html/man/man1/hal_input.1.html
Examples:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant
					linuxcnc.org/docs/stable/html/man/man1/hal_input.1.html
Examples:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant
Please Log in or Create an account to join the conversation.
- Franklin
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 19
			
	
						25 Jul 2025 21:29		 -  25 Jul 2025 21:31		#332330
		by Franklin
	
	
		
			
	
	
			 		
													
	
				Replied by Franklin on topic WHB02 remote control to QtPlasmac			
			
				Thank you, but I have already changed the plasmac component and got the result I wanted. I added a few lines:
self.extJogXplusPin = self.h.newpin('ext_jog_x_plus', hal.HAL_BIT, hal.HAL_IN)
self.extJogXminusPin = self.h.newpin('ext_jog_x_minus', hal.HAL_BIT, hal.HAL_IN)
self.extJogYplusPin = self.h.newpin('ext_jog_y_plus', hal.HAL_BIT, hal.HAL_IN)
self.extJogYminusPin = self.h.newpin('ext_jog_y_minus', hal.HAL_BIT, hal.HAL_IN)
self.extJogZplusPin = self.h.newpin('ext_jog_z_plus', hal.HAL_BIT, hal.HAL_IN)
self.extJogZminusPin = self.h.newpin('ext_jog_z_minus', hal.HAL_BIT, hal.HAL_IN)
self.extJogXplusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'x', 1))
self.extJogXminusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'x', -1))
self.extJogYplusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'y', 1))
self.extJogYminusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'y', -1))
self.extJogZplusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'z', 1))
self.extJogZminusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'z', -1))
It works great.
					self.extJogXplusPin = self.h.newpin('ext_jog_x_plus', hal.HAL_BIT, hal.HAL_IN)
self.extJogXminusPin = self.h.newpin('ext_jog_x_minus', hal.HAL_BIT, hal.HAL_IN)
self.extJogYplusPin = self.h.newpin('ext_jog_y_plus', hal.HAL_BIT, hal.HAL_IN)
self.extJogYminusPin = self.h.newpin('ext_jog_y_minus', hal.HAL_BIT, hal.HAL_IN)
self.extJogZplusPin = self.h.newpin('ext_jog_z_plus', hal.HAL_BIT, hal.HAL_IN)
self.extJogZminusPin = self.h.newpin('ext_jog_z_minus', hal.HAL_BIT, hal.HAL_IN)
self.extJogXplusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'x', 1))
self.extJogXminusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'x', -1))
self.extJogYplusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'y', 1))
self.extJogYminusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'y', -1))
self.extJogZplusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'z', 1))
self.extJogZminusPin.value_changed.connect(lambda v: self.gui_button_jog(1 if v else 0, 'z', -1))
It works great.
		Last edit: 25 Jul 2025 21:31  by Franklin.			
			Please Log in or Create an account to join the conversation.
		Moderators: snowgoer540	
		Time to create page: 0.087 seconds	
