Re: [Synalist] Synaser and USB serial ports
> Hi. I have written a program using Free Pascal / Lazarus which uses > Synaser to communicate with a ham radio via a serial port at > 4800/8/N/2. It is running under Windows XP SP2. When the radio is > connected via a regular serial port it works fine. When connected > using a USB to serial adapter (Prolific chipset, tried the original Major problem of USB adapters is timing. Serial port is stream based with precize timing. But USB is packed based. Conversion from serial to USB made some timing issues, what can be resolved if connected device have some type of handshaking. (Best is HW, of course!) However your communication speed is slow, I not see reason why you have this problem. I am using same speed on USB absed serial ports too, and I never see problem. But hard to say where can be problem, because I not know your communication protocol, etc. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
[Synalist] Synaser and USB serial ports
Hi. I have written a program using Free Pascal / Lazarus which uses Synaser to communicate with a ham radio via a serial port at 4800/8/N/2. It is running under Windows XP SP2. When the radio is connected via a regular serial port it works fine. When connected using a USB to serial adapter (Prolific chipset, tried the original unsigned driver supplied with the adapter and the latest signed XP drivers from Prolific website) at the same speed I can see from the debug trace monitor built into my application that the data being received is corrupted. I have a timer loop that is executed twice a second and runs the following: if SerialPort.InstanceActive then data := SerialPort.RecvPacket(0); This 'data' is corrupt when it is received. The first couple of characters are usually OK but the rest is gobbledygook, and the received data is usually a different length from what it should be. Is the problem with my code, the adapter or its drivers? If the adapter is the problem, can anyone tell me how to identify one that will work, because buying them at random could be expensive (most manufacturers don't even specify the chipset.) -- Julian G4ILO's Shack: www.g4ilo.com - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser and USB serial ports
Mark Rogers wrote: > I'm not ready to take the blame yet, much easier to blame the drivers :-) > OK, time for me to put my hand up... I had a lot of problems. Partly because I was not properly terminating my comms thread while testing the code and that was often leaving the port tied up. Partly because I was trying to use hardware handshaking which was not supported by the hardware. Partly because I was trying to set Stop Bits to (integer)1 not SB1 which has integer value 0. Partly because of lots of similar reasons which all definitely qualify as PEBKAC Anyway, thanks for the help here which helped me to rule out many possible causes so that I could find the cause of my stupidity... -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555 Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser and USB serial ports
Jon wrote: > Ah yes, the good old PEBKAC issue > (http://en.wikipedia.org/wiki/Pebcak). Get's me every time ;-) I'm not ready to take the blame yet, much easier to blame the drivers :-) I mostly use Linux now, so I forget that you can often fix problems in Windows with a reboot! > Seriously though, to check the port names, examine the registry branch: > > HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM > That's useful, thanks. Presumably synaser and portmon look in different places if they're getting different answers? -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555 Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser and USB serial ports
> > There was definitely something odd going on > but it seems to have passed now. > Ah yes, the good old PEBKAC issue (http://en.wikipedia.org/wiki/Pebcak). Get's me every time ;-) Seriously though, to check the port names, examine the registry branch: HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM Jon ___ Yahoo! For Good helps you make a difference http://uk.promotions.yahoo.com/forgood/ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser and USB serial ports
In addition to what I just wrote in reply to Lukas' email: Jon wrote: > Are you sure that the port is not in use? PortMon is always my first > troubleshooting tool. > If I shut down my software and used the software supplied by the hardware manufacturer (ie the software to talk to the thing at the end of the serial cable, not from the USB-serial device manufacturer) it connected fine and showed the connnection in portmon. If I shut that down and switched to my software it failed. The manufacturer's software is a simple terminal app, it doesn't stay resident or install any services that hold the port open (in any case, had it done so portmon would not have been able to connect to the port either). There was definitely something odd going on but it seems to have passed now. > Did you know that you can change the COM port? Here is how to do it in > Windows XP: > I did know, but thanks anyway. My application will need 5 ports (only one connected so far) so setting them all in the 1-4 range wouldn't be an option, what I really needed was confirmation (of the obvious) that it should work just specifying "COM5", and it does today. We'll see what tomorrow brings :-) -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555 Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser and USB serial ports
Lukas Gebauer wrote: > No, here are no reason for this. I am using Synaser with USB emulated > serials, I am using it for RS-895 too. > I thought it should be OK, it's nothing particularly unusual. > What exactly is failing? Connect method or Config method? > I can't remember now, because I rebooted the PC and it now works. All I can say is that I was trying to connect to the port, configure it, then send some data, and portmon showed no evidence that I'd attempted to connect. I tried to change the device to COM2 in device manager, but something obviously wasn't right because portmon still showed COM5 (and no COM2), so this morning I rebooted and it shows COM2 which works (well portmon shows a connection being made). So I changed back to COM5, and without a reboot portmon shows the correct port and my software without any changes connects to it. Maybe something not properly installed at a driver level. Note: This project will need 5 serial ports so setting a "normal" port number was not a real option. -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555 Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser and USB serial ports
I have used SynaSer successfully with USB serial ports on Windows 95 upwards. No fancy coding, I just followed the basic example. > At the moment I can connect to the real COM1 ok but any > attempts to connect to COM5 are failing (using SysInternals > portmon, it recognises that COM5 exists but when I monitor > it there is no use shown on that port). Are you sure that the port is not in use? PortMon is always my first troubleshooting tool. Did you know that you can change the COM port? Here is how to do it in Windows XP: In device manager, get the properties for the port, then go to Port Settings -> Advanced. You can then check or change the port number allocation (COM1 to COM256!). Hope that helps. ___ Yahoo! For Good helps you make a difference http://uk.promotions.yahoo.com/forgood/ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser and USB serial ports
> Is there any reason why SynaSer would see the port any differently than > Windows? Any suggestions as to what I can try to find the port? No, here are no reason for this. I am using Synaser with USB emulated serials, I am using it for RS-895 too. What exactly is failing? Connect method or Config method? -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
[Synalist] synaser and USB serial ports
I have a Windows application that needs to work with USB serial ports, which will likely appear as COM5 upwards. At the moment I can connect to the real COM1 ok but any attempts to connect to COM5 are failing (using SysInternals portmon, it recognises that COM5 exists but when I monitor it there is no use shown on that port). Is there any reason why SynaSer would see the port any differently than Windows? Any suggestions as to what I can try to find the port? I'm using Windows 2k, the version of SynaSer I downloaded off the website earlier today, and Delphi7, if that helps. NB: The serial port is RS-485 not RS-232, but as far as I understand it shouldn't look any different to the O/S or my software. I thought I'd best mention it anyway though. -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555 Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public