Git Product home page Git Product logo

Comments (7)

atlas0fd00m avatar atlas0fd00m commented on September 23, 2024

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.

paul-pearce avatar paul-pearce commented on September 23, 2024

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.

atlas0fd00m avatar atlas0fd00m commented on September 23, 2024

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.

paul-pearce avatar paul-pearce commented on September 23, 2024

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.

paul-pearce avatar paul-pearce commented on September 23, 2024

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.

atlas0fd00m avatar atlas0fd00m commented on September 23, 2024

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.

oosfoos avatar oosfoos commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.