Git Product home page Git Product logo

Comments (8)

stjeong avatar stjeong commented on August 23, 2024

With Python, you can communicate with rasp_vusb_server running on PI device.

The communication is based on just SSL socket, referred to this receiver-side code at

or, sender-side code at

I'm poor at python, so can't include source codes at this repo, but, I think you can do it. :) I'm looking forward to your PR.

from rasp_vusb.

The-Drobe avatar The-Drobe commented on August 23, 2024

Stupid question but to use ssl I require the private.key and the certchain.pem where in your code do you generate them or keep them

from rasp_vusb.

The-Drobe avatar The-Drobe commented on August 23, 2024

another question is it at all possible to tell me the format of the request to the server in the rasberry pi

from rasp_vusb.

stjeong avatar stjeong commented on August 23, 2024

Stupid question but to use ssl I require the private.key and the certchain.pem where in your code do you generate them or keep them

You can find those files at https://github.com/stjeong/rasp_vusb/tree/master/script

  • key.pem
  • test.pem

These files are copied into /share by deploy_with_pscp.bat, and load by VUsbServer::init_openssl function (https://github.com/stjeong/rasp_vusb/blob/master/rasp_vusb_server/VUsbServer.cpp#L192)

from rasp_vusb.

stjeong avatar stjeong commented on August 23, 2024

another question is it at all possible to tell me the format of the request to the server in the rasberry pi

Well... the packet format is explained in C# code. :)

You just need to convert "ConvertToMouseCommand" method into Python Language. (https://github.com/stjeong/rasp_vusb/blob/master/InputController/MouseDevice.cs#L11)

(Sorry for that I didn't documented.)

from rasp_vusb.

Johsei avatar Johsei commented on August 23, 2024

Hey guys, @The-Drobe have you been successful with your python implementation by any chance? Thank you!

from rasp_vusb.

Johsei avatar Johsei commented on August 23, 2024

@stjeong Or would it be easyer to do this in C++ on the Raspberry?
Is there a function i could call on the Raspberry to move the mouse of my connected Windows PC, maybe like SendRelative() in MouseDevice?

Thanks for your help, I'm sorry that as a beginner I don't really gain understanding of your code.

from rasp_vusb.

stjeong avatar stjeong commented on August 23, 2024

You can do that in C++ on the Raspberry PI directly. "MouseDevice" code within InputController is just for sending "mouse data" to rasp_vusb_server running on Raspberry PI.

So, you can use socket to send the "mouse data" from your program to rasp_vusb_sverver in C++ instead of C#.

If you run your program on Raspberry PI, you can just write "mouse data" to virtual device "/dev/hidg0" directly, no need to use socket, and no need to use rasp_vusb_server.

from rasp_vusb.

Related Issues (16)

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.