Comments (7)
play around with d._debug=0-5 to track communication between Python and the Dongle.
it could be the Pi's USB stack being more flaky than that of a full-size computer... and even that could be a just a weakness in the RfCat dongle USB stack.
d._debug = 2 ; doMyScriptThingy() ; d._debug=0
from rfcat.
Thank you.
From looking at the output and the source, it looks like the expected behavior is that the device should return information via recv() to verify that the send successfully completed, and that's where the failure is? That recv() is not actually attempting to read air, correct?
from rfcat.
it could be that... but depending on what's going on with the dongle, it's possible that it's just not able to complete in the timeout given. does it ever acknowledge transmitting?
from rfcat.
Yep. RFxmit() completes most of the time (and with debug enabled I see recv output when it does). Just every so often, especially when calling the command back to back, it times out in recv() (the one invoked as the return value to send())
Edit: is the question if I increase the timeout, does the problem go away? (Trying to disambiguate if you're asking if the command ever succeeds, or for error conditions, if given more time, it would succeed)
from rfcat.
Adding the above debug calls around the RFxmit() ha either resolved the issue or lowered the frequency significantly. It hasn't yet reoccured.
This seems to point to some form of timing issue such as the debug slowing down back to back calls enough to allow allow the chipset enough time to recover (or something).
I'll keep running to see if it pops back up. Obviously this isn't a great solution.
from rfcat.
agreed. thank you for your efforts. let us know what you determine. pull requests always welcome, although i realize that just familiarity with client-side python is not the same as firmware in C/SDCC and firmware event models, which is likely where this bug lies..
from rfcat.
just wanted to add that i am seeing the same issue on my vmware kali
The surrounding debug statements seems to fix the intermittent usb_timeout problem i had for RFxmit and setModeIDLE
i am very new to everything rfcat, but if i get the chance i'll poke around.
from rfcat.
Related Issues (20)
- TypeError when verifying firmware update HOT 2
- Setting up rfcat in Debian 10 on Beaglebone black HOT 4
- Bricked YS1, Fails verifying HOT 2
- Typing hints in bits.py causing SyntaxError HOT 3
- Insufficient USB Permissions HOT 4
- YS1 issue HOT 7
- NoneType Object has no Attribute 'auto_match' HOT 2
- Suggested Feature: Ability to send raw pulses/gaps HOT 7
- Questions regarding calculatePKTChanBW and setEnableCCA HOT 5
- Pass RSSI to setEnableCCA HOT 1
- Simple Datarate question HOT 3
- different behavior between Chronos Dongle and Yardstick One with 2FSK modulation HOT 5
- PSK HOT 4
- ESP32 and ESP 8266 HOT 55
- Why 2 .hex files? HOT 2
- YS1 Successful firmware update, no dongle found. HOT 14
- RFCat application for Flipper Zero HOT 7
- YS1 LED flashing, dmesg states ` usb usb3-port1: unable to enumerate USB device`, doggle not listed in devices HOT 12
- Error on exit: "RESETUP set from recv thread" HOT 2
- please remove usage of future/past
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfcat.