[Synalist] Synaser detection & device name

2016-03-13 Thread Tomáš Emresz
Hello,

Is  it  possible  to  change  (or  add) any method to tBlockSerial for
original name of device ??

I  have  app  server, which is detecting ports and after some init, it
add  this  port  to  list  as  worked. But next time, this port is not
listed  in  this  list  - because of //./COM1 name. This is not clear,
because  i opened COM1, but synapse works with //./COM1 (on linux will
be  almost  the  same  situation  i think). So this strings is not the
same.

I  can  change  this  (add name property with original opened name, or
change device property to return original name or somethink else), but
i should have svn update possible without this hack.

-- 
S pozdravem,
 Tomáš Emresz
 mailto:tomas.emr...@strankysnadno.cz



--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Synaser and /dev/ttyACM

2014-07-08 Thread Luca Olivetti
El 07/07/14 08:40, Denis ha escrit:
> Hi everybody
> 
> 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.


There is a problem with the Linux cdc-acm driver with some TI chips, but
I don't know if it's also the case with this exar chip, and the symptoms
are different (the program hangs and/or fails to open the port).

https://github.com/energia/Energia/wiki/Linux-Serial-Communication

Bye
-- 
Luca

--
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

2014-07-08 Thread Ewald
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

2014-07-08 Thread Denis

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

2014-07-08 Thread Ewald
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 :-)

-- 
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

2014-07-08 Thread Denis

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

2014-07-07 Thread Lukas Gebauer
> 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


[Synalist] Synaser and /dev/ttyACM

2014-07-06 Thread Denis
Hi everybody

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.

Have you never use this chip?
Have you got experience with ttyACM interface?

-- 
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, /dev/ttyUSB* unplug problem (Linux)

2012-12-06 Thread Denis Gottardello
> 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, /dev/ttyUSB* unplug problem (Linux)

2012-12-06 Thread Denis Gottardello
> 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)

2012-12-06 Thread Reinier Olislagers
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


[Synalist] Synaser, /dev/ttyUSB* unplug problem (Linux)

2012-12-06 Thread Denis Gottardello
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?


Up!


-- 
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


[Synalist] Synaser, /dev/ttyUSB* unplug problem (Linux)

2012-11-28 Thread Denis Gottardello
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?


-- 
Denis Gottardello
Sintesi S.r.l.
049.9301135

--
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SYNASER - port initialization problem

2012-09-27 Thread Jakub Husak

> 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

2012-07-21 Thread Daithi Haxton

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

2012-01-30 Thread Virgo Pärna
On Fri, 27 Jan 2012 11:16:27 +0200, Kocsis Levente  
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


[Synalist] Synaser

2012-01-27 Thread Kocsis Levente
Hi,

 

I migrated my small app from D2007 to D2010 and I have a small problem with
the synaser tool. When I receive a data packet which contains bytes between
128 and 255 sometimes those bytes transformated in other int values between
1000 and 1. When the serial data packet contains bytes between 0 and 128
everything is ok.

 

I know that this problem is from the migration from D2007 to D2010
(unicode). The data from the serial device it's ok, because I'm using a port
monitor to see the communication.

 

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.

 

Do you have any ideas?

 

Thank you. 

 

Best regards,

Levente Kocsis

 

 

--
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?

2011-11-18 Thread Joshua Lim
Thanks again Lukas. :)


Lukas Gebauer wrote:
>> 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
>
>
>   


--
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 detect DCD status?

2011-11-17 Thread Lukas Gebauer
> 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


[Synalist] Synaser detect DCD status?

2011-11-17 Thread Joshua Lim
Hi,

Does anyone knows if Synaser can detect DCD status of a modem?  If so, 
how can it be done?

More info on DCD here: http://en.wikipedia.org/wiki/Data_Carrier_Detect

Thanks.

Rgds,
Joshua


--
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


[Synalist] Synaser: how can I write to port through a pending read

2011-07-16 Thread Thomas Kerkmann
Hello 

My task is a bit complicated: 
I need to incorporate some async communication on the serial line, where I
listen for incoming data and as well being able to send data to the device
on my behalf. Without ending in an inefficient polling loop, is there a
smarter way to do it with synaser ?

The idea is to have a thread waiting for incoming data, and from the main
send data.

Any help apreciated.

Best regards
Thomas


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer working some on WinCE

