Code Monkey home page Code Monkey logo

raven's Introduction

Raven Setup Instructions

Version 1.0.0 Beta

Prerequisites

Please read the full documentation here

Before proceeding, ensure you have the following installed on your system.

  • Python 3
  • pip + virtualenv
  • rtl-sdr package, including rtl_tcp and rtl_power
  • hackrf_sweep for the HackRF

Installation and Setup

Before starting Rave, make sure that you have the backend tools like rtl_tcp, rtl_power, or hackrf_sweep installed and updated to the most current version. If you're on Windoze, make sure that you have these in your system PATH. Instuctions for all of this can be found with some quick Googleing.

  1. Clone the Source Code

    git clone https://github.com/fosatech/Raven.git
  2. Navigate to the Project Directory

    cd Raven/
  3. Create a Python Virtual Environment:

    python3 -m venv venv
  4. Activate the Virtual Environment:

    source venv/bin/activate
  5. Install Dependencies:

    python -m pip install -r requirements.txt
  6. Run the Flask Application:

    python raven.py

    Note: this currently starts the Flask development server. Proper WSGI server support is coming soon.

Usage

After completing the setup, the Flask application will be running on your local server. You can access it via localhost:5000/rtl_data.

  1. Open the settings window, enter the desired wideband scan range and bin size, and start the scan.

  2. Start the rtl_tcp server with the desired port and IP, and connect to it with your SDR software.

  3. Select your desired rtl-tcp server instance by clicking on the current frequency, then ctrl + left click on the wideband window and Raven will automatically tune your SDR to it.

raven's People

Contributors

0x41tlas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raven's Issues

Session state issue

Hey,

So when playing with the 0.2.1 beta Iโ€™m running into multiple issues:

  1. Fresh install on a pi 4 8gb ram, when starting a session it will start just fine, but if I leave the browser for a bit, close and re-open the tab, it crashes the python process.
  2. If I start a sweep, and then stop it, change freq ranges, then re-start it. It no longer outputs any waterfall.
  3. When toggling start/stop scan, it will often send the incorrect POST. Such as: the button displays stop scan, but when pressed the python server instance get a POST for /start_scan.

When trying to select a frequency: AttributeError: 'NoneType' object has no attribute 'send'

I have two RTL-SDRs:

Found 2 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
1: Realtek, RTL2838UHIDIR, SN: 00000004

00000001 is used by the main STK Sweep process, which seems to work well.

I set the RTL TCP to use 127.0.0.1 1234, since that's the default port most tools expect. I then start the rtl_tcp server.

When I control-click in the pane to select a frequency, the terminal window gets this output:

127.0.0.1 - - [09/Dec/2023 12:38:44] "POST /rtl_tcp_frequency HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask/app.py", line 1478, in __call__
    return self.wsgi_app(environ, start_response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask_socketio/__init__.py", line 43, in __call__
    return super(_SocketIOMiddleware, self).__call__(environ,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/engineio/middleware.py", line 74, in __call__
    return self.wsgi_app(environ, start_response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask/app.py", line 1458, in wsgi_app
    response = self.handle_exception(e)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask_cors/extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
                                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask/app.py", line 1455, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask/app.py", line 869, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask_cors/extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
                                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask/app.py", line 867, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/venv/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/axon/source/STK-Sweep/webapp/routes.py", line 86, in rtl_tcp_frequency
    current_server.send_command(set_frequency)
  File "/home/axon/source/STK-Sweep/webapp/rtl_tcp_server.py", line 178, in send_command
    self.forward.send(cmd)
AttributeError: 'NoneType' object has no attribute 'send'
{'currentTCPFreq': 1667601051}
[*] Sent

I'm on Manjaro Linux if that matters. It shouldn't make much difference in a venv.

Blank fft/waterfall and changing freqs within sdrpp issue

Just doing a quick test right now with the latest source using the venv setup. I have Firefox open and can see that the two RTLSDRs are started after setting the correct config. However, I've seen nothing in terms of an fft/waterfall etc on the STK Sweep main page. Inspecting the page shows

Uncaught NS_ERROR_FAILURE: 
    drawRow http://localhost:5000/static/js/rtlDataDisplay.js:673
    <anonymous> http://localhost:5000/static/js/rtlDataDisplay.js:839

I also noticed on my end where I try to start SDR++ even after wiped .config settings, it refuses to open since it pukes on -6 interface claimed (rtlsdrs in use). However, if I stop STK Sweep/TCP server and then open SDR++ it's okay.

With SDR++ opened and then going back and starting up the sweep/tcp server I can control left click on black area (I see freq changing on the left pane of stk) and the frequency changes in SDR++ but the actual listed freq/freq numbers do not. Likely an issue where SDR++ is just not realizing the tcp server is changing the freq.

Besides those issues, seems to be working. Just curious if I should be trying another browser?

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.