Ticket #31 (closed development: fixed)

Opened 4 years ago

Last modified 20 months ago

Revisit libusb on Windows

Reported by: atorf Owned by: staas
Priority: none Milestone: v4.05
Component: Toolbox Function Keywords:
Cc:

Description

Check usage of libusb again on Windows system: In theory it should be possible to use only libusb in the COM-layer, getting rid of Fantom. This would reduce complexity inside the COM-layer, as well as fix ticket #27 (system commands not working on Windows/USB). Probably also ticket #28 (Fantom not working on (Vista?) 64bit) would be fixed.

Performance has to be tested, no deterioration is desired of course…

This would require simple (but "critical") changes in the core COM-functions.

Disadvantages are the required time/effort and the fact that in an investigation before, this idea didn't work out. Maybe newer versions of libusb or MATLAB fixed this problem.

(Though libusb successfully works with the NXT on Windows with other programming languages).

Attachments

Change History

Changed 4 years ago by atorf

Found something in FurtherConcepts to remember:

Erste Test zeigten eine das die libusb unter Windows auch funktioniert (mit LeJoS System). Es gilt den Code zur Ansteuerung der libusb zu überprüfen und neben dem Modus für LeJoS auch für die Original Firmware zu implementieren.

… (Übrigens: die libusb Library unter Windows heißt "libusb0" und unter Linux "libusb").

Rainer Zitat: Bei der Original-Firmware muss man (nach Hinweisen im Internet) wohl den "Normalmodus" statt des stream-Modus neben, bzw. im Internet habe ich eben gefunden, dass bei Lejos im Moment nur der Streammodus funktioniert. Ich habe das aber bis jetzt noch nicht weiterverfolgt.

Die Handhabung müsste eigentlich analog zu der unter Linux sein. Habe die Protofiles für Windows auch dementsprechend schon angepasst. Aber eine erfolgreiche libusb Windows Paketübertragung mit einem NXT mit originaler Firmware ist mir noch nicht bisher geglückt.

Changed 3 years ago by behrens

  • milestone set to vNo

Changed 20 months ago by staas

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from vNo to vNext

We are using "libusb_win32" for Windows now. Seems to work fine. Fantom will still be supported due to backwards compatibility.

Changed 20 months ago by staas

  • milestone changed from vNext to v4.05

Changed 20 months ago by behrens

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 20 months ago by behrens

  • owner set to staas
  • status changed from reopened to assigned

Changed 20 months ago by behrens

  • status changed from assigned to closed
  • resolution set to fixed

Add/Change #31 (Revisit libusb on Windows)

Author



Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.