2010-11-13 Thread Paul Breneman
A lot of the minimal distributions on this page were updated today with 
the latest fpGUI and Free Pascal 2.4.2:
   http://www.turbocontrol.com/monitor.htm

This is a new page with FPC 2.4.2 and fpGUI:
   http://www.turbocontrol.com/easyfpgui.htm

This unreleased file with SynaSer for WinCE was also updated:
http://www.turbocontrol.com/SimpleSerial-fpGUI-fpc-2.4.2-arm-wince-111310.zip

-- 
Regards,
Paul Breneman
www.dbReplication.com - VCL database replication components
www.TurboControl.com - Hardware and software development services
- Educational programming project for environment monitoring
- Information on using FreePascal for embedded systems
- Support information for the TurboPower open source libraries


Paul Breneman wrote on 6-Nov-2010:
> A year ago I worked on fpGUI and got it supporting WinCE again.  I just 
> did something similar for SynaSer.  I'm not the smartest fellow and have 
> limited time, but I hope others can now add additional WinCE 
> improvements to SynaSer just like others did to fpGUI after I got things 
> started.  :)
> 
> Since Feb-2009 TurboControl has had three minimal distributions of
> Free Pascal and SynaSer on this page:
>http://www.turbocontrol.com/simpleserial.htm
> 
> I haven't added it to that web page yet, but here is the first cut of a 
> 2.8 MB zip that works for me to send and receive serial data on WinCE 
> using SynaSer:
> http://www.turbocontrol.com/SimpleSerial-fpGUI-fpc-2.4.0-arm-wince-110610.zip
> 
> If any of the Synapse SynaSer experts on this list have a WinCE device 
> and want to help test and improve the SynaSer WinCE support that would 
> be very much appreciated.
> 
> In the USA in September the CVS pharmacy chain sold some WinCE netbooks 
> for $100 so there seems to be more and more inexpensive testing devices 
> available (if a USB-serial FTDI adapter would work).  I don't think I'd 
> want to use that $100 netbook for anything other than testing.  :)
> 
> I'm actually using a Pharos PDA that has a real RS-232 port...

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer working some on WinCE

2010-11-06 Thread Paul Breneman
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


[Synalist] SynaSer working some on WinCE

2010-11-06 Thread Paul Breneman
A year ago I worked on fpGUI and got it supporting WinCE again.  I just 
did something similar for SynaSer.  I'm not the smartest fellow and have 
limited time, but I hope others can now add additional WinCE 
improvements to SynaSer just like others did to fpGUI after I got things 
started.  :)

Since Feb-2009 TurboControl has had three minimal distributions of
Free Pascal and SynaSer on this page:
   http://www.turbocontrol.com/simpleserial.htm

I haven't added it to that web page yet, but here is the first cut of a 
2.8 MB zip that works for me to send and receive serial data on WinCE 
using SynaSer:
http://www.turbocontrol.com/SimpleSerial-fpGUI-fpc-2.4.0-arm-wince-110610.zip

If any of the Synapse SynaSer experts on this list have a WinCE device 
and want to help test and improve the SynaSer WinCE support that would 
be very much appreciated.

In the USA in September the CVS pharmacy chain sold some WinCE netbooks 
for $100 so there seems to be more and more inexpensive testing devices 
available (if a USB-serial FTDI adapter would work).  I don't think I'd 
want to use that $100 netbook for anything other than testing.  :)

I'm actually using a Pharos PDA that has a real RS-232 port...

--
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


[Synalist] Synaser test

2010-01-28 Thread Lukas Gebauer

Well, I made a some modifications in current SVN Synaser code for 
WIN64 compatibility.

However I have not platform for test. If someone can, test it, 
please.

Please, test it on other platforms and compilers too. Changes in code 
may affect different platforms too.

If you found some issues, write it here. Thank you very much!


-- 
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 update

2010-01-28 Thread Lukas Gebauer
> 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

2010-01-04 Thread Lukas Gebauer
> 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

2009-12-30 Thread Jirka Hudec

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 :-)

Thank you very much, Lukas
 

-Original Message-
From: Lukas Gebauer [mailto:gebyl...@mlp.cz] 
Sent: Tuesday, December 29, 2009 5:05 PM
To: Ararat Synapse
Subject: 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


--
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

2009-12-29 Thread Lukas Gebauer
> 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

2009-12-29 Thread Petr Fejfar
Dne Mon, 28 Dec 2009 22:46:45 +0100 Jirka Hudec   
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

