Compose::Melbourne Functional Programming event coming up, 27-28 August 2018

2018-08-19 Thread Les Kitchen via luv-main
Dear fellow LUV members, Compose::Melbourne is running this year for the third time, coming up in just over a week: http://www.composeconference.org/2018-melbourne/ It's a two-day event, aimed at building and supporting the functional-programming community in Melbourne. So if you're at all

expect script

2018-08-19 Thread cory seligman via luv-main
Hi All, I'm having some trouble making expect work. I need it to talk to some vintage equipment over usb serial, and I think I'm getting hung up on opening the port. When the script runs, it just connects to the device and sits there. I can drive it interactively, but it doesn't attempt to

Re: expect script

2018-08-19 Thread Paul van den Bergen via luv-main
are you using a USB to Serial dongle? for some time now they've been a standardised SoC that apparently handles breaks poorly... so if the system is expecting a break... (found this out for Unify PABX and Cisco serial - in the latter case, dropping the speed to 2400 and holding down space bar for

Re: expect script

2018-08-19 Thread Paul van den Bergen via luv-main
the ones I played with used the CH340 chipset: https://sparks.gogo.co.nz/ch340.html https://cdn.sparkfun.com/datasheets/Dev/Arduino/Other/CH340DS1.PDF do you know what chipset it's using? On Mon, 20 Aug 2018 at 11:32, Paul van den Bergen < paul.vandenber...@gmail.com> wrote: > Yeah, that's

Re: expect script

2018-08-19 Thread Paul van den Bergen via luv-main
the alternative (read "proper") is FTDI http://forum.arduino.cc/index.php?topic=189239.0 On Mon, 20 Aug 2018 at 11:37, Paul van den Bergen < paul.vandenber...@gmail.com> wrote: > the ones I played with used the CH340 chipset: > https://sparks.gogo.co.nz/ch340.html >

Re: expect script

2018-08-19 Thread cory seligman via luv-main
Yes, I am using a USB serial dongle. It's a known reasonably good quality brand that otherwise works fine interactively. On Mon, Aug 20, 2018 at 10:33 AM, Paul van den Bergen < paul.vandenber...@gmail.com> wrote: > are you using a USB to Serial dongle? for some time now they've been a >

Re: expect script

2018-08-19 Thread Paul van den Bergen via luv-main
Yeah, that's probably fine - but it's still something I'd look at for workarounds... that whole "connect then fail to interact" thing sounds familiar... it's waiting for something that never comes, or the return is swallowed by the USB serial chip... On Mon, 20 Aug 2018 at 10:47, cory seligman

Re: expect script

2018-08-19 Thread cory seligman via luv-main
Oh, it’s genuine FTDI. That part is fine. I’ve had it dumping masses of data successfully if I manually start the transfer. Sent from my VT100 > On 20 Aug 2018, at 11:37 am, Paul van den Bergen > wrote: > > the ones I played with used the CH340 chipset: >

Re: expect script

2018-08-19 Thread Craig Sanders via luv-main
On Mon, Aug 20, 2018 at 10:29:46AM +1000, cory seligman wrote: > I'm having some trouble making expect work. expect itself is a complete PITA. IMO you are better off using one of the expect-like modules for a general purpose programming language like perl or python. Also IMO, the time and

Re: expect script

2018-08-19 Thread Craig Sanders via luv-main
On Mon, Aug 20, 2018 at 01:31:26PM +1000, Craig Sanders wrote: > Perl has several to choose from - the most generic is Expect.pm[1]. There's > also application-specific ones like Device::SerialPort[2]. or for specific > network protocols with, e.g., Net::SSH[3] and Net::Telnet[4]. > >

Re: expect script

2018-08-19 Thread cory seligman via luv-main
This is probably good advice. In the past I think I've made expect work, but I've wasted enough time on it now that I could have just written some code to do it. On Mon, Aug 20, 2018 at 1:31 PM, Craig Sanders via luv-main < luv-main@luv.asn.au> wrote: > On Mon, Aug 20, 2018 at 10:29:46AM

Re: expect script

2018-08-19 Thread Duncan Roe via luv-main
On Mon, Aug 20, 2018 at 10:29:46AM +1000, luv-main wrote: > Hi All, > > I'm having some trouble making expect work. > > I need it to talk to some vintage equipment over usb serial, and I think > I'm getting hung up on opening the port. > > When the script runs, it just connects to the device and