This week my Zalman optical computer mouse died on me, I’ve had it for almost 4 years, so it did last a good while. The scroll wheel started to slip causing a very annoying issue of documents rolling about by themselves, so i threw it in the bin and went out and purchased a new one.
Shop online at ASDA Groceries Home Shopping. The same great prices as in store, delivered to your door with free click and collect! Re: Blackweb backlit keyboard « Reply #10 on: December 21, 2017, 05:51:40 PM » Thanks Patio, there's a link to the keyboard in the first post, down at the bottom. Blackweb is part of Walmart. Has 4 different DPI settings which can be changed with a click of a button. Each setting is represented by a color (red, blue, green, purple). Red is 800DPI, blue is. Blackweb Gaming Keyboard at Asda Electronics & AppliancesInf. Price compare and price history for the offer Gaming Keyboard at Asda and other markets.
I ended up getting a new mouse from the local ASDA supermarket, sold under the name of ‘BlackWeb AYA gaming mouse’. Mostly because i thought it looked rather cool with it’s LED colour changing feature, as well as the fact that it was only £21.
(If you’re just looking for the software to control the BlackWeb AYA mouse LED from Linux, scroll to the bottom of the article and you’ll find the links to my github repository.)
The device features are advertised as;
- 16.8 million colours
- 12,800 dpi optical sensor
- on the fly dpi switching
- 1,000Hz polling rate
- breathing light effect
- macro manager
- 6 programmable buttons
- software included
What interested me is that the box didn’t mention any specific OS support (not even a mention of Windows), so i took a gamble hoping it might just have full Linux support. I was obviously wrong.
Upon first connecting it to the computer, the mouse immediately lit up red as the default colour, and it worked like any other generic HID device, requiring no special drivers to function. This is what appears in `dmesg‘
The device listed under `lsusb‘
As you can see it is using the generic HID driver. The first thing i wondered, was how to change the LED colour, because the mouse only came with a CD containing software for a windows driver.
I searched through /sys and /dev for a while trying to find something representative of the colour red, hoping i may just be able to “echo” an RGB colour value to the mouse, but had no success.
I ended up finding a solution to manually set the mouse polling speed through the usbhid module,
/etc/modprobe.d/usbhid.conf
Where 0=default, 1=1000Hz, 2=750Hz, 4=500Hz, 8=250Hz
So that was that out of the way.
Next i went ahead and had a look at the Windows software by setting up a Windows 10 virtual machine. After enabling USB pass through for the mouse, i installed the driver and opened the driver software, setting the mouse LED to a custom colour, and this set the LED as expected. The interesting thing was that after closing the virtual machine (and even powering off the host system), the mouse continued to stick to the same colour. So the mouse stored the colour value on the hardware itself as a persistent setting.
I left it at that for a day, being a simple solution, until i came across a forum post mentioning Wireshark has USB sniffing capabilities. After alot of searching i realised it might be possible to reverse engineer the device to control it from Linux natively. Despite having never done anything like this before.
The first thing to do was check which USB Bus the mouse was connected on, `lsusb‘ provides that information, and in my case it was Bus 009. So heading into Wireshark, i set the sniffer interface to usbmon9.
To avoid getting alot of spam information in the packet capture from other devices, i used a second connected mouse to perform any clicking whilst the packet capture was running, and also setting a filter rule within Wireshark like so:
The first step was to open the driver software, set a new colour for the LED, and then stop the packet capture. To my surprise i spotted the RGB colour value of the newly set colour in a datastream heading from the host to the USB mouse.
The colour i had set (as hexadecimal RGB) was FF8041
The relevant part of this datastream is:
The next step is to understand what the other information does. The colour value is surrounded by 00’s, assuming these are separators/padding. We then have 3 bytes left at the beginning, which i could only assume is a command to set the LED to the colour that follows.
I managed to whip up a small python script using PyUSB to interface with the mouse, that allowed this command to be sent to the mouse from within Linux natively.
Here’s an example showing how the request/command can be replayed, to tell the mouse to turn the LED blue:
The values for bmRequestType, bRequest, wValue and wIndex were all present in Wireshark for the captured frame. So simply filling them in the same here appeared to work.
To my amazement the mouse LED instantly turned blue! But there was a small issue. Upon rebooting / powering off the machine, or simply hotplugging the device, meant the mouse would reset to its default colour each time (or the last colour that was set from within the virtual machine).
I realised there must be another command which tells the mouse to store a persistent colour. So going through the packet capture log once again, trying anything that contained a datastream seemed like a logical approach.
Under Windows when setting the LED colour, the mouse flashes 5 times momentarily, and i hadn’t seen this from setting the LED colour through a PyUSB script.
I’d almost given up, after several hours of trying absolutely everything in the packet capture, but eventually found it:
Sending these 8 bytes to the mouse, triggered the LED to flash 5 times!
Hotplugging the mouse, now kept the colour persistent. Simply adjusting the ‘data’ variable to contain these 8 bytes worked flawlessly to store the colour onto the hardware as a persistent setting. I suppose it is like a “save” command.
I ended up putting together a slightly better script to set and store the LED colour of the mouse. You can get the code from my github repository here:
Or by cloning the repository directly from a terminal:
It’s as simple as running the below command, where each argument is the RGB value to set.
UPDATE:
I have since started working on a PyQt based interface to control more features easily, which includes a colorpicker widget, after cloning the git repository you can launch this by running:
Blackweb Mouse Drivers
It still needs some improvements, but should be useful for changing the settings more easily (including profile slots and polling rate!).
If this helped you with the BlackWeb AYA mouse on Linux (or helped with you reversing a different USB mouse) I’d love to hear about it! Cheers.
Blackweb Gaming Mouse Website
Related searches
- » blackweb gaming mouse program app
- » blackweb gaming mouse ap
- » blackweb gaming mouse software
- » blackweb gaming mouse download ap
- » blackweb gaming mouse software download
- » blackweb gaming mouse driver
- » blackweb gaming mouse ap software
- » blackweb ap gaming mouse software
- » blackweb gaming app
- » blackweb gaming app download
blackweb gaming mouse app
at UpdateStar- More
Blackweb Gaming AP (1.0.5.5)
- More
BlueStacks App Player 4.250.0.1070
With the new hybrid convertible form factors, BlueStacks completely eliminates the need to carry two devices. In the end, the consumer will be getting the advantages of both Android and Windows on the same computer.If you've ever wished … more info... - More
Autodesk App Manager 3.1
- More
Nox APP Player 6.6.1.1
New and Best Way Ever to Play Mobile Games on PC more info... - More
NVIDIA PhysX 9.19.0218
NVIDIA PhysX is a powerful physics engine which enables real-time physics in leading edge PC and console games. PhysX software is widely adopted by over 150 games, is used by more than 10,000 registered users and is supported on Sony … more info... - More
Lenovo App Explorer 0.273.4.172
Lenovo App Explorer is a new tool and software distribution platform that allows users to customize their Lenovo PC and make it their own. more info... - More
Amazon 1Button App 3
Amazon 1Button App is a program that enables you to get special offers and features. You can view price comparisons and related items while searching and shopping online, receive notifications on deals and your Wish List items. more info... - More
Search App by Ask 12.47.5.89
- More
App Explorer 0.273.4.186
- More
Host App Service 0.269.9.200
blackweb gaming mouse app
Blackweb Gaming Keyboard Software
- More
BlueStacks App Player 4.250.0.1070
With the new hybrid convertible form factors, BlueStacks completely eliminates the need to carry two devices. In the end, the consumer will be getting the advantages of both Android and Windows on the same computer.If you've ever wished … more info... - More
Mozilla Firefox 84.0.2
Coupon Search Plugin for Firefox, find some of the best discounts and deals around from the best retailers on the net. Coupons, discount codes and more. CouponMeUp have thousands of the best coupons from hundreds of online retailers. more info... - More
NVIDIA PhysX 9.19.0218
NVIDIA PhysX is a powerful physics engine which enables real-time physics in leading edge PC and console games. PhysX software is widely adopted by over 150 games, is used by more than 10,000 registered users and is supported on Sony … more info... - More
WhatsApp 2.2049.10
WhatsApp Messenger is a cross-platform mobile messaging app which allows you to exchange messages without having to pay for SMS. more info... - More
HP Photo Creations 1.0.0.CAB.VERSION
HP Photo Creations Powered by RocketLife - Shareware -HP Photo Creations is a software with which you can create photo books, calendars, collages, greeting cards with your pictures. You can make beautiful keepsakes with just a few mouse clicks. more info... - More
Opera Browser 73.0.3856.329
The latest Opera release brings forth a completely different look for the popular web browser, which definitely gives users a reason to tinker with its new features. more info... - More
Backup and Sync 3.53.3404.7585
Backup and Sync is a simpler, speedier and extra reliable method to shield the information and pictures that imply basically the most to you. more info... - More
Opera GX Stable 72.0.3815.465
Opera GX ist eine besondere Version des Opera Browsers. Sie wurde speziell als Gaming-Ergänzung entwickelt. Der Browser enthält einzigartige Funktionen, die Ihnen dabei helfen, das beste aus Gaming und Browsing herauszuholen. more info... - More
LINE 6.4.0.2396
Line is a freeware app for instant communications on electronic devices such as smartphones, tablet computers and personal computers. more info... - More
IObit Uninstaller 10.2.0.15
IObit Uninstaller is an app that lets you easily uninstall your applications. It can find all the application installed on your computer and then remove the application files and other files that may be left behind when you use only the … more info...
blackweb gaming mouse app
Blackweb Gaming Mouse Software
- More
BlueStacks App Player 4.250.0.1070
With the new hybrid convertible form factors, BlueStacks completely eliminates the need to carry two devices. In the end, the consumer will be getting the advantages of both Android and Windows on the same computer.If you've ever wished … more info... - More
Autodesk App Manager 3.1
- More
Search App by Ask 12.47.5.89
- More
App Explorer 0.273.4.186
- More
Host App Service 0.269.9.200
Most recent searches
Black Web Gaming Mouse Asda Black Friday
- » telecharger gratuitement softcar
- » lernwerkstat download
- » 오픈캔버스 다운
- » sapdtool download
- » descargar setup de armoury crate lite
- » sofrel softools descargar
- » truckpoint download
- » shockwave flash object flash 32.0.0.445
- » hd nvr client
- » download activex excel
- » global proctect lla
- » download star pc optimizer
- » opera handler exe downlod
- » abg xx
- » line sweep tool
- » atkpackage download asus
- » office 2007 enterprise ita
- » download patriot viper
- » p-touch editor dowmload
- » ocz ssd utility 3