2009-12-28 Thread Jirka Hudec

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 - port initialization problem

2009-12-28 Thread Lukas Gebauer
> 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


[Synalist] SYNASER - port initialization problem

2009-12-28 Thread Jirka Hudec
Hello All,

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.

Thank you, Ajstar 

--
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


[Synalist] [synaser] SendingData with Linux

2009-11-26 Thread ds
Hello List!

I'm converting a Win32/Delphi/AsyncPro Application to
Linux/Lazarus/SDPO/Synaser. Now I've got the question, how to use the
Method 'SendingData' in Linux? In the SOurce I can find the SendingData
is set to '0', but without any testing and checking of the state of the
serial interface. Is there a way to check the send buffer correctly?

Greetings
Daniel

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] [synaser] only get response when port is closed ?

2009-11-18 Thread 정진기
 
Hello, 
 
I am trying to communicate with a system. 
There is something I can't figure out. 
Following is a piece of code that I used to communicate on other cases
without problems. 
 
But this time, the instrument on the other side does not 
respone until I close the port. Is it because of Flow Control or 
other signal such as DTR ?
 
Unfortunately, I don't know much about the changing the Serial Flags
and also to finding the relevent code or help was not easy for me. 
May be just for me.
 
It will be much appreciated if you point me the right place or share
piece of code . 
 
one more question: As you can see in the code below, I get "0 byte" 
is this normal ? To prevent endless loop, I inserted time-check.
 
Thank you
 
onions
 
=
 
 
procedure TForm1.BitBtn2Click(Sender: TObject);
var
 ySer : TBlockSerial ;
 yCmd : String ;
 yXOR : LongInt ;
 n : Integer ;
 yByte: Byte ;
 yOldTime : TDateTime ;
 yArr : Array[0..1000] of Char ;
 yC : Integer ;
 yZeroCount : Integer ;
 yMax : Integer ;
begin
 TRY
 if Length(Trim(Form1.Edit1.Text)) < 1 then
 yMax := 100
 else
 yMax := StrToInt(Form1.Edit1.Text) ;
 memo1.Clear ;
 ySer := TBlockSerial.Create ;
 ySer.LinuxLock := False ;
 ySer.RaiseExcept := False ;
 ySer.Connect('COM6') ;
 ySer.Config(38400,8,'N',0,False,False);
 if ySer.CanWrite(1000) then
 begin
 yCmd := #27 + 'PR3 2' + #13 ; // ESC + PR3 2 + CR
 ySer.SendString(yCmd);
 end;
 yZeroCount := 0 ;
 yC := 0 ;
 yOldTime := Now ;
 FillChar(yArr,1000,$0) ;
 while not ySer.LastError <> 0 do
 begin
 Application.ProcessMessages ;
 yByte := ySer.RecvByte(1) ;
 if ( Now - yOldTime) * 10 > 3 then
 begin
 Form1.Memo1.Lines.Add('timeout 3') ;
 ySer.Free ;
 exit ;
 end;
 if yByte = 0 then
 begin
 Form1.Memo1.Lines.Add(' 0 byte') ;
 Inc(yZeroCount) ;
 if yZeroCount > yMax then
 begin
 Form1.mmoDebug.Lines.Add(' 0 byte count over > ' + IntToStr(yMax)) ;
 ySer.Free ;
 exit ;
 end;
 continue;
 end;
 if yByte = 13 then // CR LF
 begin
 Form1.Memo1.Lines.Add(yArr) ;
 ySer.Free ;
 exit ;
 end;
 if yC < 1000 then
 begin
 yArr[yC] := Char(yByte) ;
 Inc(yC) ;
 end;
 end;
 ySer.Free ;
 EXCEPT
 on E:Exception do
 begin
 if Assigned(ySer) then
 ySer.Free;
 Form1.mmoDebug.Lines.Add(E.Message) ;
 end;
 end;
end;
 
 
 
 
 
 
 
 
 
 onionsjk님의 블로그
 안녕하세요.
 
 
 
 
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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

2009-03-25 Thread Paul Breneman
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 compile problem using lazarus cross-arm-wince-win32 complier

2009-03-25 Thread Lin Shu

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

2009-03-25 Thread Lukas Gebauer
> 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

2009-03-25 Thread Lin Shu

Thank you very much. I have read the Requirements again, and found 

Win32 operating system (Win9x, WinNT, WinME, Win2k, WinXP,… Not Win32s or 
WinCE!!!) or Unix/Linux operating system.
 

That means I can not use synaser under windows mobile system in PDA or 
Smartphone?

But really thanks very much.   

 
> From: gebyl...@mlp.cz
> To: synalist-public@lists.sourceforge.net
> Date: Wed, 25 Mar 2009 11:58:21 +0100
> Subject: Re: [Synalist] synaser compile problem using lazarus 
> cross-arm-wince-win32 complier
> 
> > I have written an application to open virtual serial port(bluetooth)
> > using 5dpo and synaser. When compile (set as LCL widget type: wince
> > (beta); Target Platform: wince, arm);
> > It gives error message as 
> > 
> > C:\lazarus\Sdpo\SdpoSerial\synaser.pas(1,1) Fatal: Can't find unit
> > termio used by synaser
> 
> It is because I never try to compile it for WinCE, and current IFDEFs 
> not identifying this platform correctly.
> 
> 
> 
> -- 
> 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

_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/--
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

2009-03-25 Thread Lukas Gebauer
> I have written an application to open virtual serial port(bluetooth)
> using 5dpo and synaser. When compile (set as LCL widget type: wince
> (beta); Target Platform: wince, arm);
>  It gives error message as 
> 
> C:\lazarus\Sdpo\SdpoSerial\synaser.pas(1,1) Fatal: Can't find unit
> termio used by synaser

It is because I never try to compile it for WinCE, and current IFDEFs 
not identifying this platform correctly.



-- 
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


[Synalist] synaser compile problem using lazarus cross-arm-wince-win32 complier

2009-03-25 Thread Lin Shu

I have written an application to open virtual serial port(bluetooth) using 5dpo 
and synaser.
When compile (set as LCL widget type: wince (beta); Target Platform: wince, 
arm);
 It gives error message as 

C:\lazarus\Sdpo\SdpoSerial\synaser.pas(1,1) Fatal: Can't find unit termio used 
by synaser


what does it mean? 

The compile is successful if I do not use coss-compiler. 

the unit termio is in the following section of synaser. the baseunix, unix also 
can not be found.

unit synaser;

interface

uses
{$IFNDEF WIN32}
  {$IFNDEF NO_LIBC}
  Libc,
  KernelIoctl,
  {$ELSE}
  termio, baseunix, unix,
  {$ENDIF}
  {$IFNDEF FPC}
  Types,
  {$ENDIF}
{$ELSE}
  Windows, registry,
  {$IFDEF FPC}
  winver,
  {$ENDIF}
{$ENDIF}
  synafpc,
  Classes, SysUtils, synautil;  

I have used:

lazarus-0.9.26-fpc-2.2.2-win32.exe
Lazarus-0.9.26-fpc-2.2.2-cross-arm-wince-win32.exe
Sdpo-0.1.6.zip
synaser.zip-2007-12-21 - release no. 16
_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx--
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


[Synalist] SynaSer and D2009

2009-03-19 Thread Kipsus
It needs a revision badly. I have just compiled some of my code, just to
find some fatal errors in the SynaSer source. Not to mention (unicode)string
typecast to pointer passed to SendBuffer.. No wonder my program crashed
badly.
Kipsus
--
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


[Synalist] Synaser - USB to Serial Connector

2009-03-12 Thread Veli BOZATLI
Hi;

I use TBlockserial in a thread. It works fine when I use normal Com port
communication.
If I use USB to Serial connector; It works normally too. But, when I
disconnected the USB to Serial Connector manually my PC CPU usage is %100.
LastError says "Timeout during operation". But I always get this message is
normally, because of my READTIMEOUT const.

For example:  USB-Serial connector = COM5
When I set connection to COM5 it works fine. If I disconnect the USB-Serial
connector there is no COM5 in PC comport list. So *synaser* must give an
error. But it gives only timeout error.
How can I detect if TBlockserial try to read illegal Com port. (but it's
legal when starting) ?
--
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 - parametr is incorrect - error 87

2009-02-04 Thread Thomas Kerkmann
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 - parametr is incorrect - error 87

2009-02-04 Thread Jon Bertrand
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


[Synalist] Synaser - parametr is incorrect - error 87

2009-02-04 Thread Tomas Rosa
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


Re: [Synalist] SynaSer - timing problem?

2008-12-01 Thread Richard
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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] SynaSer in a Thread

2008-11-29 Thread darekszn
Hi all,

I would like to make simple RS232 server (for gsm modem) that is working in a 
Thread. But i don't know - is this way , like this under, good ???

type
  TMkGSMThread = class(TThread)
  private
FTSerial: TBlockSerial;
  end;

// on create thread i'm creating FTSerial, on destroy - freeing

TMkThread.Execute
begin

  while not Terminated or not Application.Terminated do begin

// if Parent want to connect to GSM modem
if not FTSerial connected then
  FTSerial.Connecting on demand

// receiving some data from modem
if FTSerial connected then
  FTSerial.Receive . something

// sending AT commands etc
if FTSerial connected then
  FTSerial.Sendsomething
  
Sleep(10);

  end;

end;

generally it's working for me, but sometimes have i situations when (i think) I 
lost some data from modem

-
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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer {solved}

2008-11-28 Thread Richard


>   {: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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Markku Uttula
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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Jon
> > 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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Richard

> 
> 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=100&url=/
> ___
> 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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Jon
>   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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Richard
I made two modifivations in the program (see below) with only the
following effct: I only get "empty characters" (Spaces) instead of the
strings.
Am Donnerstag, den 27.11.2008, 18:15 +0100 schrieb Richard:
> > 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;

 ser.ConvertLineEnd := true; {because I have LF/LF instead of CR/LF}

>   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(ser.Recvstring(1000), ' '); {instead of:
>   
>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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Richard
> 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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Jon
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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Werner Hauptfleisch
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=100&url=/
> ___
> 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=100&url=/___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-27 Thread Richard

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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-26 Thread 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

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=100&url=/
> ___
> 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=100&url=/___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SynaSer

2008-11-26 Thread Richard


> 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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] SynaSer

2008-11-25 Thread Richard
Hi all,
I just got an hint on the existence of SynaSer. Unfortunately there is
only little documentation.

I could successfully write to a serial display with testser. 
(By the way, I got:
$> ./testser
An unhandled exception occurred at $0042FD59 :
ESynaSerError : Communication error 9997: Timeout during operation
  $0042FD59
  $0042D99B
  $0042DC83
  $0042E03F
  $0042F6BF
  $0040D752


)
But this error codes aren't the problem, because for writing I use
standard open, assign, write functions... . _Reading_ is the problem!

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 for answering!
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=100&url=/
___
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

2008-11-08 Thread Paul Breneman
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=100&url=/
___
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

2008-11-07 Thread Paul Breneman
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=100&url=/
___
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

2008-11-06 Thread Werner Hauptfleisch
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=100&url=/
> ___
> 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=100&url=/___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] SynaSer Linux USB crash when set RTS

2008-11-06 Thread Paul Breneman
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=100&url=/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Synaser and USB serial ports

2008-07-03 Thread Lukas Gebauer
> 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

2008-06-11 Thread Julian G4ILO
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

2008-04-14 Thread Mark Rogers
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

2008-04-14 Thread Mark Rogers
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

2008-04-14 Thread Jon
> 
> 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

2008-04-14 Thread Mark Rogers
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

2008-04-14 Thread Mark Rogers
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

2008-04-12 Thread Jon
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

2008-04-11 Thread Lukas Gebauer
> 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

2008-04-11 Thread Mark Rogers
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


Re: [Synalist] Synaser on Windows Terminal Server

2008-02-14 Thread Roman Olexa
Yes, Hyperterm works fine. I connected one PC with Hyperterm instead off my
serial device, with the same settings (port, speed, handshake ...). The
second Hyperterm was running in terminal server session. The communication
works in both direction. 
Mayby, Synaser ignores redirected serial ports ?

Regards

Roman Olexa


> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Did you try with Hyperterm first ?
> Maybe the name of the comport is not the one you expect.
> 
> regards
>
> Thomas


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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 on Windows Terminal Server

2008-02-13 Thread Lukas Gebauer
> Synaser Connect('COM2') pass without error, but external serial device seems 
> to be not
> connected.

And Config call is OK too? (Lasterror is zero after Config?)


-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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 on Windows Terminal Server

2008-02-12 Thread Kerkmann, Thomas
Did you try with Hyperterm first ?
Maybe the name of the comport is not the one you expect.

regards

Thomas

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von
Roman Olexa
Gesendet: Mittwoch, 13. Februar 2008 08:20
An: synalist-public@lists.sourceforge.net
Betreff: [Synalist] Synaser on Windows Terminal Server


I have a problem using Synaser on Windows Terminal Server. I need to force
the application on terminal server to communicate with local serial device.
I am connecting to Terminal Server with "Local devices and resources /
serial ports"  option enabled. Synaser Connect('COM2') pass without error,
but external serial device seems to be not connected.  I cannot  send or
receive any data, but Synaser doesn't report errors. Serial device doesn't
obtain any data. 
Please, have anybody some experiences with Synasee on Windows Terminal
Server ?

Thanks

Roman Olexa


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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 2008.
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


[Synalist] Synaser on Windows Terminal Server

2008-02-12 Thread Roman Olexa
I have a problem using Synaser on Windows Terminal Server. I need to force
the application on terminal server to communicate with local serial device.
I am connecting to Terminal Server with "Local devices and resources /
serial ports"  option enabled. Synaser Connect('COM2') pass without error,
but external serial device seems to be not connected.  I cannot  send or
receive any data, but Synaser doesn't report errors. Serial device doesn't
obtain any data. 
Please, have anybody some experiences with Synasee on Windows Terminal
Server ?

Thanks

Roman Olexa


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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 tries to use write protected directory "/var/lock"

2007-12-28 Thread Lukas Gebauer
> 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


[Synalist] synaser tries to use write protected directory "/var/lock"

2007-12-28 Thread skywriter
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.
--


//Follow the signs!






--
Rambler-ICQ 6 -- новый формат общения! http://icq.rambler.ru/

-
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

2007-10-09 Thread Ulrich Doewich
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


[Synalist] synaser as service Problems

2007-10-05 Thread Lloyd Thomas
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?

-
procedure TServerSerial.Execute;
begin
   with Fser do
begin

   IniFile :=
TIniFile.Create(ExtractFilePath(Application.ExeName)+'serialcollex.ini');
   activeport := IniFile.Readbool('serial','active',false);
   PortNo := IniFile.ReadString('serial','PortNo','COM1');
   Baud := IniFile.Readinteger('serial','baud',9600);
   databits := IniFile.ReadInteger('serial','databits',8);
   stopbits := IniFile.ReadInteger('serial','stopbits',0);
   par := IniFile.ReadString('serial','parity','N');
   parity := par[1];
   hardwarefl := IniFile.Readbool('serial','hardwarefl',false);
   softwarefl := IniFile.Readbool('serial','softwarefl',false);
RaiseExcept:=false;
 Connect(PortNo);
 Config(Baud,databits,parity,stopbits ,softwarefl,hardwarefl);
  if activeport = true then begin //Do we want to receive serial port
data.
  repeat
if terminated then break;
if canread(1000) then
  begin
LCMD := Recvstring(1000);
if lastError=0 then Synchronize(SendData);
  end;
  until false;
end;
end;
end;

--


-
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


[Synalist] synaser service

2007-10-01 Thread Lloyd Thomas
Further to my previous email, I am trying to implement send serial port
string to a TCPIP port. Although I can install and start the service as soon
as I send data to it I get a windows error message 1073 'The specified
service already exists'. After that I can not restart the service and have
great difficulty in removing it.
 Any Ideas?
This is the code for the offending unit 

Code-

unit SerialCollexServiceUnit2;

interface

uses
  synaser, sysutils,BlckSock, synsock, Classes, inifiles;

type
  TSerialModule1 = class(TDataModule)
procedure DataModuleCreate(Sender: TObject);
  private
{ Private declarations }
  public
{ Public declarations }
  end;

var
  SerialModule1: TSerialModule1;
  ser:TBlockSerial;
  IniFile : TIniFile;
  SerialSock:TTCPBlockSocket;
  par,LCMD,PortNo,ipaddress,ipport:String;
  Baud,databits,stopbits:integer;
  parity:char;
  hardwarefl,softwarefl:boolean;


   procedure sendcallstring(input:string);


implementation

{$R *.dfm}

 procedure sendcallstring(input:string);
 Begin
 SerialSock:=TTCPBlockSocket.Create;
 try
 SerialSock.RaiseExcept :=false;
 SerialSock.Connect(ipaddress,ipport);
 if SerialSock.lastError<>0 then exit;
 if SerialSock.CanWrite(1000) then
 SerialSock.SendString(input+CRLF);
 finally
 SerialSock.Free
 end;
 End;

procedure TSerialModule1.DataModuleCreate(Sender: TObject);
begin

IniFile := TIniFile.Create('serialcollex.ini');
PortNo := IniFile.ReadString('serial','PortNo','COM1');
   Baud := IniFile.Readinteger('serial','baud',9600);
   databits := IniFile.ReadInteger('serial','databits',8);
   stopbits := IniFile.ReadInteger('serial','stopbits',0);
   par := IniFile.ReadString('serial','parity','N');
   parity := par[1];
   hardwarefl := IniFile.Readbool('serial','hardwarefl',false);
   softwarefl := IniFile.Readbool('serial','softwarefl',false);
   ipaddress := IniFile.ReadString('tcpip','ipaddress','127.0.0.1');
   ipport := IniFile.ReadString('tcpip','ipport','4515');
   ser:=TBlockserial.Create;
   try

 ser.RaiseExcept:=false;
 ser.Connect(PortNo);
 ser.Config(Baud,databits,parity,stopbits ,softwarefl,hardwarefl);

 while not (ser.LastError <> 0) do begin
if ser.lastError<>0 then break;
  if ser.canread(1000) then  begin
  LCMD := ser.Recvstring(1000);
  writeLn(LCMD);
  sendcallstring(LCMD);
  end;

 end;
   finally
 ser.Free;
end;

end;

end.

End of code--


-
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

2007-09-27 Thread Lloyd Thomas
Thanks guys,
I have got a bit further. The following seems to work, but
if you have any advice please fell free to let me know.


Code---
program serialcollex;

{$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);

 while not (ser.LastError <> 0) do begin
if ser.lastError<>0 then break;
  if ser.canread(1000) then  begin
  LCMD := ser.Recvstring(1000);
  writeLn(LCMD);
  end;

 end;

   finally
 ser.Free;
   end;
 end.

End of code-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
Berger
Sent: 27 September 2007 12:49
To: Ararat Synapse
Subject: 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.lastError<>0 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 lastError<>0 then break;
>>   writeLn('LCMD');
>>   if lastError<>0 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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.13.32/1033 - Release Date: 27/09/2007
11:06



-
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

2007-09-27 Thread lloydie-t
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.lastError<>0 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 lastError<>0 then break;
>   writeLn('LCMD');
>   if lastError<>0 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 example

2007-09-27 Thread Andreas Berger


[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.lastError<>0 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 lastError<>0 then break;
>>   writeLn('LCMD');
>>   if lastError<>0 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

2007-09-27 Thread Lukas Gebauer
> 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


[Synalist] synaser example

2007-09-25 Thread 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 lastError<>0 then break;
  writeLn('LCMD');
  if lastError<>0 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


Re: [Synalist] Synaser for FreePascal

2007-05-17 Thread josepascual
> 
> 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


[Synalist] Synaser for FreePascal

2007-05-17 Thread Lukas Gebauer

I found time for adapting Synaser for non-Libc FreePascal.

Before exists one patch by "Charlie", but I not publish this pacth, 
because i simply not agree with all modifications. "Charlie" made lot 
of modifications and comment it with lot of big talks. He not 
understand my code on many places.

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!


-- 
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


Re: [Synalist] Synaser AtTimeout and GSM

2006-08-08 Thread Lukas Gebauer
> 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=lnk&kid=120709&bid=263057&dat=121642
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] Synaser AtTimeout and GSM

2006-08-08 Thread standus
Hi,

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?

Stan


-
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=lnk&kid=120709&bid=263057&dat=121642
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Synaser and GSM mobile

2006-08-07 Thread Lukas Gebauer
> And problem is, that everytime i get error 9997: Timeout during operation.
> after all ser->ATCommands My System is WinXP + BDS2006 update2. I
> tried Set Sleep(xxx) in all possible steps, but without positive result.
> SMS is sended always without problem, but alwais with this error. Please
> help. Where is the problem?

Increase value in ATtimeout property. Default 1000ms is not enough for 
sending SMS in most cases.

--
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP 
Library



-
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=lnk&kid=120709&bid=263057&dat=121642
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Synaser and GSM mobile

2006-08-07 Thread René Tegel
Hi,

If you are sending a PDU message (looks like it, seen the 0x1a/ctrl-c) 
be aware that the protocol is a bit 'mangled' (not like normal AT 
commands behave). You must _not_ send a LF after the ctrl-c, and the 
modem will report 'ok', but also send out a '>' char prior to the client 
entering the hex string. This may make synapse confused, but it could be 
any other problem as well (normal AT commands should work anyhow), try 
to debug anything that is send to and received from the modem. I just 
tried manually and decided to use smstools, available on unix and 
cygwin, so i can as easy as possible install this on another system with 
few as possible custom code, and it worked just fine for me.

