sending (serial line) BREAK in OS/2 REXX? 
Author Message
 sending (serial line) BREAK in OS/2 REXX?

I'd love to be able to send a BREAK from an OS/2 REXX
script (especially one running under slattach).  Any
ideas on how to do it?

Last time I asked, the suggestions required more OS/2
programming than I'm up to.  Hopefully something new
is available.

Thanks!

--kyler



Mon, 14 Jul 1997 02:22:53 GMT  
 sending (serial line) BREAK in OS/2 REXX?
:I'd love to be able to send a BREAK from an OS/2 REXX script

If you have the C Set++ compiler, you could scavenge the following
code to create a REXX-callable DLL function.

Barry Nance
   author, "Using OS/2 Warp", "Introduction to Networking",
   "Client/Server LAN Programming", "Networking Windows for Workgroups",
   and "Connecting with LAN Server".

-------------------------- cut here -----------------------------
void    SendBreak(void)
        {
        if (ModemHandle == 0)
            return;
        rc = DosDevIOCtl(ModemHandle,
                         IOCTL_ASYNC,
                         ASYNC_SETBREAKON,
                         NULL,
                         0,
                         NULL,
                         (PVOID) &usErrFlags,
                         sizeof(usErrFlags),
                         (PULONG) &ulDataLen);
        BreakTime = 0350L;
        DosSleep(BreakTime);
        rc = DosDevIOCtl(ModemHandle,
                         IOCTL_ASYNC,
                         ASYNC_SETBREAKOFF,
                         NULL,
                         0,
                         NULL,
                         (PVOID) &usErrFlags,
                         sizeof(usErrFlags),
                         (PULONG) &ulDataLen);
        }



Thu, 17 Jul 1997 03:42:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. send break signal to serial port

2. How to pass Ctrl-Break to OS/2 window in VX-REXX

3. Serial Ports & REXX (OS/2)

4. HELP! --- Line Counting in OS/2 Rexx

5. HELP! --- Line Counting in OS/2 Rexx

6. Rexx Library with Multi-line input boxes (OS/2)

7. OS/2 Rexx, CMD lines, and percent chars

8. OS/2 REXX LINES()/LINEIN() problem

9. lines() in OS/2 rexx

10. OS/2: Rexx & command line

11. SGI: Breaking a format line into two lines

12. OS/2: Rexx Script from Win-OS file manager

 

 
Powered by phpBB® Forum Software