libam7xxx-0.1.6 released

The libam7xxx-0.1.6 release is out; it's a maintenance release with no big new features.

libam7xxx is a library to communicate with USB pico-projectors like, for instance, the Philips/Sagemcom PicoPix devices; you can read more about it in the previous stories:

Here is an overview from the NEWS file of the changes accumulated since the previous release:

News for v0.1.6:
================

  * Fix some ffmpeg compile time deprecation warnings in am7xxx-play
  * Fix some fmmpeg runtime warnings
  * Don't dump the last frame unconditionally in am7xxx-play when in DEBUG
    mode, add an option to enable the frame dump, but this is only active in
    DEBUG mode
  * Fix some compilation warnings from clang
  * Replace deprecated FFmpeg API symbol PIX_FMT_NV12 in am7xxx-play (Thanks
     to Andreas Cadhalpun)
  * Fix the Length field in the switch command in am7xxx-modeswitch (Thanks to
    Balasubramanian S)
  * More robust handling of USB configurations
  * More robust handling of kernel driver detachment (Thanks to Andrea
    Console)
  * Minor documentation cleanups
  * Minor build system improvements (am7xxx-play can now build without XCB,
    but some functionalities will not be available)
  * Misc code cleanups
  * Relicense the example under GPL-3+

The Debian packages have been kindly uploaded to Unstable by Gregor Herrmann.


CommentiCondividi contenuti

Hello, I am a complete noob

Ritratto di robert taylor

Hello,

I am a complete noob at this and was wondering if you have a way to use this through wine for a PPX2340 projector. Also I try to download the all but it states I need a password. Any help with that?

Hi Robert, the driver works

Ritratto di ao2

Hi Robert,

the driver works just fine on linux, it makes no sense to use it with WINE. Where does it ask for a password? Please be more specific.

Also, I am not sure if the PPX2340 is supported, please contact me via email so we can verify that.

Ciao, Antonio

Hi, I'm also interested in

Ritratto di Ezequiel

Hi,

I'm also interested in making a PPX2340 work on Linux, in particular on Ubuntu 15.04. Any progress on this side?

Thanks!

I arrive to this

Ritratto di Ezequiel

I arrive to this point

ezequiel@...:~$ lsusb
...
Bus 001 Device 007: ID 1de1:1101 Actions Microelectronics Co. Generic Display Device (Mass storage mode)
...
ezequiel@...:~$ sudo usb_modeswitch -v 0x1de1 -p 0x1101 --message-content 55534243087052890000000000000cff020000000000000000000000000000
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 007 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: Sagemcom
Product: PicoPix2330
Serial No.: 01234567890.
-------------------------
Looking for active driver ...
No active driver found. Detached before or never attached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
Sending the message returned error -1. Try to continue
Reset response endpoint 0x81
Reset message endpoint 0x01
-> Run lsusb to note any changes. Bye!

Try this command to switch

Ritratto di ao2

Try this command to switch mode:

sudo usb_modeswitch -v 0x1de1 -p 0x1101 --message-content 555342430870528900000000000010ff020000000000000000000000000000

Contact me via email for more details.

Hi Antonio, I'm trying to

Ritratto di NMacs

Hi Antonio,

I'm trying to cross compile for Windows on Ubuntu Precise, but when I 'make' I get ...

