Re: [SailfishDevel] No QSerialPort
Hi Philippe From this and other threads going back to the very early days of this mailing list it is very clear that Wim wants to connect an external GPS unit to his Jolla via cable (usb / serial) for use in the cockpit of a glider. HtH Chris Zitat von Philippe De Swert philippe.desw...@jolla.com: Hi, As this is getting very confused and we are mixing connecting devices to the Jolla and connecting the Jolla to the pc. So which one is it? On 26/03/14 22:11, Wim de Vries wrote: Thank you guys. Indeed devel-su works. I have attached the devices, but the first problem is that the connection does not supply power (the devices stay dead). So you connected some device to your Jolla? As far as I know, a usb connection should always have power, but it is a bit beyond my kowledge. Do I need another plug? This is not true. All depends on context, what you plug into what etc... In general if you plug in a device into a USB host (like your average USB port on your pc/laptop) you should be able to expect power from it. In the case of a phone this is usually a USB device, so it expects power. And in the OTG case it gets complicated. Here the device is able to switch between host and device mode. And will supply power if it is playing host. On other linux/MeeGo systems there was always power... and dmesg would give: [ 31.959468] usb 3-2.1.4: new full-speed USB device number 7 using xhci_hcd [ 31.977423] usb 3-2.1.4: New USB device found, idVendor=10c4, idProduct=ea60 [ 31.977434] usb 3-2.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 31.977440] usb 3-2.1.4: Product: CP2102 USB to UART Bridge Controller [ 31.977445] usb 3-2.1.4: Manufacturer: Silicon Labs [ 31.977450] usb 3-2.1.4: SerialNumber: 0001 [ 31.992330] usbcore: registered new interface driver usbserial [ 31.992343] usbcore: registered new interface driver usbserial_generic [ 31.992355] USB Serial support registered for generic [ 31.992361] usbserial: USB Serial Driver core [ 31.992942] usbcore: registered new interface driver cp210x [ 31.992955] USB Serial support registered for cp210x [ 31.992991] cp210x 3-2.1.4:1.0: cp210x converter detected [ 32.063473] usb 3-2.1.4: reset full-speed USB device number 7 using xhci_hcd [ 32.079934] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc38c0 [ 32.079947] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc3880 [ 32.080450] usb 3-2.1.4: cp210x converter now attached to ttyUSB0 Use Qserialport on ttyUSB0 and ready you are. This looks like plugging in a serial device into a PC. Do you want your Jolla to expose a serial port? That is definitely possible and easy. Do you want your Jolla to read data from some serial port with a serial to USB adapter then you're getting in a very complicated world. Unless you can explain what you actually want there is little we can do to help. Regards, Philippe ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No QSerialPort
Thanks Chris and others, Indeed I need to use an external USB GPS and some other USB sensors. All communicate via serial ports. I gave the dmesg output txt as it is on other linux/MeeGo devices to show that I am not talking rocket science (simply plug in and use ttyUSB0 for (qt)serial communication). Never heard about OTG, and never had to use it for my app. Don't know why is there a difference between Sailfisch and MeeGo. My questions are now: Can I enable power on the USB port? (escape would be a battery powered USB hub) Will Sailfish automatically set a up a /dev/ttyUSBsomething when the device (like an external GPS) is plugged in? I will rephrase my question about adding the Qtserialport as a more general question on howto add Qt modules (also in the final package). Thanks. r wim On 03/27/2014 07:06 AM, christopher.l...@thurweb.ch wrote: Hi Philippe From this and other threads going back to the very early days of this mailing list it is very clear that Wim wants to connect an external GPS unit to his Jolla via cable (usb / serial) for use in the cockpit of a glider. HtH Chris Zitat von Philippe De Swert philippe.desw...@jolla.com: Hi, As this is getting very confused and we are mixing connecting devices to the Jolla and connecting the Jolla to the pc. So which one is it? On 26/03/14 22:11, Wim de Vries wrote: Thank you guys. Indeed devel-su works. I have attached the devices, but the first problem is that the connection does not supply power (the devices stay dead). So you connected some device to your Jolla? As far as I know, a usb connection should always have power, but it is a bit beyond my kowledge. Do I need another plug? This is not true. All depends on context, what you plug into what etc... In general if you plug in a device into a USB host (like your average USB port on your pc/laptop) you should be able to expect power from it. In the case of a phone this is usually a USB device, so it expects power. And in the OTG case it gets complicated. Here the device is able to switch between host and device mode. And will supply power if it is playing host. On other linux/MeeGo systems there was always power... and dmesg would give: [ 31.959468] usb 3-2.1.4: new full-speed USB device number 7 using xhci_hcd [ 31.977423] usb 3-2.1.4: New USB device found, idVendor=10c4, idProduct=ea60 [ 31.977434] usb 3-2.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 31.977440] usb 3-2.1.4: Product: CP2102 USB to UART Bridge Controller [ 31.977445] usb 3-2.1.4: Manufacturer: Silicon Labs [ 31.977450] usb 3-2.1.4: SerialNumber: 0001 [ 31.992330] usbcore: registered new interface driver usbserial [ 31.992343] usbcore: registered new interface driver usbserial_generic [ 31.992355] USB Serial support registered for generic [ 31.992361] usbserial: USB Serial Driver core [ 31.992942] usbcore: registered new interface driver cp210x [ 31.992955] USB Serial support registered for cp210x [ 31.992991] cp210x 3-2.1.4:1.0: cp210x converter detected [ 32.063473] usb 3-2.1.4: reset full-speed USB device number 7 using xhci_hcd [ 32.079934] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc38c0 [ 32.079947] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc3880 [ 32.080450] usb 3-2.1.4: cp210x converter now attached to ttyUSB0 Use Qserialport on ttyUSB0 and ready you are. This looks like plugging in a serial device into a PC. Do you want your Jolla to expose a serial port? That is definitely possible and easy. Do you want your Jolla to read data from some serial port with a serial to USB adapter then you're getting in a very complicated world. Unless you can explain what you actually want there is little we can do to help. Regards, Philippe ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No QSerialPort
Am 27.03.2014 10:11, schrieb Wim de Vries: Thanks Chris and others, Indeed I need to use an external USB GPS and some other USB sensors. All communicate via serial ports. I gave the dmesg output txt as it is on other linux/MeeGo devices to show that I am not talking rocket science (simply plug in and use ttyUSB0 for (qt)serial communication). Never heard about OTG, and never had to use it for my app. Then read http://en.wikipedia.org/wiki/USB_OTG or use a search engine or stay uninformed and keep wondering why it does not work what you want to achieve. ;-) Don't know why is there a difference between Sailfisch and MeeGo. My questions are now: Can I enable power on the USB port? (escape would be a battery powered USB hub) No, not from an app. Might be possible by compiling you own kernel or kernel modul. Will Sailfish automatically set a up a /dev/ttyUSBsomething when the device (like an external GPS) is plugged in? No, not at the moment, because it does not support USB OTG! I will rephrase my question about adding the Qtserialport as a more general question on howto add Qt modules (also in the final package). Thanks. r wim On 03/27/2014 07:06 AM, christopher.l...@thurweb.ch wrote: Hi Philippe From this and other threads going back to the very early days of this mailing list it is very clear that Wim wants to connect an external GPS unit to his Jolla via cable (usb / serial) for use in the cockpit of a glider. HtH Chris Zitat von Philippe De Swert philippe.desw...@jolla.com: Hi, As this is getting very confused and we are mixing connecting devices to the Jolla and connecting the Jolla to the pc. So which one is it? On 26/03/14 22:11, Wim de Vries wrote: Thank you guys. Indeed devel-su works. I have attached the devices, but the first problem is that the connection does not supply power (the devices stay dead). So you connected some device to your Jolla? As far as I know, a usb connection should always have power, but it is a bit beyond my kowledge. Do I need another plug? This is not true. All depends on context, what you plug into what etc... In general if you plug in a device into a USB host (like your average USB port on your pc/laptop) you should be able to expect power from it. In the case of a phone this is usually a USB device, so it expects power. And in the OTG case it gets complicated. Here the device is able to switch between host and device mode. And will supply power if it is playing host. On other linux/MeeGo systems there was always power... and dmesg would give: [ 31.959468] usb 3-2.1.4: new full-speed USB device number 7 using xhci_hcd [ 31.977423] usb 3-2.1.4: New USB device found, idVendor=10c4, idProduct=ea60 [ 31.977434] usb 3-2.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 31.977440] usb 3-2.1.4: Product: CP2102 USB to UART Bridge Controller [ 31.977445] usb 3-2.1.4: Manufacturer: Silicon Labs [ 31.977450] usb 3-2.1.4: SerialNumber: 0001 [ 31.992330] usbcore: registered new interface driver usbserial [ 31.992343] usbcore: registered new interface driver usbserial_generic [ 31.992355] USB Serial support registered for generic [ 31.992361] usbserial: USB Serial Driver core [ 31.992942] usbcore: registered new interface driver cp210x [ 31.992955] USB Serial support registered for cp210x [ 31.992991] cp210x 3-2.1.4:1.0: cp210x converter detected [ 32.063473] usb 3-2.1.4: reset full-speed USB device number 7 using xhci_hcd [ 32.079934] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc38c0 [ 32.079947] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc3880 [ 32.080450] usb 3-2.1.4: cp210x converter now attached to ttyUSB0 Use Qserialport on ttyUSB0 and ready you are. This looks like plugging in a serial device into a PC. Do you want your Jolla to expose a serial port? That is definitely possible and easy. Do you want your Jolla to read data from some serial port with a serial to USB adapter then you're getting in a very complicated world. Unless you can explain what you actually want there is little we can do to help. Regards, Philippe ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No QSerialPort
Hi Wim Sailfisch made me smile ... Grüsse Chris Zitat von Wim de Vries wsvr...@xs4all.nl: Thanks Chris and others, Indeed I need to use an external USB GPS and some other USB sensors. All communicate via serial ports. I gave the dmesg output txt as it is on other linux/MeeGo devices to show that I am not talking rocket science (simply plug in and use ttyUSB0 for (qt)serial communication). Never heard about OTG, and never had to use it for my app. Don't know why is there a difference between Sailfisch and MeeGo. My questions are now: Can I enable power on the USB port? (escape would be a battery powered USB hub) Will Sailfish automatically set a up a /dev/ttyUSBsomething when the device (like an external GPS) is plugged in? I will rephrase my question about adding the Qtserialport as a more general question on howto add Qt modules (also in the final package). Thanks. r wim On 03/27/2014 07:06 AM, christopher.l...@thurweb.ch wrote: Hi Philippe From this and other threads going back to the very early days of this mailing list it is very clear that Wim wants to connect an external GPS unit to his Jolla via cable (usb / serial) for use in the cockpit of a glider. HtH Chris Zitat von Philippe De Swert philippe.desw...@jolla.com: Hi, As this is getting very confused and we are mixing connecting devices to the Jolla and connecting the Jolla to the pc. So which one is it? On 26/03/14 22:11, Wim de Vries wrote: Thank you guys. Indeed devel-su works. I have attached the devices, but the first problem is that the connection does not supply power (the devices stay dead). So you connected some device to your Jolla? As far as I know, a usb connection should always have power, but it is a bit beyond my kowledge. Do I need another plug? This is not true. All depends on context, what you plug into what etc... In general if you plug in a device into a USB host (like your average USB port on your pc/laptop) you should be able to expect power from it. In the case of a phone this is usually a USB device, so it expects power. And in the OTG case it gets complicated. Here the device is able to switch between host and device mode. And will supply power if it is playing host. On other linux/MeeGo systems there was always power... and dmesg would give: [ 31.959468] usb 3-2.1.4: new full-speed USB device number 7 using xhci_hcd [ 31.977423] usb 3-2.1.4: New USB device found, idVendor=10c4, idProduct=ea60 [ 31.977434] usb 3-2.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 31.977440] usb 3-2.1.4: Product: CP2102 USB to UART Bridge Controller [ 31.977445] usb 3-2.1.4: Manufacturer: Silicon Labs [ 31.977450] usb 3-2.1.4: SerialNumber: 0001 [ 31.992330] usbcore: registered new interface driver usbserial [ 31.992343] usbcore: registered new interface driver usbserial_generic [ 31.992355] USB Serial support registered for generic [ 31.992361] usbserial: USB Serial Driver core [ 31.992942] usbcore: registered new interface driver cp210x [ 31.992955] USB Serial support registered for cp210x [ 31.992991] cp210x 3-2.1.4:1.0: cp210x converter detected [ 32.063473] usb 3-2.1.4: reset full-speed USB device number 7 using xhci_hcd [ 32.079934] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc38c0 [ 32.079947] xhci_hcd :00:14.0: xHCI xhci_drop_endpoint called with disabled ep 8801debc3880 [ 32.080450] usb 3-2.1.4: cp210x converter now attached to ttyUSB0 Use Qserialport on ttyUSB0 and ready you are. This looks like plugging in a serial device into a PC. Do you want your Jolla to expose a serial port? That is definitely possible and easy. Do you want your Jolla to read data from some serial port with a serial to USB adapter then you're getting in a very complicated world. Unless you can explain what you actually want there is little we can do to help. Regards, Philippe ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No QSerialPort
Den 27. mars 2014 10:11, skrev Wim de Vries: Don't know why is there a difference between Sailfisch and MeeGo. I don't think there is. You're running on different hardware, though; the N900 and N9 did have the wiring to support USB OTG. Can I enable power on the USB port? (escape would be a battery powered USB hub) No, Jonni already gave you a link which answered this. The Jolla just doesn't have the necessary wires. Will Sailfish automatically set a up a /dev/ttyUSBsomething when the device (like an external GPS) is plugged in? Perhaps, if you compile the necessary kernel modules, assuming you can power up the devices without power from the Jolla. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No QSerialPort
Actually support for QtSerialPort could be valid on non Jolla devices. For example if we get sailfishos going on BeagleBoard Black? or Android devices with USB OTG support... But I can understand if Jolla does not prioritize this right now, but it should atleast be available as extra repo or in mer-core or something? Regards Mikael On Tuesday 25 March 2014 09.09.15 Jonni Rainisto wrote: Hi, I hope that you are aware that USB OTG is not supported, so you cannot attach USB serial devices to Jolla? Or are you building yourself a custom TOH with USB host support and plan to use i2c serial ports? In that case you can just compile QtSerialPort code yourself (I've tested that it compiles just fine inside the SDK) and bundle that inside your application. You might want to consider BT devices and using RFCOMM over that as that would be much simpler approach. br, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of wsvries [wsvr...@xs4all.nl] Sent: Tuesday, March 25, 2014 10:46 AM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] No QSerialPort Thanks, Alejandro Exojo schreef op 2014-03-24 21:53: El Sunday 23 March 2014, Wim de Vries escribió: So, it should be available in Sailfish. No, is available inside Qt, not necessarily provided for Sailfish. I thought Sailfish would include all modules of Qt Have to recheck the errors, but it looked like the libs and headers were not there (QtSerialPort/QtSerialPort no such file). I already told you that you might consider copying the module to your application and bundle it. Or see if Qt Serial port is packaged for mer, and ask for inclusion (or package if is not). Any Qt addon is a safe bet since qt- project has some serious commitment to ABI/API stability. I did this on the notebook Qt5.1 versions of my app. (even a boost-serial version before QSerial) But doing this with Sailfish is far more complex: it has to be available on the Mer VM and the Sailfish VM (and later Sailfish device). I am not experienced with VMs. The nice thing about using Qt is not having to worry about the implementation (and updates) of the modules. (The Sailfish (Target) manager is also not able to find the serialport module). I need all the time for porting to Sailfish, esp. C++GUI2Qml ;-( So, support for this module is a must for my app. Or just explain what serial port you want to use and for what reason, so Sailors see the need to do the work themselves... and satisfy my curiosity. ;-) aircraft navigation+more app: USB/serial device1: -external GPS USB/serial device2: -air press sensor (altitude) -humidity sensor -temp sensor No rocket science, works flawless on ubuntu notebook. r wim ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list -- Skickat från Lenovo Thinkpad X230 running Kubuntu desktop ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No QSerialPort
Thanks. Philippe De Swert schreef op 2014-03-27 14:53: On 27/03/14 15:42, wsvries wrote: Thanks for the answers. And yes, Herald, I did read some stuff on the OTG. It's just that I had been using OTG on the other platforms (ubuntu/meego) without noticing it. You probably have not been using OTG on those platforms. There are no phones/tablets out there with Ubuntu (apart from a few you can flash yourself) that have OTG. Actually very few mobile devices actually support it, and even then most of those not out of the box but with hacks and mods for the power etc... Here I mean the ubuntu note/netbooks and the WeTab tablet. And for the fully functional 3D version I will have to switch to ubuntu phone. Several devices with OTG up there. Indeed some Ubuntu supported phones do, with mods most of the time. Although they are more exception than rule. Saw at least galaxy nexus, nexus7 and 10, but all to be flashed. Otoh there has been experimenting going on the Jolla to support host mode. (Which is OTG like, in the sense that the port gets manually switched and it does not deliver power unlike a real OTG port.) Power could be supplied via a battery powered hub, I guess. https://github.com/nemomobile/usb-moded/commit/44ebf5d79606a2ecb305e58ae71450dfe8853d16 More experimenting with this is expected to happen on some coming Jolla hack day to see if it can be made to work. I'll certainly keep a close look. Regards, Philippe ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] How to make vCard
How to generate vCard for contact? What is preferred way to do it (if many)? ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to make vCard
Den 27. mars 2014 18:33, skrev Andrey Kozhevnikov: How to generate vCard for contact? What is preferred way to do it (if many)? If you're using QtContacts, then it's best to also use QtVersit. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to make vCard
Thanks, found it. QVersitWriter + QVersitContactExporter 28.03.2014 06:29, Ove Kåven пишет: Den 27. mars 2014 18:33, skrev Andrey Kozhevnikov: How to generate vCard for contact? What is preferred way to do it (if many)? If you're using QtContacts, then it's best to also use QtVersit. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list