regards,

rene


standus schreef:
> Hi,
>
> I have this very simple code in C++ for communication with GSM mobile:
> [code]
> {
>  // ser komunikace
>  TBlockSerial *ser = new(TBlockSerial);
>  ListBox1->Items->Add(GetSerialPortNames());
>  Application->ProcessMessages();
>
>  try {
>   ser->Connect("COM1");
>   ser->Config(9600,8,'N',SB1,false,false);
>   Sleep(200);
>   // sms v pdu
>   
> //ser->ATCommand(EditCislo->Text+char(0x0d)+MemoText->Lines->Text+char(0x1a));
>   ser->ATCommand("AT");
>   if ((ser->LastError != 0))
>{
>ShowMessage("Error1: "+ser->LastErrorDesc +",\n" + ser->LastError);
>ser->Free();
>return;
>}
>   ser->ATCommand(EditCislo->Text+char(0x0d));
>   ser->ATCommand(MemoText->Lines->Text+char(0x1a));
>
>  } catch (...) {
>   ShowMessage("Error komunikace.");
>  }
>  ser->Free();
> }
> [/code]
>
> And problem is, that everytime i get error 9997: Timeout during operation. 
> after all ser->ATCommands
> My System is WinXP + BDS2006 update2. I tried Set Sleep(xxx) in all possible 
> steps, but without positive result.
> SMS is sended always without problem, but alwais with this error.
> Please help. Where is the problem?
>
> Stan
>
>
> -
> 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=lnk&kid=120709&bid=263057&dat=121642
> ___
> synalist-public mailing list
> synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>   


-
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=lnk&kid=120709&bid=263057&dat=121642
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] Synaser and GSM mobile

2006-08-07 Thread standus
Hi,

I have this very simple code in C++ for communication with GSM mobile:
[code]
{
 // ser komunikace
 TBlockSerial *ser = new(TBlockSerial);
 ListBox1->Items->Add(GetSerialPortNames());
 Application->ProcessMessages();

 try {
  ser->Connect("COM1");
  ser->Config(9600,8,'N',SB1,false,false);
  Sleep(200);
  // sms v pdu
  //ser->ATCommand(EditCislo->Text+char(0x0d)+MemoText->Lines->Text+char(0x1a));
  ser->ATCommand("AT");
  if ((ser->LastError != 0))
   {
   ShowMessage("Error1: "+ser->LastErrorDesc +",\n" + ser->LastError);
   ser->Free();
   return;
   }
  ser->ATCommand(EditCislo->Text+char(0x0d));
  ser->ATCommand(MemoText->Lines->Text+char(0x1a));

 } catch (...) {
  ShowMessage("Error komunikace.");
 }
 ser->Free();
}
[/code]

And problem is, that everytime i get error 9997: Timeout during operation. 
after all ser->ATCommands
My System is WinXP + BDS2006 update2. I tried Set Sleep(xxx) in all possible 
steps, but without positive result.
SMS is sended always without problem, but alwais with this error.
Please help. Where is the problem?

Stan


-
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=lnk&kid=120709&bid=263057&dat=121642
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Synaser Error

2006-08-03 Thread Lukas Gebauer

> 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.php&p=sourceforge&CID=DEVDEV
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] Synaser Error

2006-07-31 Thread standus
Ahoj,
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:

// ser komunikace
TBlockSerial *ser = new(TBlockSerial);
//ListBox1->Items->Add(GetSerialPortNames());
try {
ser->Connect("COM1");
ser->Config(9600,8,'N',SB1,false,false);
ser->ATCommand(Edit1->Text+char(0x0d));   //cislo mobilu
ser->ATCommand(Memo1->Lines->Text+char(0x1a));  //text zpravy
if ((ser->LastError != 0) || (!ser->ATResult))
{
ShowMessage("Chyba!: "+ser->LastErrorDesc);
ser->Free();
return;
}
} catch (...) {
ShowMessage("Chyba komunikace.");
}
ser->Free();

a pise mi to chybu: Timeout During Operation. Error:9997
Fakt jsem neprisel jak to vyresit. Nejaky napad?

Diky
Stan


-
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.php&p=sourceforge&CID=DEVDEV
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public