root@Ubuntu:/home/user001/Desktop/libam7xxx-ac1a48f/build# make
[ 11%] Building C object src/CMakeFiles/am7xxx.dir/am7xxx.c.obj
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c: In function ‘send_data_async’:
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:508:7: warning: passing argument 6 of ‘libusb_fill_bulk_transfer’ from incompatible pointer type [enabled by default]
/home/user001/Desktop/libam7xxx-ac1a48f/build/libusb-1.0.18-win/include/libusb-1.0/libusb.h:1536:20: note: expected ‘libusb_transfer_cb_fn’ but argument is of type ‘void (*)(struct libusb_transfer *)’
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c: In function ‘open_device’:
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:772:4: warning: unknown conversion type character ‘h’ in format [-Wformat]
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:772:4: warning: too many arguments for format [-Wformat-extra-args]
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:785:3: warning: unknown conversion type character ‘h’ in format [-Wformat]
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:785:3: warning: too many arguments for format [-Wformat-extra-args]
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:803:3: warning: unknown conversion type character ‘h’ in format [-Wformat]
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:803:3: warning: too many arguments for format [-Wformat-extra-args]
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c: In function ‘am7xxx_get_device_info’:
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:1233:11: error: ‘ENOTSUP’ undeclared (first use in this function)
/home/user001/Desktop/libam7xxx-ac1a48f/src/am7xxx.c:1233:11: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [src/CMakeFiles/am7xxx.dir/am7xxx.c.obj] Error 1
make[1]: *** [src/CMakeFiles/am7xxx.dir/all] Error 2
make: *** [all] Error 2

Any clues as to what I am missing?

Thanks, Nils

The new 0.1.7 release should

Ritratto di ao2

The new 0.1.7 release should fix compilation for Windows.

Hello, I'm using Ubuntu

Ritratto di Anonymous

Hello, I'm using Ubuntu Xenial 16.04 (Mint 18) with kernel 4.4.0-21-generic.

I have a Acer C112 DLP picoproyector. I'm installed libam7xxx packages:

$ dpkg -l | grep libam7
ii  libam7xxx0.1                                 0.1.6-2                                    amd64        library for accessing am7xxx based devices
ii  libam7xxx0.1-bin                             0.1.6-2                                    amd64        library for accessing am7xxx devices - utilities

When I connect the projector, this is my syslog:

