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 4570900
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:25:41+00:00 2026-05-21T19:25:41+00:00

How should this be implemented? User has a USB device (doorbell) attached to their

  • 0

How should this be implemented?

  1. User has a USB device (“doorbell”) attached to their machine.
  2. User goes to the client’s web page and clicks a link.
  3. A notification appears “Please press the doorbell.”
  4. User presses doorbell, website is notified.

The “doorbell” is actually a complex device with its own SDK, and it’s sending back a big blob of data. The device manufacturer provides SDKs for both Windows and OSX. I can write native code for either platform to interact with the device at the OS level.

Plan A

  1. LocalWatchdog process runs on the user’s machine.
  2. Browser plugin catches the webpage event
  3. Browser plugin does something (using NPAPI?) to signal LocalWatchdog
  4. LocalWatchdog pops the notification & gets the doorbell-press event
  5. LocalWatchdog does something to tell the plugin that the doorbell has been pressed.
  6. The plugin tells the website.

Plan B

  1. The website downloads a Java applet which runs locally on the user’s machine.
  2. The applet pops the notification.
  3. The applet does something to catch the doorbell-press event.
  4. The applet tells the website the doorbell has been pressed.

Other plans welcomed, but in any case, what are the somethings?

  • Any language is acceptable.
  • Non-trivial installation process is acceptable.
  • Must run on OSX and Windows. If I have to write it twice, I will.
  • Must run with Chrome, Firefox, and IE. If I have to write it three times, I will.
  • 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-05-21T19:25:41+00:00Added an answer on May 21, 2026 at 7:25 pm

    If you have a local process, I’d say:

    1. Run a local webserver that talks to the hardware and uses an appropriate cross-domain XML file.
    2. Use an Ajax call to ask speak to it from the browser and ask for the button press
    3. When the local webserver gets the request, hit the hardware with an appropriate message (I’m assume its some USB HID-type thing).
    4. Signal the user in the browser, then open a long-polling request again to the local webserver and wait for a response.
    5. If the user hits the button, return the data to the browser request.
    6. Profit (we hope).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a page that has several user controls (similar to WebParts). Each
I need to determine if user has already visited a page, for tracking unique
What is the accepted practice for indenting SQL statements? How should this example be
This should be fine seeing as the CLR hasn't actually changed? The boxes running
This should hopefully be a simple one. I would like to add an extension
This should a quick question for some easy rep. I'm doing some PHP Website
This should be a really really simple thing, but for some reason it is
This should be easy for many of you, but for me it's just another
This should be easy, but I'm not sure how to best go about it.
This should be straight forward for a guru. I don't have any code really

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.