Communicating with the Xenas Gun through BLUETOOTH.
updated 2024-May-20
The Xenas Gun is known best for its Wireless capability out of the box. As an Arcade builder, you can interact with the Xenas Gun wirelessly and it is surprisingly easy.
Let's begin by testing if your PC is capable of interacting with the Xenas Gun.
1. Get a Windows 10 or newer PC. With Bluetooth 4.2 or newer. (We highly recommend Bluetooth 5.0 or newer)
2. Download the Xenas Gun Windows Bluetooth driver.
3. Extract the XGUNWindowsBluetoothDriver.zip, Copy all of its content and paste them inside any folder or location you want or you can paste them where your Arcade stores all of its scripts.
4. Run the XGUNBT.exe.
5. When the console appears:
- Type: ls
- You should see a list of all Bluetooth devices that are connected to your Windows PC.
- It should look something similar to this:
# Address Name
#00: 12:34:56:78:90:AB MyAirPods
#01: 11:22:33:44:55:66 Wireless RGB Keyboard
#02: AA:BB:CC:DD:EE:FF XGUN-BT:My Black X-Gun
#03: A1:B2:C3:D4:E5:F6 XGUN-BT:My Red X-Gun
The above shows that there are 4 Bluetooth devices currently connected to our Windows PC.
We are only interested in the Xenas Guns. As you can see, there are two Xenas Guns currently connected to our PC. One is called "My Black X-Gun" and the other is called "My Red X-Gun". Yours will have a different name based on whatever name you gave your Xenas Gun.
Also, notice that each Bluetooth device has a MAC Address. For instance, "My Red X-Gun"s MAC address is: A1:B2:C3:D4:E5:F6.
6. Connect to your Xenas Gun.
- Type: open ##:##:##:##:##
- Replace the ##'s with your Xenas Gun's MAC address. For instance, to connect to "My Red X-Gun":
- Type: open A1:B2:C3:D4:E5:F6
- It should look something like this:
Connecting to XGUN-BT:My Red X-Gun
Found 6 services
#00: GenericAttribute
#01: GenericAccess
#02: DeviceInformation
#03: Battery
#04: HumanInterfaceDevice
#05: Custom Service: 09471881-d12d-4075-999f-c43d39ba739e
7. Type: set #05
You should see something like this:
Selected service Custom Service: 09471881-d12d-4075-999f-c43d39ba739e
#00: 0x0700 RW
#01: 0x0701 R NI
#02: 0x0702 RW
#03: 0c0703 R
8. Type: format hex
You should see "current send and current data format" listed as: Hex
9. Now type: write #00 F2
The Xenas Gun recoil should bang.
Now that you've verified your PC can interact with the Xenas Gun, let the fun begin!