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

Using serial ports in Linux (rebol/core 2.5.6)

 [1/7] from: jjmmes::yahoo::es at: 7-Jan-2004 14:20


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" ;--- the insert returns but the modem does not dial out. Am I doing anything wrong or should I be aware of any bug related to serial port usage ? Thank you Jose ___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es<

 [2/7] 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
<<quoted lines omitted: 7>>
>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-

 [3/7] from: g:santilli:tiscalinet:it at: 7-Jan-2004 15:51


Hi Petr, On Wednesday, January 7, 2004, 3:28:05 PM, you wrote: PK> I asked several times, but did not get any reply as maybe ppl don't use PK> rebol serial port heavily. The problem is, that once I send more than PK> two bytes into device, it will not accept it or the result is completly PK> screwed. On what platform? I never had any problems with the serial port on Windows. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [4/7] from: petr:krenzelok:trz:cz at: 7-Jan-2004 16:23


Gabriele Santilli wrote:
>Hi Petr, >On Wednesday, January 7, 2004, 3:28:05 PM, you wrote:
<<quoted lines omitted: 4>>
>On what platform? I never had any problems with the serial port on >Windows.
On windows - maybe there was problem with external device then - we run it in debug mode and simply rebol ignored how logical states were put onto wires. PC did not wait untill device handles incoming data. I don't remember if we tried rtc/cts or other settings, but simply sending longer string one char at a time solved situation for us, so we did not investigate further back at that time ... -pekr-

 [5/7] from: greggirwin:mindspring at: 7-Jan-2004 10:27


Hi Jose, j> system/ports/serial: [ttyS0 ttyS1] j> modem: open/string/direct/no-wait j> serial://port1/9600/8/none/1 j> insert modem "ATDT123123^M" Did you try adding "update modem" after the insert? I know you shouldn't need to with /direct but... -- Gregg

 [6/7] from: petr:krenzelok:trz:cz at: 7-Jan-2004 19:05


Gregg Irwin wrote:
>Hi Jose, >j> system/ports/serial: [ttyS0 ttyS1]
<<quoted lines omitted: 3>>
>Did you try adding "update modem" after the insert? I know you >shouldn't need to with /direct but...
I think that update should not be really needed after opening whatever kind of port, unless you change its parameters, etc. with serial ports it is parity, rtc/cts etc. kind of settings .... I will install one or two serial port monitors tomorrow and will some test if I will have some free time ... we will see ... -pekr-

 [7/7] from: jjmmes:y:ahoo:es at: 8-Jan-2004 19:13


I've made no progress getting the serial port to work in Linux so I reported it to feedback as a bug. I´ll let you know if I find out more about it Let me know if you find out more about this. It's really frustrating not being able to use the serial ports in Linux Thanks --- Petr Krenzelok <[petr--krenzelok--trz--cz]> escribió:
> Gregg Irwin wrote: > >Hi Jose,
<<quoted lines omitted: 29>>
> [rebol-request--rebol--com] with unsubscribe as the > subject.
___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es<

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted