Re: [Synalist] Synaser and /dev/ttyACM
No, is not possible. Is there a way to catch the setup of the serial interface before and after open it? Up till now we always worked with FTDI and Prolific cables and the data that's been sent by our device can be received correctly. Now we started using a new FPGA that has an Exar USB serial convertor on board. http://www.exar.com/connectivity/uart-and-bridging-solutions/usb- uarts/xr21v1410 It is recognized on Linux as a ttyACM* device and the data is for some reason corrupted, bytes are missing and/or transformed. It however receives data but it does not correspond to what has been sent. Maybe you have just wrong serial communication parameters. Invalid bit count, stop bits, parity, speed... and your data transfer goes out of synchronization. -- Denis Gottardello Sintesi S.r.l. +39.049.9301135 -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser and /dev/ttyACM
On Linux? On 07/08/2014 04:19 PM, Denis wrote: No, is not possible. Is there a way to catch the setup of the serial interface before and after open it? Have you tried strace (on OS X: dtruss with some command line options? I can look them up again if it helps)? This tool proved very helpful in my last quest for serial communication (turned out the OS X driver was buggy in my case). Hope it helps :-) -- Denis Gottardello Sintesi S.r.l. +39.049.9301135 -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser and /dev/ttyACM
On 07/08/2014 05:15 PM, Denis wrote: On Linux? Like I said: `strace` You will probably want to invoke it like `strace -f yourcommandgoeshere yourargument1 yourargument2 ...`. The `-f` makes sure that any child process that are forkes by `yourcommandgoeshere` will be traced aswell. -- Ewald -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser and /dev/ttyACM
Up till now we always worked with FTDI and Prolific cables and the data that's been sent by our device can be received correctly. Now we started using a new FPGA that has an Exar USB serial convertor on board. http://www.exar.com/connectivity/uart-and-bridging-solutions/usb- uarts/xr21v1410 It is recognized on Linux as a ttyACM* device and the data is for some reason corrupted, bytes are missing and/or transformed. It however receives data but it does not correspond to what has been sent. Maybe you have just wrong serial communication parameters. Invalid bit count, stop bits, parity, speed... and your data transfer goes out of synchronization. -- Lukas Gebauer. http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. http://geoget.ararat.cz/ - Geocaching solution -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser, /dev/ttyUSB* unplug problem (Linux)
On 6-12-2012 9:18, Denis Gottardello wrote: Hi everybody. I have a problem with usb serial interfaces on Linux. If a serial device is disconnected from the machine and then reconnected, if before the serial had as name ttyUSB0, then it will assume ttyUSB1. Now the sequence: 1) The device is connected and has name ttyUSB0 2) The program open the serial interface. 3) The device will be unplugged. 4) The program has an exception and close the serial and wait till ttyUSB0 is present. 5) Now the device is reattached but it will be ttyUSB1 For obtain ttyUSB0 I must close the program, unplug and replug. How can I do for obtain ttyUSB0 when the program is running? So your OS is assigning different device names after reattaching? Sounds like a Linux problem, not a programming problem. Look at e.g. udev rules to persistently name the device ttyUSB0 -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser, /dev/ttyUSB* unplug problem (Linux)
So your OS is assigning different device names after reattaching? Sounds like a Linux problem, not a programming problem. Look at e.g. udev rules to persistently name the device ttyUSB0 Yes, you're right. But, read below: 1) Normal condition, /dev/ttyUSB0 2) Program starts and open USB0 3) Unplug USB0 4) Program closes USB0 and deletes the lock in /var/lock 5) Replug USB0 6) Now the serial interface is not USB0 but USB1. How the kernel remembers that USB0 was open from a still running program? The program has close USB0 and removed the lock... Is there another directory - file where there is a lock? Sorry for my bad English. -- Denis Gottardello Sintesi S.r.l. 049.9301135 -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser, /dev/ttyUSB* unplug problem (Linux)
Dear Denis, did you see my solution? You can use ls to get the available ttyUSB devices attached and you can use ls to get the locks in the /var/lock folder. Please review my previous answer and see if that helps. Thanks for your reply. In order to guarantee the right operation of all programs I have implemented a restart of the device when a serial interface will be unplug and replug. -- Denis Gottardello Sintesi S.r.l. 049.9301135 -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SYNASER - port initialization problem
One idea concerning to your problem: AFAIK, Synaser inits COM port by the sequence: - clear DCB - set some fields of DCB - SetCommState(DCB) Not anymore :) whereas typical implementation is - GetCommState(DBC) - change some fields of DCB - SetCommState(DCB) As in synaser, actually. Perhaps you could test what happens if you replace the command FillChar(...) by GetCommState(...) HTH, pf There is a bug (well, an unimplemented part of code) in file synaser.pas, in method TBlockSerial.cpomComportAccessible, in the orphan lock remove part. There is call to Libc.getsid, when not fpc and then removal lock file. in fpc (we are in fpc, arent'we?) there is NOTHING. So, there is already function FPGetSid, so we change the test to: if Libc.getsid(ReadLockFile) = -1 then ... to if FPGetSid(ReadLockFile) = -1 then ... and remove unnecessary ifdef fpc braces (I guess - but I have removed them) - the whole thing begins to work with no(? - so far - so good) hassle. Jakub Husak -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer - synaser.pas (1902, 58) Error: Incompatible types: SHORTINT expected POINTER - Please help
On Jul 20, 2012, at 11:42 AM, Clinton Shane Wright wrote: To whom it may concern, Please can you assist me. I have installed Lazarus IDE in Ubuntu 10.04 and I get this message when I try to compile my application with synaser included inthe libraries of my project. synaser.pas(1902,58) Error: Incompatible types: got ShortInt expected Pointer synaser.pas(2278,41) Warning: range check error while evaluating constants (4294967295 must be between -2147483648 and 2147483647) synaser.pas(2281,36) Hint: Mixing signed expressions and longwords gives a 64bit result synaser.pas(2299) Fatal: There were 1 errors compiling module, stopping I have found some results on google about this error but without any solutions. I am using the following Free Pascal compiler and Lazarus IDE: Free Pascal Compiler 2.7.1 Lazarus: 1.1 I believe that I once ran into this issue with an earlier version of Lazarus and IIRC you might want to try setting the mode of your program to Delphi ... {$mode delphi} Hope this helps. Dave H. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser
On Fri, 27 Jan 2012 11:16:27 +0200, Kocsis Levente kocsis.leve...@gmail.com wrote: When I send data to the device I'm using AnsiString and I'm waiting for AnsiString result. I think that the problem is in the RecvBuffer function, where the buffer pointer is pointing to an AnsiString. How do you get the byte values from that AnsiString? -- Virgo Pärna virgo.pa...@mail.ee -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser detect DCD status?
Does anyone knows if Synaser can detect DCD status of a modem? If so, how can it be done? See the propery TBlockSocket.Carrier -- Lukas Gebauer. http://synapse.ararat.cz/ - Synapse Delphi and Kylix TCP/IP Library http://geoget.ararat.cz/ - Geocaching solution -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer working some on WinCE
A few notes I forgot to include in the readme... Note that in WinCE the COM port name must include : on the end: ser.Connect( 'COM1:'); Also note that this routine doesn't work: GetSerialPortNames -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer update
With the arrival of Delphi 2009 and Lazarus 0.9.26 I made some adjusts to correctly handle binary data ... Basically changing statements String to AnsiString Well done, thank you! Uploaded to SVN as rev. 120. I must made some next modifications into synaser soon, because support for WIN64 in incomplete now. However for D2009 it is IMHO usable now. -- Lukas Gebauer. http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. http://geoget.ararat.cz/ - Geocaching solution -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SYNASER - port initialization problem
What a dumbass I'am. I was debugged read requsts (Timeout) but not the config. It returned 'The parameter is incorrect' and it's clear that the app couldn't work with this settings. Yestreday I tried to change everything but stopbits because the device is set to 1 stopbit - still returning errors. However today morning I changed the stopbits to 2 and it accidentaly started to work. I've no clue why it's working with 2 stopbits in settings of my app and 1 stopbit in settings of that device, but it's working :-) Use predefiend constants for stopbit config. If you are using integer value instead, then use value 0 for 1-stopbit. Value 1 is for 1.5 stopbit! ;-) -- Lukas Gebauer. http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. http://geoget.ararat.cz/ - Geocaching solution -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SYNASER - port initialization problem
Dne Mon, 28 Dec 2009 22:46:45 +0100 Jirka Hudec jurahu...@gmail.com napsal/-a: Since other apps can work proprly even for the first time, the question is why synaser can't ... :-( I've never used Synaser, but your problem resembles me troubles we met while trying recognize connected device with convertor supplied from RS232 port - if we did not set proper polarity of handshake signals correctly first time, it was not possible to make convertor running any more without disconnecting it... One idea concerning to your problem: AFAIK, Synaser inits COM port by the sequence: - clear DCB - set some fields of DCB - SetCommState(DCB) whereas typical implementation is - GetCommState(DBC) - change some fields of DCB - SetCommState(DCB) Perhaps you could test what happens if you replace the command FillChar(...) by GetCommState(...) HTH, pf -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SYNASER - port initialization problem
Thank you for reminding me LastError function - it returns Timeout. Yes, first create, then Connect and then Config. What's most isteresting is that this problem occures only after convertor pluging in. Since there has been some trafic on the converted port, there's no problem at all. However, other apps (not using synaser) can use the converted port immediatedy and actually I have to use this 3rdparty apps to make my app working (as described before). Hope I explained it in better way :-) Since other apps can work proprly even for the first time, the question is why synaser can't ... :-( Timeout as result of Config call? It is't possible. You really got timeout error as result of Config call? Please, write here how you are calling Config. IMHO you have some parameter bad (Stop bits?) and Config failed. Serial port stay in previous state, until some other program configure it correctly. -- Lukas Gebauer. http://synapse.ararat.cz/ - Synapse Delphi and Kylix TCP/IP Library http://geoget.ararat.cz/ - Geocaching solution -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SYNASER - port initialization problem
I'am fascinated by Synaser philosophy and successfully using it to comunacate with DIRIS A20 multimeter over 485-to-USB convertor (based on FTDI chip). But during final testing I've found out that my app isn't able to connect to COM port after first pluging in the convertor and multimeter. However, after another app using COM communication is runned and connected to that COM port, my app is also able to pass though and it fully works. My question is, is there any known issues about initializing a virtual COM port in Synaser after system startup? I'm using latest Synaser and compiling using Delphi6 under Windows XP. Are you setting communication parameters by Config method? Did you test LastError after this method? When Config failed, then serial port leave with previous configuration. -- Lukas Gebauer. http://synapse.ararat.cz/ - Synapse Delphi and Kylix TCP/IP Library http://geoget.ararat.cz/ - Geocaching solution -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SYNASER - port initialization problem
Thank you for reminding me LastError function - it returns Timeout. Yes, first create, then Connect and then Config. What's most isteresting is that this problem occures only after convertor pluging in. Since there has been some trafic on the converted port, there's no problem at all. However, other apps (not using synaser) can use the converted port immediatedy and actually I have to use this 3rdparty apps to make my app working (as described before). Hope I explained it in better way :-) Since other apps can work proprly even for the first time, the question is why synaser can't ... :-( Thank you in advance -Original Message- From: Lukas Gebauer [mailto:gebyl...@mlp.cz] Sent: Monday, December 28, 2009 4:07 PM To: Ararat Synapse Subject: Re: [Synalist] SYNASER - port initialization problem I'am fascinated by Synaser philosophy and successfully using it to comunacate with DIRIS A20 multimeter over 485-to-USB convertor (based on FTDI chip). But during final testing I've found out that my app isn't able to connect to COM port after first pluging in the convertor and multimeter. However, after another app using COM communication is runned and connected to that COM port, my app is also able to pass though and it fully works. My question is, is there any known issues about initializing a virtual COM port in Synaser after system startup? I'm using latest Synaser and compiling using Delphi6 under Windows XP. Are you setting communication parameters by Config method? Did you test LastError after this method? When Config failed, then serial port leave with previous configuration. -- Lukas Gebauer. http://synapse.ararat.cz/ - Synapse Delphi and Kylix TCP/IP Library http://geoget.ararat.cz/ - Geocaching solution -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser compile problem using lazarus cross-arm-wince-win32 complier
That means I can not use synaser under windows mobile system in PDA or Smartphone? Yes. It means - nobody ported Synaser to this platform yet. -- Lukas Gebauer. E-mail: gebau...@mlp.cz http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser compile problem using lazarus cross-arm-wince-win32 complier
If I want to ported Synaser to Wince, what should I do ? You have said that current IFDEFs not identifying this platform correctly. If I modify the IFDEFs to make it can identify Wince correctly, then the synaser can work. Is that true? Or other parts also need modification? I am a learner, I want to have a try. From: gebyl...@mlp.cz To: synalist-public@lists.sourceforge.net Date: Wed, 25 Mar 2009 12:38:16 +0100 Subject: Re: [Synalist] synaser compile problem using lazarus cross-arm-wince-win32 complier That means I can not use synaser under windows mobile system in PDA or Smartphone? Yes. It means - nobody ported Synaser to this platform yet. -- Lukas Gebauer. E-mail: gebau...@mlp.cz http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx-- ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser compile problem using lazarus cross-arm-wince-win32 complier
Lin, I would like to help you port SynaSer to WinCE. I don't have a WinCE device but maybe I can find something to use. Feel free to email me off-list at the email address on my web page. I have started working on an educational project using FreePascal: http://www.turbocontrol.com/monitor.htm Here are the first set of files: http://www.turbocontrol.com/helloworld.htm These files use SynaSer: http://www.turbocontrol.com/simpleserial.htm Regards, Paul Breneman www.TurboControl.com www.TurboControl.com/embeddedfreepascal.htm - Notes on using FreePascal on embedded systems www.TurboControl.com/monitor.htm - Free environment monitoring programs www.TurboControl.com/TPSupport.htm - TurboPower support links Lin Shu wrote: If I want to ported Synaser to Wince, what should I do ? You have said that current IFDEFs not identifying this platform correctly. If I modify the IFDEFs to make it can identify Wince correctly, then the synaser can work. Is that true? Or other parts also need modification? I am a learner, I want to have a try. From: gebyl...@mlp.cz To: synalist-public@lists.sourceforge.net Date: Wed, 25 Mar 2009 12:38:16 +0100 Subject: Re: [Synalist] synaser compile problem using lazarus cross-arm-wince-win32 complier That means I can not use synaser under windows mobile system in PDA or Smartphone? Yes. It means - nobody ported Synaser to this platform yet. -- Lukas Gebauer. -- ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser - parametr is incorrect - error 87
I don't use synaser but I'll toss out a guess: com.config(9600,8,'N',0,false,true); What is the 0 in the function call above? If it's number of stop bits then it probably needs to be either 1 or 2, not 0. -Original Message- From: Tomas Rosa [mailto:tr...@seznam.cz] Sent: Wednesday, February 04, 2009 8:35 AM To: synalist-public@lists.sourceforge.net Subject: [Synalist] Synaser - parametr is incorrect - error 87 Hi, I have problem on some serial ports with synaser. I try to open and configure port, but I receive error %SUBJ%. Code is: com:=TBlockSerial.Create; com.Connect('COM1'); com.config(9600,8,'N',0,false,true); Thx for help. TR -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser - parametr is incorrect - error 87
Well that's fine: It is the stopbit - see the constants in the synaser unit. 0 = one stop bit 1 = 1 1/2 stopbit 2 = 2 stopbits It is an enumeration. Regards Thomas -Ursprüngliche Nachricht- Von: Jon Bertrand [mailto:j...@cirris.com] Gesendet: Mittwoch, 4. Februar 2009 19:04 An: Ararat Synapse Betreff: Re: [Synalist] Synaser - parametr is incorrect - error 87 I don't use synaser but I'll toss out a guess: com.config(9600,8,'N',0,false,true); What is the 0 in the function call above? If it's number of stop bits then it probably needs to be either 1 or 2, not 0. -Original Message- From: Tomas Rosa [mailto:tr...@seznam.cz] Sent: Wednesday, February 04, 2009 8:35 AM To: synalist-public@lists.sourceforge.net Subject: [Synalist] Synaser - parametr is incorrect - error 87 Hi, I have problem on some serial ports with synaser. I try to open and configure port, but I receive error %SUBJ%. Code is: com:=TBlockSerial.Create; com.Connect('COM1'); com.config(9600,8,'N',0,false,true); Thx for help. TR -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer - timing problem?
Hi all, I want to use one serial port for writing to and reading from two different devices. Therefore I wanted to open the port for reading and then close it again. I have tried the following for the reading part: PROCEDURE lesen; var ser: TBlockSerial; begin repeat ser:=TBlockSerial.Create; ser.ConvertLineEnd := true; ser.Connect(port1); data := ser.Recvstring(1000); writeln(data); ser.free; until keypressed; end; (The variable data will be exported to the program later). Unfortunately the variable data contains only the last 10 to 15 characters (data has the type string[25]). It seemst to be a timing problem. I have put a delay(500) before/after or both the data := ...-expression, but without any positive results. Where is the mistake? Thank you! Richard -- Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn Ökologische Station in der JH Sorpesee www.oeko-sorpe.de - www.wasserreise.info - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer {solved}
{:stopbit value for 1 stopbit} SB1 = 0; OK, there I had something wrong in my mind. Sorry, but I relied too strong on my mind instead of looking it up. {:stopbit value for 1.5 stopbit} SB1andHalf = 1; {:stopbit value for 2 stopbits} SB2 = 2; It works as it should, thanks to all contributors! The serial port I used didn't work (though SynaSer showed an OK-status), hardware problem. I tried the other port and everything was fine... Thank you! Richard -- Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn Ökologische Station in der JH Sorpesee www.oeko-sorpe.de - www.wasserreise.info - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
Am Mittwoch, den 26.11.2008, 17:21 +0200 schrieb Werner Hauptfleisch: Thant link is pretty much what you need to know in order to work with Synaser. There is also some good examples available on the synapse website: http://ararat.cz/synapse/doku.php/download#synaser_serial_library Sorry, but I don't find anything what one calls documentation or manual or whatever. This website was the first place I looked at. I found no example how to read from a serial port (with testser I can write). SynaSer helps me reading, OK, but beside some commentaries it does not contain documentation. It's OK when the programmer, who works in his or her spare time and without getting money, isn't in the mood to write boring documentations. But it's interesting that the whole world-wide web doesn't contain docus, manuals, general examples, etc! -- Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn Ökologische Station in der JH Sorpesee www.oeko-sorpe.de - www.wasserreise.info - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
True, guess that is the case if you are supporting a free product. Here is some information on the synapse components as well (to so much synaser): http://www.dubaron.com/synapsecookbook/ Also, when searching the forums you should also find some information. The documentation on the procedures in the Synapse / Synaser is not to bad either once you know what you are looking for. Alternativily, examine the examples that is provided. Perhaps Lukas or someone else can direct you to some more links. Based on you question and the information you have gathered thus far, anything else you need to know, maybe I can help? On Thu, Nov 27, 2008 at 5:20 PM, Richard [EMAIL PROTECTED] wrote: Am Mittwoch, den 26.11.2008, 17:21 +0200 schrieb Werner Hauptfleisch: Thant link is pretty much what you need to know in order to work with Synaser. There is also some good examples available on the synapse website: http://ararat.cz/synapse/doku.php/download#synaser_serial_library Sorry, but I don't find anything what one calls documentation or manual or whatever. This website was the first place I looked at. I found no example how to read from a serial port (with testser I can write). SynaSer helps me reading, OK, but beside some commentaries it does not contain documentation. It's OK when the programmer, who works in his or her spare time and without getting money, isn't in the mood to write boring documentations. But it's interesting that the whole world-wide web doesn't contain docus, manuals, general examples, etc! -- Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn Ökologische Station in der JH Sorpesee www.oeko-sorpe.de - www.wasserreise.info - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
Take a look at: http://synapse.ararat.cz/doc/help/synaser.TBlockSerial.html There's documentation for the Recv* methods. The help file can be downloaded at http://synapse.ararat.cz/files/synahelp.zip - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
Based on you question and the information you have gathered thus far, anything else you need to know, maybe I can help? Thank you for this offer! I don't know if this mailing list accepts attachments so I have copied the program serialtest.pas at the end of this mail. I have connected my sending unit with my PC on /dev/ttyS1. This unit sends data, I have checked this with a terminal program. The parameters are 9600, 8N1. The data consist of a string (ASCII) with 21 characters, followed by two LF (dec.10). It is sent every 2 s, sometimes 1 s. Now I've looked to the rs232_connect-procedure. The loop repeat write(ser.recvbyte(1000), ' '); until keypressed; should result in showing the received bytes on the screen. But all I get is 0 0 0 0..., even, if the unit is switched off. I am sorry, but the study of the definitions of RecvByte in the SynaSer-unit didn't help me (function TBlockSerial.RecvByte...). Is it a timeout, which is to small? I hope, I made it clear to you. Any help appreciated! Richard -- program serialtest; {found anywhere in the www} {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes,SysUtils,Synaser,Crt { you can add units after this }; var l:boolean; { function check_affirmation():boolean; var k:string; begin Writeln('To quit the application please do NOT use CTRL-C! Instead, please press any key to quit the application! '+ 'Please confirm this notification before the application continues! '+ '[0]=Quit, [1]=Confirm, please continue! '); Writeln('Your decision: '); Read(k); if StrtoInt(k) = 1 then begin check_affirmation:=true; Writeln('OK, application continues ...'); end else begin check_affirmation:=false; Writeln('Abort'); end end; } procedure RS232_connect; var ser: TBlockSerial; begin ser:=TBlockSerial.Create; try ser.Connect('/dev/ttyS1'); //ComPort {Sleep(1000);} ser.config(9600, 8, 'N', 1, False, False); Write('Device: ' + ser.Device + ' Status: ' + ser.LastErrorDesc +' '+ Inttostr(ser.LastError) + ' '); {Sleep(1000);} repeat {Write(IntToHex(ser.RecvByte(1000), 2), ' ');} Write(ser.RecvByte(1000), ' '); until keypressed; //Important!!! finally Writeln; writeln('Serial Port will be freed...'); ser.free; Writeln('Serial Port was freed successfully!'); end; end; begin {l:=check_affirmation(); if l=true then} RS232_connect() { else Writeln('Program quit! ');} end. -- Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn Ökologische Station in der JH Sorpesee www.oeko-sorpe.de - www.wasserreise.info - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
ser.config(9600, 8, 'N', 1, False, False); From the documentation: procedure Config(baud, bits: integer; parity: char; stop: integer; softflow, hardflow: boolean); virtual; Reconfigure communication parameters on the fly. You must be connected to port before! parameters: baud Define connection speed. Baud rate can be from 50 to 400 bits per second. (it depends on your hardware!) bits Number of bits in communication. parity Define communication parity (N - None, O - Odd, E - Even, M - Mark or S - Space). stop Define number of stopbits. Use constants SB1, SB1andHalf and SB2. softflow Enable XON/XOFF handshake. hardflow Enable CTS/RTS handshake. Look at stopbits, should be SB1, SB1andHalf or SB2. So use: ser.config(9600, 8, 'N', SB1, False, False); - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
Look at stopbits, should be SB1, SB1andHalf or SB2. So use: ser.config(9600, 8, 'N', SB1, False, False); I did. No positive results. I used the value 1 instead of the constant SB1 with the value 1, which should be equivalent. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public -- Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn Ökologische Station in der JH Sorpesee www.oeko-sorpe.de - www.wasserreise.info - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
Look at stopbits, should be SB1, SB1andHalf or SB2. So use: ser.config(9600, 8, 'N', SB1, False, False); I did. No positive results. I used the value 1 instead of the constant SB1 with the value 1, which should be equivalent. Wrong: {:stopbit value for 1 stopbit} SB1 = 0; {:stopbit value for 1.5 stopbit} SB1andHalf = 1; {:stopbit value for 2 stopbits} SB2 = 2; Did you really try to use SB1? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
Richard wrote: Look at stopbits, should be SB1, SB1andHalf or SB2. So use: ser.config(9600, 8, 'N', SB1, False, False); I did. No positive results. I used the value 1 instead of the constant SB1 with the value 1, which should be equivalent. What ever gave you the impression that SB1 would map to 1? Just asking, because SB1 maps to 0 instead... -- Markku Uttula - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer
Thant link is pretty much what you need to know in order to work with Synaser. There is also some good examples available on the synapse website: http://ararat.cz/synapse/doku.php/download#synaser_serial_library On Wed, Nov 26, 2008 at 10:18 AM, Richard [EMAIL PROTECTED] wrote: Let me explain the problem in short, perhaps you could give me some hints on the documentation: On Linux I want to read from a measuring instrument, which is connected via /dev/ttyS1 (9600 8N1, only RxD used). It sends each second a string of roughly 16 Ascii-characters. This string should be stored in a variable to process it. Can Synaser help me? (I use Free Pascal 2.2 for x86-64 on Suse 10.3). Thanks to http://wiki.freepascal.org/Hardware_Access I successfully experimented with SynaSer. Richard -- Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn Ökologische Station in der JH Sorpesee www.oeko-sorpe.de - www.wasserreise.info - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer Linux USB crash when set RTS
I bought a GUC232A made by IOGear (with a pl2303 prolific chipset) and that works under both i386 and ARM Linux. It appears that some linux drivers for FTDI and MOSCHIP chipsets have problems. I'm glad that I found something that works, and it also appears that SynaSer and FreePascal work OK. I've read that some IOGear (and other) adapters with the (later) pl2303X chipset aren't compatible with some devices so it is possible that other GUC232A adapters may not work (so be warned). - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer Linux USB crash when set RTS
Werner, I have used simular converters before and this sound like a driver issue. I found that the USB-Serial converters from EasySync is the best and when connected to Linux provides a full 'real' serial port without any issues. Simply connect to ttyUSBx and continue from there. Thanks for that advice. I will check out the EasySync adapters. Are you able to communicate using Minicom for example? With the FTDI the communication works great. The only problem is the crash when setting RTS. Thanks, Paul - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] SynaSer Linux USB crash when set RTS
Hi, I have used simular converters before and this sound like a driver issue. I found that the USB-Serial converters from EasySync is the best and when connected to Linux provides a full 'real' serial port without any issues. Simply connect to ttyUSBx and continue from there. Are you able to communicate using Minicom for example? Regards, W On Fri, Nov 7, 2008 at 1:53 AM, Paul Breneman [EMAIL PROTECTED]wrote: I've now encountered the same problem with i386 Linux and ARM9 Linux using SynaSer and FreePascal. Thought I'd leave a message here before I spend more time looking into this. Normal (real) serial ports work fine but when using USB to serial adapters the program crashes upon connect unless I comment out these two lines: procedure TBlockSerial.Connect(comport: string); ... RTS := True; DTR := True; With those lines commented out things work but my program crashes if I try to set RTS somewhere in my code. I've encountered the same problem using two different adapters. The adapters have FTDI and MOSCHIP chipsets and both automatically detected and installed in Linux. I need to manually control the RTS line to key a radio so I need to solve this problem soon. The MOSCHIP adapter gets wrong receive data on ARM9 Linux but that is another problem. My connected radio needs 1200 baud and right now I suspect the baud rate is not being correctly set. Thanks in advance for any suggestions. -- Regards, Paul Breneman www.BrenemanLabs.com www.TurboControl.com/TPSupport.htm - TurboPower support links - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
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
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
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
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
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
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 tries to use write protected directory /var/lock
Under Linux TBlockSerial class tries to use write lock file /var/lock/LCK..ttyACM0. But the user haven't permissions to write to this dir. What is correct way to workaround this trouble? The possible ways are: 1). Edit synaser.pas unit and point another dir for lock file. 2). Allow user to write to /var/lock dir. -- ... or read the documentation (or sources!) and set LinuxLock property to false. ;-) -- 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser as service Problems
Lloyd Thomas wrote: I don't understand where I am going wrong, but I have the following code in a windows app and a service. When I run the app in idle it uses 0% cpu, but if I run the service it uses 50% of the CPU. If I change the var activeport := false, (as to not receive serial data) the service falls back to using 0% cpu. Can someone advise what to do? Why the difference between an app and a service? You're not deferring to other threads in your main loop... inserting a Sleep(1); line just before until false; should do the trick. Regards, Ulrich - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser example
No response yet, But i have simplified my code as 'terminated' cause a problem. So while the new code will run I get an error after the Recvstring timeout. 'ESynaSerError with message 'Communication error 9997' Timeout during operation'. What does this mean? It meaning - no reqested datas are received during your timeout. RecvString expecting each line terminated by CRLF, and you maybe have different terminator in real data stream. So, Synaser waiting for CRLF what not incomming... and raise timeout error. -- 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser example
[EMAIL PROTECTED] wrote: OK, No response yet, But i have simplified my code as 'terminated' cause a problem. So while the new code will run I get an error after the Instead of a Repeat ... Until false loop try a While not(Terminated) do loop Recvstring timeout. 'ESynaSerError with message 'Communication error 9997' Timeout during operation'. Probably because of the ser.RaiseExcept := True statement. Try it without this. What does this mean? How can I improve my simple code? code as follows code--- program dataser; {$APPTYPE CONSOLE} uses synaser, sysutils; var ser:TBlockSerial; LCMD:String; begin ser:=TBlockserial.Create; try ser.RaiseExcept:=True; ser.Connect('COM1'); ser.Config(9600,8,'N',0,false,false); if ser.lastError0 then exit; LCMD := ser.Recvstring(1); writeLn('LCMD'); finally ser.Free; end; end. end od code- Lloydie T Hi, I wish to use synaser to capture text sent to a serial port. I do not have a test facilty at the moment, so I need a little help to make sure I am going in the right direction. The basic code I have is as follows. code-- {$MODE DELPHI} Program testser; uses synaser, sysutils; var ser:TBlockSerial; LCMD:String; begin ser:=TBlockserial.Create; try ser.RaiseExcept:=True; ser.Connect('COM1'); ser.Config(9600,8,'N',0,false,false); with ser do begin repeat if terminated then break; LCMD := RecvString(1000); if lastError0 then break; writeLn('LCMD'); if lastError0 then break; until false; end; finally ser.Free; end; end. End of code-- Does this look OK? If not, how should I do this? Lloydie T - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] synaser example
OK, No response yet, But i have simplified my code as 'terminated' cause a problem. So while the new code will run I get an error after the Recvstring timeout. 'ESynaSerError with message 'Communication error 9997' Timeout during operation'. What does this mean? How can I improve my simple code? code as follows code--- program dataser; {$APPTYPE CONSOLE} uses synaser, sysutils; var ser:TBlockSerial; LCMD:String; begin ser:=TBlockserial.Create; try ser.RaiseExcept:=True; ser.Connect('COM1'); ser.Config(9600,8,'N',0,false,false); if ser.lastError0 then exit; LCMD := ser.Recvstring(1); writeLn('LCMD'); finally ser.Free; end; end. end od code- Lloydie T Hi, I wish to use synaser to capture text sent to a serial port. I do not have a test facilty at the moment, so I need a little help to make sure I am going in the right direction. The basic code I have is as follows. code-- {$MODE DELPHI} Program testser; uses synaser, sysutils; var ser:TBlockSerial; LCMD:String; begin ser:=TBlockserial.Create; try ser.RaiseExcept:=True; ser.Connect('COM1'); ser.Config(9600,8,'N',0,false,false); with ser do begin repeat if terminated then break; LCMD := RecvString(1000); if lastError0 then break; writeLn('LCMD'); if lastError0 then break; until false; end; finally ser.Free; end; end. End of code-- Does this look OK? If not, how should I do this? Lloydie T - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser for FreePascal
So, I made new Synaser version what have removed Libc dependency on FreePascal, and count of needed modifications is much smaller then in Charlie case, and result code is cleaner. I publish this new Synaser version in next Synasnap, please, test it! right, I hope to try it next week. Thanks for it. Jose Pascual -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. --- -- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public __ Informacisn de NOD32, revisisn 2239 (20070504) __ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser AtTimeout and GSM
problem with error 9997 resolved with: ser-AtTimeout = 4000;. It is minimum for correct functional. GSM Module Siemens MC55. But, I tried another component for com port communication (TComPort) and there is not problem with timeouts. And of cource when I send SMS via TComPort I got it faster than via Synaser. So problem is not is HW of mobile, but in library I thing. Or not? How you are implementing it by TComPort? It have sme special AT command support? I think not, so you are implementing it by direct port sending and reading, right? Then try to implement it by same way in Synaser too. I not know how exactly is SMS sended by AT command, where and what is expected by modem and what by computer. AtCommand is just helper function for easy sending simple AT command and it maybe not effective in your case. But you allways can implement what you need by sending and receiving functions in Synaser. There is not reason why Synaser will be slower in this case, just impelment it by similar way as in TComPort and then compare. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public
Re: [Synalist] Synaser Error
cele dopoledne se lopotim s komunikaci GSM brany za pomoci Synaser ale nemuzu se hnout s odesilam sms. A jelikoz mi na foru nikdo neporadil tak pisu. Kod je v C++, ale to snad nevadi: Well, but this is English forum. ;-) -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public