 
	
You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
Hi Alex,
...
Thanks again lin.xc for pointing out openant. I forked the package and was able to extend it by the functionalities "enable extended messages" and "background scanning". You can find my changes under https://github.com/pirower/openant/ (I even added an additionnal example under scan.py)
Hi,
I've tryed to use your example heart rate monitor and thows a exception:
usb.core.USBError [Errno 32]
Do you know why?
Thanks
I don't know if this is what you want because I barely know what I am doing myself, but I happened across this when searching to see if anyone expanded on python-ant examples: https://github.com/asantacreuTwoNav/python-ant/blob/develop/demos/ant.core/10-scan.py
Thanks a lot for this. The last fork I copied, didn't include this example. I will definitely check this out and keep you updated.

set_id(self, deviceNum, deviceType, transmissionType) 
channel 
channel.set_id(0, 120, 0) 
deviceType=120 
120 
11 
 I assume its possible to have both device types in one "profile"?  Ideally I would like to connect to a HRM and Power Meter, then based upon the output do something else.  Perhaps fan control and light control, directly or via MQTT.
  I assume its possible to have both device types in one "profile"?  Ideally I would like to connect to a HRM and Power Meter, then based upon the output do something else.  Perhaps fan control and light control, directly or via MQTT.
			
			 
				
				
				
				
				
					
				
				
				
				 
			
			 
			
			
			
			
			
		

<class 'usb.core.USBTimeoutError'> 
channel.close()
channel._unassign() 
channel = node.new_channel(Channel.Type.BIDIRECTIONAL_RECEIVE)
...
channel.set_id(0, 120, 0)
... 
 Is it possible to detect/trap this error programmatically so I can close and setup the channel again?
  Is it possible to detect/trap this error programmatically so I can close and setup the channel again?