Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:41:20+00:00 2026-06-12T19:41:20+00:00

I am trying to write to a PS3 controller using the following line (dev

  • 0

I am trying to write to a PS3 controller using the following line (dev has been set properly).

dev.ctrl_transfer(0x40, CTRL_LOOPBACK_WRITE, 0, 0, msg)

I get an error that CTRL_LOOPBACK_WRITE is undefined. So, where is it defined? Or can I just get the value of it?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:41:22+00:00Added an answer on June 12, 2026 at 7:41 pm

    I guess you found this control transfer example on the pyusb tutorial at http://pyusb.sourceforge.net/docs/1.0/tutorial.html. However, this is a rather hypothetical example, as the text explains: “In this example, it is assumed that our device implements two custom control requests that act as a loopback pipe”. So this is not a standard control request, and probably not a request supported by your PS3. In that case it would be up to the PS3 controller’s USB stack to define what the numeric value of CTRL_LOOPBACK_WRITE should be.

    You can find an overview of the standard requests at http://www.beyondlogic.org/usbnutshell/usb6.shtml#StandardRequests, in addition there are class-specific standard requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m trying write code that after reset set up rrpmax as 3000. It
I've had problem when trying write a function which has a default value when
Trying to write Unit test for Silverlight 4.0 using Moq 4.0.10531.7 public delegate void
I've been trying write an application which will be able to connect to a
Trying to write a windows speech recognition macro. Written using XML and scripting language
Im trying to write a python script using the pexpect library. What im trying
We've been trying write unit tests for a worker class written in C#, which
I'm trying write a code that can the set property value through the lambda
trying to write to work book and change the cell colour using... CellStyle style
I trying to write a drupal module. I'm following book Learning Drupal 6 Module

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.