Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to discover my HP scanner #1

Open
pareshprajapati1990 opened this issue Jul 26, 2018 · 3 comments
Open

Unable to discover my HP scanner #1

pareshprajapati1990 opened this issue Jul 26, 2018 · 3 comments

Comments

@pareshprajapati1990
Copy link

Hello there,

I'm unable to discover my HP Laserjet MFP M129-M134 scanner using this app which is TWAIN compliant device as per product specification.

Please help me out here.

@mlmcl62
Copy link
Contributor

mlmcl62 commented Jul 27, 2018

The TWAIN Direct Bridge (included in the twain-direct project) is required for any scanner that only supports the legacy TWAIN Driver.

@jayesh28589
Copy link

Hello @mlmcl62 : We (me, Paresh and my team) import both the demo android and IOS and in IOS it shows all scanner in scanning list, but in android it is not showing, there is no filter in IOS where in android there is filter for scanning list. I added condition in AndroidServiceDiscoverer.java

if (type.equals("twaindirect") || type.equals("printer"))

instead of only if (type.equals("twaindirect")) and it will listed then scanner.

We have HP LaserJet MFP M132snw Printer/Scanner and it is TWAIN supported.

What we done

  1. Scanning
  2. privet/infoex
    the response from privet/infoex is:

{ "version": "2.0","name": "HP LaserJet MFP M132snw (28C4FE)-6","firmware": "20160908","url": "https://www.google.com/cloudprint","type": ["printer"],"id": "(null)","device_state": "idle","uptime": 163561180,"connection_state": "offline","manufacturer": "HP","model": "HP LaserJet MFP M132snw","serial_number": "VNFTC00298","x-privet-token": "MjVmYzU5YzAtYzFlNC0xZjBjLWFjMjctM2M1MjgyMjhjNGZlOjI2NDY3Ng==:264676","api": ["/privet/register"]}

but after that we call api .../privet/register and pass the params as looking in demo but it always return {"error": "invalid_params"} in POSTMAN.

do you have any idea how can we go further here.

@JakeWoki
Copy link

POST

/privet/register
X-Privet-Token: xxxxx
{ "kind": "twainlocalscanner", "commandId": "xxxxxxxxxxxxxx", "method": "createSession" }

it always return {"error": "invalid_params"}

@jayesh28589 Did you have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants