Newb question: open port with com>9
Maomao18-Feb-2013/14:26:48+1:00
Hi,
On Windows7 with Rebol/view-278-3-1:

I am trying to open a serial port with this command:
p: open/no-wait serial://port1/9600/8/none/1

When my device in on com9
>> system/ports/serial
== [com9]
it's working, the port opens

If my device is on a com > 9, for example com11, I have this error:
>> p: open/no-wait serial://port1/9600/8/none/1
** Access Error: Cannot open com11
** Near: p: open/no-wait serial://port1/9600/8/none/

Any advice?

Thx
DocKimbel18-Feb-2013/15:20:46+1:00
Trying by adding this code line before you open the port:
append system/ports/serial 'com11


HTH.
Maomao18-Feb-2013/15:28:41+1:00
Thx for your reply but not sure to understand. Here are my complete procedures:

Device on com9:
>> clear system/ports/serial
== []
>> append system/ports/serial 'com9
== [com9]
>> system/ports/serial
== [com9]
>> p: open/no-wait serial://port1/9600/8/none/1
>> close p
>>

Now when I switched the device to com11 or any com>9:
>> clear system/ports/serial
== []
>> append system/ports/serial 'com11
== [com11]
>> system/ports/serial
== [com11]
>> p: open/no-wait serial://port1/9600/8/none/1
** Access Error: Cannot open com11
** Near: p: open/no-wait serial://port1/9600/8/none/1
>>

Am I missing something with com > 9?
DocKimbel18-Feb-2013/15:41:01+1:00
Are you doing all that in the same REBOL console session?

Does it work if you start your test sequence by first using COM11 then COM9?
Maomao18-Feb-2013/15:45:03+1:00
Yes, I am doing these in the same REBOL session.
Coms superior to 9 never open even if I start with it.
ldci18-Feb-2013/15:48:24+1:00
Hi
There is a bug in rebol view : port >= 10 are not recognized. I had the same problem some years ago and the only way I found was to use port < 10
Regards

Login required to Post.


Powered by RebelBB and REBOL 2.7.8.4.2