Projects tagged ‘usb’ and ‘windows’


Jump to tag:

Projects tagged ‘usb’ and ‘windows’

Filtered by Project Tags usb windows

Refine results Project Tags linux (9) portable (7) python (5) macosx (4) mono (3) utility (2) security (2) microchip (2) java (2) password (2) serial (2) c (2)

[21 total ]

18 Users
 

PortableApps.com is the most popular portable software solution allowing you to take your favorite software with you. A fully open source and free platform, it works on any USB flash drive, iPod ... [More] , memory card, portable hard drive or other portable device. With a full collection of open source software as well as compatible freeware and commercial software and partners in the software and hardware industry, PortableApps.com is the most complete solution for life on the go. [Less]
Created about 1 year ago.

2 Users

IntroductionThis project aims to be a simple USB/HID user application space (hence no drivers needed) 100% python package. Initially targeting simple HID devices management, also planed is support ... [More] for WinUSB high level wrapping. The vision for this project is to be something similar to PySerial or PyParallel for USB/HID hardware enthusiasts. AdvantagesAll python code, using ctypes Top level handling of HID events (usage events calling hook handlers) LimitationsDepending on your application you might find these limitations Windows only (so far...) Not so fast top level interfacing. But you could still access your raw data reports. InstallationNo package releases yet. I expect to have it working by using easy_install. For now you can access the code using the svn repository. I'm planning initially to have a mature pywinusb.hid name space (sub-package) implementation before attempting the pywinusb.winusb stuff. Using the packageCheck the .\examples\hook_button.py script, it shows how to use usage event handlers, also the .\examples\simple_send.py script describes how to toggle a usage signal by using output reports. In general this is you'll usually follow this steps: Import the pywinusb.hid subpackage: from pywinusb import hidDefine a HidDeviceFilter() object to target a particular USB device. The most restrictions you add when initializing the object, the narrower your device search might be, examples: # any hid device filter = hid.HidDeviceFilter() # just by vendor id filter = hid.HidDeviceFilter(vendor_id = 0x1234) # using vendor id and product id filter = hid.HidDeviceFilter(vendor_id = 0x1234, product_id = 0x0001) # by getting a range of vendor id's (example 0x12??) filter = hid.HidDeviceFilter(vendor_id = 0x1234, product_id = 0x0001, vendor_id_mask = 0xff00) # or particular product_id range (0x001??) all_devices = hid.HidDeviceFilter(vendor_id = 0x1234, product_id = 0x0010, product_id_mask = 0x0010)Then at some point you'd poll for device availability, the reason for this is that you could receive plug and play events when any HID device gets connected or disconnected # poll now all_devices = filter.get_devices() if all_devices: print "Found %d matching hid devices" % len(all_devices)You´ve got to be carefull on the filter result, if your search is wide enough to match multiple devices, might end up with more than expected items, there are other reasons you might actually get more than expected items returned by HidDeviceFilter().get_devices() Obviously, multiple devices might be connected to different USB ports. 2. You could have HID devices with multiple collections, the usages spread over different usage pages, or the way the HID descriptors are arranged causes Windows to report your devices as multiple hid devices (istead of a single HID instance), as if it were a composite device. For both cases you might find out that the HidDeviceFilter().get_devices_by_parent() very useful, it will return a dictionary where the keys make reference to the actual hardware instance ID of the parent device, so, this will effectevely group the found hid devices by the top level parent device. The dictionary values will be a list containing the devices with the common parent hardware ID. HidDeviceFilter().get_devices_by_parent() support the same parameters get_devices() does. # example, handle the HidDeviceFilter().get_devices() result grouping items by parent ID all_hids = HidDeviceFilter().get_devices_by_parent() for parent, hid_items in al_hids.items(): print "Hid devices having hardware (instance) parent id = %d:" % parent for item in hid_items: print "\t%s" % repr(item)Once you decide you have something usefull to do with your HID items, you have to call HidDevice.open() to start a data reading thread and be ready to send output reports, if you find out that afte opening your device you get flooded with un-expected data, or just want to send output or feature reports, use the output_only = True parameter. # let's supposed we already have a HidDevice instance, open it and print the vendor_name string hid_device.open(): if hid_device.vendor_id: # effectevely we could open the device (and setup the reading thread) print "The vendor name of device %s is %s" % (repr(hid_device), hid_device.vendor_name) # don't forget to clean up! hid_device.close()Always use HidDevice.close(), this will kill the reading thread and restore the system resources, use a try: finally block to make sure the related system resources are cleaned up in case of any failure during initialization Sending reports. Check the ./examples/simple_send.py script, after opening your HID device, you need to get a target output or feature report, take a look at the HidDevice().find_output_reports() and find_feature_reports() functions, you could search for all reports (no parameters), or provide a target usage_page and usage_id to look for. # let´s find out all the HID usages in all the output reports for report in my_hid_device.find_output_reports(): print "The report %s, has this usage items:" % repr(report) for item in report: print "\t%s" % repr(item) # how about looking for a particular usage in all output reports? target_usage = hid.get_full_usage_id(0x08, 0x36) #page_id = LED page, usage = Play LED # all user space HID devices all_devices = HidDeviceFilter().get_devices() for device in all_devices: # browse each one... try: device.open() #consider using open(output_only = True) for report in device.find_output_reports(): if target_usage in report: # hey, we found any one! report[target_usage] = 1 # change value in report report.send() #flush it! finally: device.close()Finally, you could setup event handler functions to be informed when a particular usage changed, take a look at the hid.HID_EVT_XXXXX constants. So far, you could setup events that would call your event handler function for 0 values (hid.HID_EVT_CLEAR), 1 values (hid.HID_EVT_SET), changing to 0 (hid.HID_EVT_RELEASED), changing to 1 (hid.HID_EVT_PRESSED), just changed (hid.HID_EVT_CHANGED) or when any value is received (hid.HID_EVT_ALL), take a look at the .\examples\hook_button.py script UtilitiesMore on this later... If you actually prepared any documentation, feel free to contribute! The module pywinusb.hid.tools contains a function to check HID class devices capabilities, it issues a text report (see the hid.core package, run it as main) Feedback and ContributingFeel free to contact me (rene f aguirre gmail com)!, just tell what do you think about the project or bring me anything you think might be cool. I´ve being thinking about how to get a entry level HID device, so I could add more examples on such hardware, I was thinking about the Wiimote, but saddly it's rather limited for this, it's not using a proper HID descriptor, so input reports are raw reports. Anyway, if you find (or want to send me, why not), a device that might fit this purpose, just let me know. Any participation it's appreciated, if you are willing to contribute but don't have any ideas or time, feel free to donate. [Less]
Created 7 months ago.

0 Users

PassBag is an open source multi-platform software that securely manage and store passwords. It allows developers, system administrators and other users using a large number of passwords to manage ... [More] these passwords with a single tool. Many users have access to multiple servers, databases, websites, source control and over time the number of passwords under management does not stop growing. Why use PassBag password manager?It is dangerous to work with a lot of passwords without the use of a password management tool. This implies dangerous behavior like using spreadsheets or text files as password storage unit, using similar passwords for multiple accounts, create passwords easy to remember and many other dangerous behavior. The main benefits of PassBag? Secure password storage Work on Linux, Max OS X and Windows Provide easy access to passwords Auto. generate password regarding to password generation policy Can run from a USB key Passwords are stored on a file PassBag file can be synchronized Files can be backup/restored on and from a compressed and secured archive Easy to share passwords file Auto clear password on clipboard Auto lock PassBag on minimize or after x seconds Multilingual Technical information’sThis project work’s on Mac OS X, Linux and Windows, it can be build on both systems. For Windows, you can use Visual Studio 2008 and mono 2.0 on other systems. The used Unit Testing Framework is NUnit and it run well on both systems. The PassBag application was writtent in C#, the C# language is an oriented object language that help to quickly build applications for the Microsoft .Net Framework. C# help you to concentrate on your applications logic without use of complexe memory management and other complexe stuff present on languages like C++. Novell has sponsored the development of Mono, Mono is an open source implemention of the .Net Framework is also include Mono/Linux/GNOME development stack. [Less]
Created 10 months ago.

0 Users

Code and resources for Microchip USB PICs.
Created 12 months ago.

0 Users

LiLi USB Creator is a free software for Windows that allows you to create a bootable USB key with a linux on it, with integrated virtualization.
Created 8 months ago.

0 Users

ZiU Emergency Rescue Disk
Created 12 months ago.

0 Users

Movable Python is a portable distribution of Python for Windows capable of running of a USB stick. It includes both the pre-built distributions of Python, plus the scripts required to build the ... [More] distributions. Distributions are built with py2exe. As the distributions are isolated from any installed version of Python, Movable Python can be used for testing code with different versions of Python. The Movable Python interpreter behaves as much as possible like the standard Python interpreter. The standard distribution includes the full standard library and the PythonWin and IDLE IDEs - it makes a portable development environment. A modified version of Movable Python could be used to create standalone applications without needing to bundle (and re-bundle) with py2exe. [Less]
Created 12 months ago.

0 Users

Bluetooth for Microsoft Device Emulator enables Bluetooth communication from and to the emulator. Please refer to README to get started. Русская версия также доступна. ... [More] Your questions and comments are welcome. Please send them to bthmsdevemul@googlegroups.com. Check out regularly the project's group for answers. Support the project [Less]
Created 12 months ago.

0 Users

The aim of this project is to build a hardware device pluggable to a computer, featuring touch sensors monitored by the device and filtered by the a computer application so as to control iTunes-like ... [More] applications playback. We hope to put all of our project documentation and resources here. This technological project (PT in french) is made by In Ho Doh, Gautam Lele, Arul Nautiyal and Jonathan-David Schröder in Ecole Centrale d'Electronique in the Embedded Systems majeure on S2 of 2008. [Less]
Created about 1 year ago.

0 Users

securedusb is a desktop application for secured USB access. When user plugs in a USB drive,software will protect its access to the system.
Created 4 months ago.