Closed bigoper closed 2 years ago
# !/usr/bin/python
import sys from rflib import * try: d = RfCat() d.setFreq(390000000) d.setMdmModulation(MOD_ASK_OOK) d.setMdmDRate(4800) d.setMaxPower() d.lowball() d.RFlisten()
except Exception: # Make sure things are sane... d.setModeIDLE() sys.exit()
- transmitting (not working) ```python # !/usr/bin/python import sys from rflib import * try: d = RfCat() d.setFreq(390000000) d.setMdmModulation(MOD_ASK_OOK) d.setMdmDRate(4800) d.setMaxPower() d.lowball() # d.RFlisten() print ("Starting") d.RFxmit("\x84\xe7\x08\x42\x10\x84\xe7\x38\x00\x00\x00\x00\x00\x00"*10) print ('Transmission Complete') except Exception: d.setModeIDLE() sys.exit()
YARD Stick One@14100000 <class AppleUSBDevice, id 0x100004dfb, registered, matched, active, busy 0 (1 ms), retain 14>
{ "sessionID" = 54594412671450 "idProduct" = 24667 "iManufacturer" = 1 "bDeviceClass" = 0 "bMaxPacketSize0" = 32 "bcdDevice" = 256 "iProduct" = 2 "iSerialNumber" = 3 "bNumConfigurations" = 1 "Bus Power Available" = 250 "USB Address" = 14 "Built-In" = No "locationID" = 336592896 "bDeviceSubClass" = 0 "bcdUSB" = 272 "USB Product Name" = "YARD Stick One" "PortNum" = 1 "non-removable" = "no" "kUSBSerialNumberString" = "0000" "bDeviceProtocol" = 0 "AppleUSBAlternateServiceRegistryID" = 4294987257 "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBHostFamily.kext/Contents/PlugIns/IOUSBLib.bundle"} "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerState"=3} "Device Speed" = 1 "USB Vendor Name" = "Great Scott Gadgets" "idVendor" = 7504 "kUSBCurrentConfiguration" = 1 "IOGeneralInterest" = "IOCommand is not serializable" "kUSBProductString" = "YARD Stick One" "USB Serial Number" = "0000" "kUSBVendorString" = "Great Scott Gadgets" "IOClassNameOverride" = "IOUSBDevice" }
i apologize, i've been both heads-down and lacking in Mac knowledge.
but try sending a bytes object: b"foobarbaz"
b"foobarbaz"
ENVIRONMENT
CONTEXT
CODE
import sys from rflib import * try: d = RfCat() d.setFreq(390000000) d.setMdmModulation(MOD_ASK_OOK) d.setMdmDRate(4800) d.setMaxPower() d.lowball() d.RFlisten()
except Exception: # Make sure things are sane... d.setModeIDLE() sys.exit()
USB DIAGNOSTICS
YARD Stick One@14100000 <class AppleUSBDevice, id 0x100004dfb, registered, matched, active, busy 0 (1 ms), retain 14>