Saturday, December 11, 2021

Logic Analyzer VID 0925 PID 3881 Windows 10 driver installation

  1. Open this page: https://support.saleae.com/logic-software/legacy-software/older-software-releases
  2. Download "Windows 64 bit (no installer)" package.
  3. Extract "Drivers" directory to any location on your hard drive.
  4. Connect Logic Analyzer device with USB cable.
  5. Press "Win+X" and select "Device Manager" item.
  6. Under "Other devices" folder find "Unknown device".
  7. Right-click, select "Properties" and verify that "Device instance path" is "USB\VID_0925&PID_3881\..."
  8. Close "Properties" dialog.
  9. Right-click and select "Update driver".
  10. Select "Browse my computer for drivers".
  11. Click "Browse" button and choose the "Drivers" directory you created at step 3.
  12. Click "OK" button.
  13. Click "Install" buton in confirmation dialog taht will pop up.
  14. Close confirmation window.

Monday, November 15, 2021

UltraEdit regular expressions

Swap 2 words separated by whitespaces


Find what: (\w+)(\s+)(\w+)
Replace with: $3$2$1


Before:
0x01 HID_USAGE_GENERIC_POINTER
0x02 HID_USAGE_GENERIC_MOUSE
0x04 HID_USAGE_GENERIC_JOYSTICK
0x05 HID_USAGE_GENERIC_GAMEPAD
0x06 HID_USAGE_GENERIC_KEYBOARD
0x07 HID_USAGE_GENERIC_KEYPAD
0x08 HID_USAGE_GENERIC_MULTI_AXIS_CONTROLLER

After:
HID_USAGE_GENERIC_POINTER 0x01
HID_USAGE_GENERIC_MOUSE 0x02
HID_USAGE_GENERIC_JOYSTICK 0x04
HID_USAGE_GENERIC_GAMEPAD 0x05
HID_USAGE_GENERIC_KEYBOARD 0x06
HID_USAGE_GENERIC_KEYPAD 0x07
HID_USAGE_GENERIC_MULTI_AXIS_CONTROLLER 0x08

Monday, April 26, 2021

Keenetic routers

Wednesday, April 14, 2021

Print Raspberry Pi CPU and GPU temperature

cpu1=$(</sys/class/thermal/thermal_zone0/temp)
cpu2=$(echo "scale=1;$cpu1/1000" | bc)

gpu1=$(/opt/vc/bin/vcgencmd measure_temp)
gpu2=$(echo $gpu1 | tr -dc '.,0-9')

echo "$(date +'%d.%m.%Y %H:%M:%S') @ $(hostname)"

echo "CPU: $cpu2"
echo "GPU: $gpu2"

Wednesday, September 16, 2020

Disable Windows Defender Real-time protection from the command line

Why? Because it significantly slows down Visual Studio build process.

PowerShell

Get the current status:

(Get-MpPreference).DisableRealtimeMonitoring

Disable Real-time protection (requires admin rights):

Set-MpPreference -DisableRealtimeMonitoring $true

Command line

Get the current status:

powershell (Get-MpPreference).DisableRealtimeMonitoring

Disable Real-time protection (requires admin rights):

powershell Set-MpPreference -DisableRealtimeMonitoring $true