Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38
Rep:
Connection Linux --> PDA WindowsCE
Good morning,
My question is this Debian-Jessie:
In the company I have a PDA "Datalogic Memor X3 (WindowsCE)" USB connected "/ dev / ttyUSB0" used for making stock.
Currently with Debian Wheezy I get copy the "\ My Documents \ Datos.dat" file with the
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38
Original Poster
Rep:
Thanks for your interest,Ihatewindows522,
no problem to do all kinds of tests, I use a non-critical computer exclusively for test before passing it to production-computer .
I made copies of the depends of synce-hal from Wheezy ==> Jessie.
root@pruebajessie:/usr/bin# ls -l synce*
-rwxr-xr-x 1 root root 17200 jun 11 2011 synce-database
-rwxr-xr-x 1 root root 706 jun 11 2011 synce-install-cab
-rwxr-xr-x 1 root root 8024 jun 11 2011 synce-list-programs
-rwxr-xr-x 1 root root 20216 jun 11 2011 synce-pcp
-rwxr-xr-x 1 root root 6864 jun 11 2011 synce-pkillall
-rwxr-xr-x 1 root root 17072 jun 11 2011 synce-pls
-rwxr-xr-x 1 root root 12312 jun 11 2011 synce-pmkdir
-rwxr-xr-x 1 root root 12632 jun 11 2011 synce-pmv
-rwxr-xr-x 1 root root 12312 jun 11 2011 synce-prm
-rwxr-xr-x 1 root root 12312 jun 11 2011 synce-prmdir
-rwxr-xr-x 1 root root 12704 jun 11 2011 synce-prun
-rwxr-xr-x 1 root root 6864 jun 11 2011 synce-psettime
-rwxr-xr-x 1 root root 13224 jun 11 2011 synce-pshortcut
-rwxr-xr-x 1 root root 11048 jun 11 2011 synce-pstatus
-rwxr-xr-x 1 root root 22504 jun 11 2011 synce-registry
-rwxr-xr-x 1 root root 448 jun 11 2011 synce-remove-program
dpkg -i synce-hal_0.15-1_amd64.deb
Quote:
root@pruebajessie:/tmp# dpkg -i synce-hal_0.15-1_amd64.deb
(Leyendo la base de datos ... 91140 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar synce-hal_0.15-1_amd64.deb ...
Desempaquetando synce-hal (0.15-1) ...
dpkg: problemas de dependencias impiden la configuraci≤n de synce-hal:
synce-hal depende de libgnet2.0-0 (>= 2.0.8); sin embargo:
El paquete `libgnet2.0-0' no estß instalado.
synce-hal depende de libsynce0; sin embargo:
El paquete `libsynce0' no estß instalado.
synce-hal depende de dhcp3-client; sin embargo:
El paquete `dhcp3-client' no estß instalado.
synce-hal depende de hal; sin embargo:
El paquete `hal' no estß instalado.
dpkg: error al procesar el paquete synce-hal (--install):
problemas de dependencias - se deja sin configurar
Procesando disparadores para dbus (1.8.20-0+deb8u1) ...
Se encontraron errores al procesar:
synce-hal
Ejecute file # synce-pls
Quote:
root@pruebajessie:/tmp# synce-pls
** (process:4654): WARNING **: synce_info_from_hal: Failed to obtain list of attached devices: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files
synce-pls: Could not find configuration at path '(Default)'
Ubuntu currently just pulls many packages from Debian and just rebuilds them without modification, so there's no need for a separate Ubuntu maintainer.
Hi barnarasta, thanks for inviting me to this forum
Unfortunately, in the past, I didn't succeed trying to connect a WinCE device to a Linux PC with SynCE; more to say, currenlty I don't have a WinCE device at hand... So, related to this particular issue, maybe I'm more newbie than you
Well, from what I've read here:
to prepare a working environment on a fresh Debian Wheezy system, you only need to install 2 packages: "synce-hal" and "librapi2-tools";
after installing those packages, the only utility you use to work with your WinCE device is "synce-pls".
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38
Original Poster
Rep:
Welcome to the forum bobbid,
I confirm:
I'm using Wheezy with 'synce-hal' to read data from a (USB) PDA-DataLogix-Memor X3 with WindowsCE 6.0 from console.
The commands I use a '/bin/bash' are:
synce-pls / ===> to list the contents of the PDA.
synce-pcp ":\My Documents\Datos.dat" /tmp/datos.dat ===> copy Datos.dat the file (PDA) to Wheezy/tmp/datos.dat
synce-prm ":\My Documents\Datos.dat" ====> to delete the file to the PDA.
There are other commands that you can see and experience in /usr/bin/synce* I do not use.
I think you can also experiment with any mobile phone that has WindowsCE.
When I connect the PDA to the USB it appears on /dev/ttyUSB0.
and /var/log/syslog message:
Quote:
kernel: [ 1430.884028] usb 1-7: new high-speed USB device number 4 using ehci_hcd
kernel: [ 1431.032061] usb 1-7: New USB device found, idVendor=045e, idProduct=00ce
kernel: [ 1431.032068] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 1431.032072] usb 1-7: Product: Datalogic USB Sync
kernel: [ 1431.032076] usb 1-7: Manufacturer: Datalogic S.p.A.
kernel: [ 1431.032079] usb 1-7: SerialNumber: e6461300-4604-0801-500e-004769090000 checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7"
mtp-probe: bus: 1, device: 4 was not an MTP device
kernel: [ 1431.104067] usbcore: registered new interface driver usbserial
kernel: [ 1431.104095] USB Serial support registered for generic
kernel: [ 1431.104147] usbcore: registered new interface driver usbserial_generic
kernel: [ 1431.104150] usbserial: USB Serial Driver core
kernel: [ 1431.118172] USB Serial support registered for PocketPC PDA
kernel: [ 1431.118216] ipaq 1-7:1.0: PocketPC PDA converter detected
kernel: [ 1431.118509] usb 1-7: PocketPC PDA converter now attached to ttyUSB0
kernel: [ 1431.118523] usbcore: registered new interface driver ipaq
kernel: [ 1431.118524] ipaq: v1.0:USB PocketPC PDA driver
modem-manager[2673]: <info> (ttyUSB0) opening serial port...
modem-manager[2673]: <info> (ttyUSB0) closing serial port...
acpid: client connected from 2749[0:0]
kernel: [ 1748.112048] usb 1-7: new high-speed USB device number 5 using ehci_hcd
kernel: [ 1748.260281] usb 1-7: New USB device found, idVendor=045e, idProduct=00ce
kernel: [ 1748.260287] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 1748.260292] usb 1-7: Product: Datalogic USB Sync
kernel: [ 1748.260295] usb 1-7: Manufacturer: Datalogic S.p.A.
kernel: [ 1748.260299] usb 1-7: SerialNumber: e6461300-4604-0801-500e-004769090000
kernel: [ 1748.262490] ipaq 1-7:1.0: PocketPC PDA converter detected
kernel: [ 1748.263832] usb 1-7: PocketPC PDA converter now attached to ttyUSB0
mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7"
mtp-probe: bus: 1, device: 5 was not an MTP device
dbus[2335]: [system] Activating service name='org.freedesktop.Hal' (using servicehelper)
dbus[2335]: [system] Successfully activated service 'org.freedesktop.Hal'
acpid: client connected from 5638[116:124]
acpid: 1 client rule loaded
pppd[5646]: pppd 2.4.5 started by root, uid 0
kernel: [ 1794.900708] PPP generic driver version 2.4.2
pppd[5646]: Serial connection established.
pppd[5646]: Using interface ppp0
pppd[5646]: Connect: ppp0 <--> /dev/ttyUSB0
NetworkManager[2613]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
NetworkManager[2613]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
kernel: [ 1796.404499] PPP BSD Compression module registered
kernel: [ 1796.417983] PPP Deflate Compression module registered
pppd[5646]: local IP address 192.168.131.1
pppd[5646]: remote IP address 192.168.131.129
# lsusb
Quote:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1307:0330 Transcend Information, Inc. 63-in-1 Multi-Card Reader/Writer
Bus 002 Device 002: ID 1bcf:0005 Sunplus Innovation Technology Inc.
Bus 001 Device 005: ID 045e:00ce Microsoft Corp. Generic PPC Flash device
Those SynCE packages <synce-hal (0.15-1.1), libsynce (0.15-1.1), librapi2 (0.15-2.2) and maybe more> had become unmaintained (you've already read my "advertisement" on SF forums) and outdated in Debian, and were eventually removed in 2013 because of HAL dependencies. They've come from an old SynCE release 0.15.
And synce-serial (0.11-5.3) is even older (SynCE 0.11); it has been probably just overlooked.
---
I've looked into the "synce-core-0.17.tar.gz" tarball from the current synce-core, and it looks like the "pls", "pcp" and other utilities are now there.
Don't know for sure whether any other software packages are needed for it to work.
---
Probably, this PPA needs to be checked, to avoid packaging / compiling SynCE from scratch in Debian (maybe the packages can even be built with pbuilder without modifications).
---
Stay in touch for updates...
Last edited by bobbib; 12-13-2015 at 09:48 PM.
Reason: update
I do not have much knowledge but will try to compile it in Jessie.
Feel free to play; anyway, I wouldn't recommend installing too much software via the "make install" from root, since that can leave lots of garbage in the system; it's better to compile in a home directory... or use some discardable environment (chroot or VM solutions like VirtualBox, QEMU etc.)
---
Good news: "synce-core" source package from the aforementioned Ubuntu PPA, namely version for Ubuntu Trusty (" 0.17-0ubuntu0~ppa1~trusty2 "), compiles well on Debian with a little modification (replacing "dhcp3-client" with "isc-dhcp-client" in Build-Depends).
Last edited by bobbib; 12-15-2015 at 09:57 PM.
Reason: update
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38
Original Poster
Rep:
Quote:
Originally Posted by bobbib
Feel free to play; anyway, I wouldn't recommend installing too much software via the "make install" from root, since that can leave lots of garbage in the system; it's better to compile in a home directory... or use some discardable environment (chroot or VM solutions like VirtualBox, QEMU etc.)
---
Good news: "synce-core" source package from the aforementioned Ubuntu PPA, namely version for Ubuntu Trusty (" 0.17-0ubuntu0~ppa1~trusty2 "), compiles well on Debian with a little modification (replacing "dhcp3-client" with "isc-dhcp-client" in Build-Depends).
I installed the equipment to perform the compilation: apt-get install build-essential
apt-get install kernel-package
apt-get install module-assistant
then perform the extraction of 'gz' and between the appropriate folder. tar xvfz synce-core-0.17.tar.gz
cd synce-core-0.17 First attempt
./configure Answered:
Quote:
configure: error: in `/synce-core-0.17 ':
configure: error: The pkg-config script Could not be found or is too old. Make sure it
or is in your PATH environment Variable Set the PKG_CONFIG to the full
path to pkg-config.
Alternatively, you May Set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http: //pkg-config.fr...edesktop.org/>.
See `config.log 'for more details
'apt-get install pkg-config' Second attempt
Quote:
configure: error: Package requirements (glib-2.0 >= 2.7, gobject-2.0 >= 2.4, gio-2.0 >= 2.22, gio-unix-2.0 >= 2.22) were not met:
No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gio-2.0' found
No package 'gio-unix-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Search and find the required packages: apt-get install libgtk2.0-dev
third attempt
Quote:
configure: error: udev support requested but D-Bus could not be found
and I can not do more research, but the fact is that now if you do not know how to
continue.
In your note read: "Little modification (Replacing" dhcp3-client "with" isc-dhcp-client "in Build-Depends)."
It is very interesting!
I look in the file "configure" the expression "dhcp3-client" to replace him, but found nothing,
that file is?
Thanks for your help and advice.
Last edited by barnarasta; 12-16-2015 at 04:53 PM.
barnarasta, now you see how complex the manual compilation process can be
Fortunately, when someone has prepared a package for Debian, it is no longer necessary.
---
Regarding the modifications, I didn't mean an upstream tarball from here;
instead, I mean a source package from this SynCE PPA (PPA is for personal package archives, unofficial Ubuntu repositories). To get the "synce-core" source package from there:
click on the "synce-core" package name (currently, it's "synce-core - 0.17-0ubuntu0~ppa1~trusty2");
download the source package files from the opened page ("synce-core_0.17.orig.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.debian.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc").
You can notice there are also some binary packages there (*.deb), but they are built for Ubuntu Trusty and probably not compatible with Debian Jessie.
---
Source package modification.
Place the downloaded files ("synce-core_0.17.orig.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.debian.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc") together in a dedicated folder (e. g., /home/user/synce-core), to be safe.
Install dpkg-dev:
# apt-get install dpkg-dev
$ cd /home/user/synce-core
Unpack the source package (will create a directory named "synce-core-0.17"):
$ dpkg-source -x synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc
Edit build-depends (replace "dhcp3-client" with "isc-dhcp-client") in "syncecore/debian/control" and add a new entry into "synce-core-0.17/debian/changelog", to state it's a new package version; here's an intuitive diff:
Build an updated version of the source package (and notice the newly created files: "synce-core_0.17-0.1.debian.tar.xz" & "synce-core_0.17-0.1.dsc"):
$ dpkg-source -b synce-core-0.17
---
Preparing the build system (on Debian Jessie; needs access to Debian repositories, e. g., your default Debian Internet mirror).
Install pbuilder:
# apt-get install pbuilder
Create a configuration file ("/root/.pbuilderrc"; needs superuser privileges) with the following contents:
Code:
# Target distribution
DISTRIBUTION=jessie
# By default, pbuilder uses "/var/cache/pbuilder/aptcache" for package cache;
# why not try reusing the packages from the system's APT cache?
APTCACHE=/var/cache/apt/archives
Create the base build image:
# pbuilder create
In case you've created the base image long time ago, update it:
# pbuilder update
---
Actual binary packages building process from the source package.
Go to the directory where your source package's files ("synce-core_0.17.orig.tar.gz", "synce-core_0.17-0.1.debian.tar.xz", "synce-core_0.17-0.1.dsc") are stored:
$ cd /home/user/synce-core
Start the builder:
# pbuilder build synce-core_0.17-0.1.dsc
Wait...
If everything finishes well, you'll see a bunch of new files:
$ ls /var/cache/pbuilder/result
The highlighted ones are binaries; the rest is a repack of the source package, including a description of changes.
---
Then, you'll probably need to test installing some of those packages (the last command should install the missing dependencies, if any; it can also remove some packages with non-satisfied depends):
$ cd /var/cache/pbuilder/result
# dpkg -i libsynce0_0.17-0.1_amd64.deb synce-dccm_0.17-0.1_amd64.deb synce-tools_0.17-0.1_amd64.deb
# apt-get -f install
---
And finally, you can try testing the device connectivity etc.
Last edited by bobbib; 12-17-2015 at 09:28 PM.
Reason: update
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38
Original Poster
Rep:
Thanks for all this information, I'm really learning a lot.
Problems arose to build new package because the file format "changelog".
Summary of the activity:
1) Make the working directory <=============OK
/home/user/synce-core
-------------------------------------- 2) Download Files in /home/user/synce-core <==== OK
synce-core_0.17-0ubuntu0~ppa1~trusty2.debian.tar.gz
synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc
synce-core_0.17.orig.tar.gz
--------------------------------------
3) Install ,configure pbuilder and create <====== OK
-------------------------
4) dpkg-source -x synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc
------------- It is self-created synce-core-0.17 <=============== OK
5) /home/user/synce-core/synce-core-0.17/debian file control
replacing 'dhcp3-client" ==> "isc-dhcp-client", lines 5 and 97 <=========== OK
---------------------------------------------
6) /home/user/synce-core/synce-core-0.17/debian file changelog
--------------------------------------------------------
7) Build an updated source package
# cd /home/user/synce-core
# dpkg-source -b synce-core-0.17
It has these errors:
Quote:
parsechangelog/debian: warning: synce-core-0.17/debian/changelog(l6): line header have invalid format.
LINE: Section: libs
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l7): line header have invalid format.
LINE: Priority: optional
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l8): line header have invalid format.
LINE: Maintainer: Mark Ellis <mark@mpellis.org.uk>
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l9): line header have invalid format.
LINE: -Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, dhcp3-client, libgudev-1.0-dev, udev, doxygen
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l10): line header have invalid format.
LINE: +Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, isc-dhcp-client, libgudev-1.0-dev, udev, doxygen
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l6): line header have invalid format.
LINE: Section: libs
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l7): line header have invalid format.
LINE: Priority: optional
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l8): line header have invalid format.
LINE: Maintainer: Mark Ellis <mark@mpellis.org.uk>
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l9): line header have invalid format.
LINE: -Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, dhcp3-client, libgudev-1.0-dev, udev, doxygen
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l10): line header have invalid format.
LINE: +Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, isc-dhcp-client, libgudev-1.0-dev, udev, doxygen
I did the same order with the original 'changelog' and also gave the same type of error.
Maybe Jessie format for CHANGELOG has changed. ???
BTW, just to make sure everyone understands this forum thread correctly: command lines starting with "$" are meant to be run from an ordinary users; "#" means superuser ("root"), and are supposed to be executed with "sudo" (or switching to the root user with "su" at first and then running that command).
---
Oh, I've missed one instance of "dhcp3-client" to replace; thanks for noticing!
I haven't tried to install the built packages, so I've missed something.
So I've just updated the long post
---
Yes, you can create new Debian package changelog entries with "debchange" ("dch"). It's included in the "devscripts" Debian package. Great find
Last edited by bobbib; 12-17-2015 at 09:28 PM.
Reason: update
* New upstream release
* Switch to dpkg-source 3.0 (quilt) format
* add documentation package synce-doc
* remove build-dep on dbus-glib, depend on glib >= 2.26 and libdbus-1-dev,
building with GDBus instead of dbus-glib
* remove dh_pycentral in favour of dh_python2
* add python dependency to synce-tools and synce-bluetooth
* breaks synce-connector-*
* bump standards-version to 3.9.3.0
* correct bluetooth init script
* add debhelper token to maintainer scripts, and check for errors
* add build-arch and build-indep targets, add rules to binary-indep
target for documentation
* fix dccm package mainainer scripts
-- Mark Ellis <mark@mpellis.org.uk> Thu, 25 Jul 2013 16:37:26 +0100
* Initial full release
* remove dep on libgnet, now use gio
* rename synce-connector to synce-dccm, synce-connector-bluetooth
to synce-bluetooth
* don't install libtool .la files
-- Mark Ellis <mark@mpellis.org.uk> Wed, 30 May 2012 15:38:46 +0100
It seems that everything is in place,
but I can not verify it completely because I have no PDA now at this time, to test the communication.
On Monday I hope to get them to leave me one PDA to the ultimate test.
Last edited by barnarasta; 12-18-2015 at 01:46 PM.
Reason: sintax
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.