Jul 25 11:37:42 pc-casa kernel: [ 5597.140029] usb 1-8: new high-speed USB device number 27 using ehci-pci
Jul 25 11:37:42 pc-casa kernel: [ 5597.272915] usb 1-8: New USB device found, idVendor=1de1, idProduct=1101
Jul 25 11:37:42 pc-casa kernel: [ 5597.272922] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 25 11:37:42 pc-casa kernel: [ 5597.272927] usb 1-8: Product: Usb Device
Jul 25 11:37:42 pc-casa kernel: [ 5597.272931] usb 1-8: Manufacturer: actions
Jul 25 11:37:42 pc-casa kernel: [ 5597.272936] usb 1-8: SerialNumber: 00000000000000000000000000000000
Jul 25 11:37:42 pc-casa kernel: [ 5597.273715] usb-storage 1-8:1.0: USB Mass Storage device detected
Jul 25 11:37:42 pc-casa kernel: [ 5597.275612] scsi host18: usb-storage 1-8:1.0
Jul 25 11:37:42 pc-casa mtp-probe: checking bus 1, device 27: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8"
Jul 25 11:37:42 pc-casa mtp-probe: bus: 1, device: 27 was not an MTP device
Jul 25 11:37:42 pc-casa systemd[1]: Starting USB_ModeSwitch_1-8...
Jul 25 11:37:42 pc-casa usb_modeswitch_dispatcher[8212]: Could not read attribute: No such file or directory
Jul 25 11:37:43 pc-casa kernel: [ 5598.322056] scsi 18:0:0:0: CD-ROM                     DPF NAND         0100 PQ: 0 ANSI: 2 CCS
Jul 25 11:37:43 pc-casa kernel: [ 5598.326672] sr 18:0:0:0: [sr1] scsi-1 drive
Jul 25 11:37:43 pc-casa kernel: [ 5598.326974] sr 18:0:0:0: Attached scsi CD-ROM sr1
Jul 25 11:37:43 pc-casa kernel: [ 5598.327546] sr 18:0:0:0: Attached scsi generic sg7 type 5
Jul 25 11:37:42 pc-casa usb_modeswitch_dispatcher[8212]: message repeated 2 times: [ Could not read attribute: No such file or directory]
Jul 25 11:37:43 pc-casa usb_modeswitch: switch device 1de1:1101 on 001/027
Jul 25 11:37:43 pc-casa kernel: [ 5598.388151] usb 1-8: USB disconnect, device number 27
Jul 25 11:37:43 pc-casa kernel: [ 5598.788031] usb 1-8: new high-speed USB device number 28 using ehci-pci
Jul 25 11:37:44 pc-casa kernel: [ 5598.920907] usb 1-8: New USB device found, idVendor=1de1, idProduct=5501
Jul 25 11:37:44 pc-casa kernel: [ 5598.920915] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 25 11:37:44 pc-casa kernel: [ 5598.920920] usb 1-8: Product: Usb Device
Jul 25 11:37:44 pc-casa kernel: [ 5598.920925] usb 1-8: Manufacturer: actions
Jul 25 11:37:44 pc-casa kernel: [ 5598.920929] usb 1-8: SerialNumber: 00000000000000000000000000000000
Jul 25 11:37:44 pc-casa kernel: [ 5598.923100] option 1-8:2.0: GSM modem (1-port) converter detected
Jul 25 11:37:44 pc-casa kernel: [ 5598.923234] usb 1-8: GSM modem (1-port) converter now attached to ttyUSB0
Jul 25 11:37:44 pc-casa mtp-probe: checking bus 1, device 28: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8"
Jul 25 11:37:44 pc-casa mtp-probe: bus: 1, device: 28 was not an MTP device
Jul 25 11:37:44 pc-casa usb_modeswitch[8212]: usb_modeswitch: switched to 1de1:5501 on 1/28
Jul 25 11:37:45 pc-casa usb_modeswitch_dispatcher[8212]: Unable to open bind list file: No such file or directory
Jul 25 11:37:45 pc-casa usb_modeswitch[8212]: usb_modeswitch: add device ID 1de1:5501 to driver option
Jul 25 11:37:45 pc-casa usb_modeswitch[8212]: usb_modeswitch: please report the device ID to the Linux USB developers!
Jul 25 11:37:48 pc-casa kernel: [ 5603.550569] usb 1-8: USB disconnect, device number 28
Jul 25 11:37:48 pc-casa kernel: [ 5603.550863] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jul 25 11:37:48 pc-casa kernel: [ 5603.550891] option 1-8:2.0: device disconnected
Jul 25 11:37:52 pc-casa systemd[1]: Started USB_ModeSwitch_1-8.

lsusb not show device:

pc-casa rules.d # lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 001 Device 004: ID 0c45:62f1 Microdia 
Bus 001 Device 003: ID 0ace:1215 ZyDAS ZD1211B 802.11g
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
pc-casa rules.d # 

I think that:

Jul 25 11:37:45 pc-casa usb_modeswitch_dispatcher[8212]: Unable to open bind list file: No such file or directory
Jul 25 11:37:45 pc-casa usb_modeswitch[8212]: usb_modeswitch: add device ID 1de1:5501 to driver option
Jul 25 11:37:45 pc-casa usb_modeswitch[8212]: usb_modeswitch: please report the device ID to the Linux USB developers!
Jul 25 11:37:48 pc-casa kernel: [ 5603.550569] usb 1-8: USB disconnect, device number 28
Jul 25 11:37:48 pc-casa kernel: [ 5603.550863] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jul 25 11:37:48 pc-casa kernel: [ 5603.550891] option 1-8:2.0: device disconnected

Disconnects the device.

Any idea?

Thanks.

Invia nuovo commento

Il contenuto di questo campo è privato e non verrà mostrato pubblicamente. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Indirizzi web o e-mail vengono trasformati in link automaticamente
  • Elementi HTML permessi: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linee e paragrafi vanno a capo automaticamente.

Ulteriori informazioni sulle opzioni di formattazione

CAPTCHA
Questa domanda serve a verificare che il form non venga inviato da procedure automatizzate
j
v
m
4
k
4
Enter the code without spaces.