Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Using serial ports in Linux (rebol/core 2.5.6)

From: petr:krenzelok:trz:cz at: 7-Jan-2004 15:28

jose wrote:
>Hi, > >I'm trying to use a V.92 modem from Core + Linux >RedHat 9. > >The modem works fine using minicom but I can not get >it to dial from Rebol/Core. > >Below are the steps: > >;--- > >system/ports/serial: [ttyS0 ttyS1] > >modem: open/string/direct/no-wait >serial://port1/9600/8/none/1 > >insert modem "ATDT123123^M" >
I asked several times, but did not get any reply as maybe ppl don't use rebol serial port heavily. The problem is, that once I send more than two bytes into device, it will not accept it or the result is completly screwed. I then tried Hyperterminal - I loaded some.txt file I had and I could see hyperterminal sends those chars one by each other. So - as an immediate help - try to write short func, e.g. as following: string: "ATDT123123^M" send-comm: func [string-to-send [string!]][foreach char string-to-send [insert comm-port char]] send-comm string At least something like that helped me ... and - while in /no-wait mode - if you want/need to wait for the reply from comm port - don't forget to put wait comm-port imeidatelly after call of send-comm, or rebol will not wait for the answer and runs out ... HTH, -pekr-