* RE: PL2303 Driver Issue @ 2012-10-06 18:33 Reddy Kaveri, Praveen Kumar 2012-10-07 14:47 ` Greg KH 0 siblings, 1 reply; 4+ messages in thread From: Reddy Kaveri, Praveen Kumar @ 2012-10-06 18:33 UTC (permalink / raw) To: linux-serial@vger.kernel.org Hi, I am using Telxon PTC-710 device in linux environment and I am using RS232 Serial to USB converter. When I connect the device to USB port it is detecting and showing in the system log as "attached to ttyUSB0". I have written a java program to display all the available ports. But this program is displaying only ttyS0 &ttyS1. I have tried to set all permissions to the user as well as to port. Please help me if I am missing any configuration related to this driver. I look forward to hearing from you. Thanks In advance Regards, Praveen Kumar Reddy K Hewlett-Packard Company #101, 1035 64 Ave SE ,Calgary, AB, T2H 2J7, CANADA +1 403 692 7914 / Tel +1 403 619 8242 / Mobile praveen-kumar.reddy-kaveri@hp.com / Email -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PL2303 Driver Issue 2012-10-06 18:33 PL2303 Driver Issue Reddy Kaveri, Praveen Kumar @ 2012-10-07 14:47 ` Greg KH 2012-10-12 22:15 ` Reddy Kaveri, Praveen Kumar 0 siblings, 1 reply; 4+ messages in thread From: Greg KH @ 2012-10-07 14:47 UTC (permalink / raw) To: Reddy Kaveri, Praveen Kumar; +Cc: linux-serial@vger.kernel.org On Sat, Oct 06, 2012 at 06:33:19PM +0000, Reddy Kaveri, Praveen Kumar wrote: > Hi, > > I am using Telxon PTC-710 device in linux environment and I am using > RS232 Serial to USB converter. When I connect the device to USB port > it is detecting and showing in the system log as "attached to > ttyUSB0". I have written a java program to display all the available > ports. But this program is displaying only ttyS0 &ttyS1. I have tried > to set all permissions to the user as well as to port. Please help me > if I am missing any configuration related to this driver. You are going to have to modify your userspace program to know to look for the ttyUSBX devices as well. There's nothing the kernel can do about this. As you wrote the program, how are you getting the list of serial devices in the system? greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: PL2303 Driver Issue 2012-10-07 14:47 ` Greg KH @ 2012-10-12 22:15 ` Reddy Kaveri, Praveen Kumar 2012-10-12 22:30 ` Alan Cox 0 siblings, 1 reply; 4+ messages in thread From: Reddy Kaveri, Praveen Kumar @ 2012-10-12 22:15 UTC (permalink / raw) To: Greg KH; +Cc: linux-serial@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 2177 bytes --] Hi Greg, Thanks for your assistance. I am using RXTXComm API for getting list of serial ports and available USB ports. I have attached the java code for your kind glance. For some of the point of sales machines the telxon device is working. If the connection is successful, the following information is displaying. Bus 001 Device 003: ID 0557:2008 ATEN International Co. Ltd. Language IDs: none (invalid length string descriptor 63; len=7) If the connection is failed, the following information is displaying. Bus 001 Device 002: ID 0557:2008 ATEN International Co. Ltd. string descriptor 1 invalid (00 00; len=52) string descriptor 2 invalid (00 00; len=48) I am less proficient in linux. So kindly help me in resolving this issue. What does it mean "string descriptor 1 invalid"? Is it causing the problem. If so please let know how to resolve this. Thanks & Regards, Praveen Kumar Reddy K Hewlett-Packard Company #101, 1035 64 Ave SE ,Calgary, AB, T2H 2J7, CANADA +1 403 692 7914 / Tel +1 403 619 8242 / Mobile praveen-kumar.reddy-kaveri@hp.com / Email -----Original Message----- From: Greg KH [mailto:greg@kroah.com] Sent: Sunday, October 07, 2012 8:47 AM To: Reddy Kaveri, Praveen Kumar Cc: linux-serial@vger.kernel.org Subject: Re: PL2303 Driver Issue On Sat, Oct 06, 2012 at 06:33:19PM +0000, Reddy Kaveri, Praveen Kumar wrote: > Hi, > > I am using Telxon PTC-710 device in linux environment and I am using > RS232 Serial to USB converter. When I connect the device to USB port > it is detecting and showing in the system log as "attached to > ttyUSB0". I have written a java program to display all the available > ports. But this program is displaying only ttyS0 &ttyS1. I have tried > to set all permissions to the user as well as to port. Please help me > if I am missing any configuration related to this driver. You are going to have to modify your userspace program to know to look for the ttyUSBX devices as well. There's nothing the kernel can do about this. As you wrote the program, how are you getting the list of serial devices in the system? greg k-h [-- Attachment #2: SerialProgramming.java --] [-- Type: application/octet-stream, Size: 1838 bytes --] package com.marks.builder; import gnu.io.CommPortIdentifier; import gnu.io.PortInUseException; import gnu.io.SerialPort; import gnu.io.UnsupportedCommOperationException; import java.io.IOException; import java.io.OutputStream; import java.util.Enumeration; public class SerialProgramming { static Enumeration portList; static CommPortIdentifier portId; static String messageString = "Hello, world!\n"; static SerialPort serialPort; static OutputStream outputStream; public static void main(String[] args) { portList = CommPortIdentifier.getPortIdentifiers(); while (portList.hasMoreElements()) { portId = (CommPortIdentifier) portList.nextElement(); System.out.println(portId.getName()); if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { if (portId.getName().equals("COM3")) { //if (portId.getName().equals("/dev/term/a")) { try { serialPort = (SerialPort) portId.open("SimpleWriteApp", 2000); } catch (PortInUseException e) {} try { outputStream = serialPort.getOutputStream(); } catch (IOException e) {} try { serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); } catch (UnsupportedCommOperationException e) {} try { outputStream.write(messageString.getBytes()); } catch (IOException e) {} } } } } } ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PL2303 Driver Issue 2012-10-12 22:15 ` Reddy Kaveri, Praveen Kumar @ 2012-10-12 22:30 ` Alan Cox 0 siblings, 0 replies; 4+ messages in thread From: Alan Cox @ 2012-10-12 22:30 UTC (permalink / raw) To: Reddy Kaveri, Praveen Kumar; +Cc: Greg KH, linux-serial@vger.kernel.org On Fri, 12 Oct 2012 22:15:08 +0000 "Reddy Kaveri, Praveen Kumar" <praveen-kumar.reddy-kaveri@hp.com> wrote: > Hi Greg, > > Thanks for your assistance. > > I am using RXTXComm API for getting list of serial ports and available USB ports. I have attached the java code for your kind glance. > For some of the point of sales machines the telxon device is working. Make sure your Java implementation rxtxcomm isn't too stupid to look for USB ports. There were endless problems with some old versions of rxtx with JMRI and USB serial ports. Also as the same user try stty -a </dev/ttyUSB0. That will if it's behaving sensibly dump the terminal state (speed etc) on your screen. If that works you've almost certainly got a problem with your java. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-12 22:25 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-10-06 18:33 PL2303 Driver Issue Reddy Kaveri, Praveen Kumar 2012-10-07 14:47 ` Greg KH 2012-10-12 22:15 ` Reddy Kaveri, Praveen Kumar 2012-10-12 22:30 ` Alan Cox
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox