[Vm-dev] SerialPort

Eliot Miranda eliot.miranda at gmail.com
Tue Oct 4 15:16:58 UTC 2011


2011/10/4 Vaidotas Didžbalis <vaidasd at gmail.com>

>
> Hello,
> When using latest COG VM on XP Squeak 4.2 cannot use SerialPort. Same image
> on Interpreter VM does fine. Is this is the same on other platforms?
>

Is the plugin external?  If so, you'll almost certainly need to rebuild it
for Cog (or find an u-to-date version).  Cog's interpreterProxy version
is VM_PROXY_MAJOR 1, VM_PROXY_MINOR 12.


HTH
Eliot

thank you,
>
> Vaidotas
>
>
> Error: primWritePortByName:from:startingAt:count: failed
> 4 October 2011 3:17:37.742 pm
>
> VM: Win32 - Smalltalk
> Image: Squeak4.2 [latest update: #10966]
>
> SecurityManager state:
> Restricted: false
> FileAccess: true
> SocketAccess: true
> Working Dir C:\AK\test\testprinting\content
> Trusted Dir C:\AK\test\testprinting\content\Vaidas
> Untrusted Dir C:\Documents and Settings\Vaidas\My Documents\My Squeak
>
> SerialPort(Object)>>error:
> Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
>  Arguments and temporary variables:
> aString: 'primWritePortByName:from:startingAt:count: failed'
>  Receiver's instance variables:
> port: 'com11'
>  baudRate: 19200
> stopBitsType: 1
>  parityType: 0
> dataBits: 8
>  outputFlowControlType: 0
> inputFlowControlType: 0
>  xOnByte: 19
> xOffByte: 24
>
> SerialPort(Object)>>primitiveFailed:
> Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
>  Arguments and temporary variables:
> selector: #primWritePortByName:from:startingAt:count:
>  Receiver's instance variables:
> port: 'com11'
>  baudRate: 19200
> stopBitsType: 1
>  parityType: 0
> dataBits: 8
>  outputFlowControlType: 0
> inputFlowControlType: 0
>  xOnByte: 19
> xOffByte: 24
>
> SerialPort(Object)>>primitiveFailed
> Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
>  Arguments and temporary variables:
>
> Receiver's instance variables:
>  port: 'com11'
> baudRate: 19200
>  stopBitsType: 1
> parityType: 0
>  dataBits: 8
> outputFlowControlType: 0
>  inputFlowControlType: 0
> xOnByte: 19
>  xOffByte: 24
>
> SerialPort>>primWritePortByName:from:startingAt:count:
>  Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
> Arguments and temporary variables:
>  portName: 'com11'
> byteArray: '
> '
> startIndex: 1
> count: 1
>  Receiver's instance variables:
> port: 'com11'
>  baudRate: 19200
> stopBitsType: 1
>  parityType: 0
> dataBits: 8
>  outputFlowControlType: 0
> inputFlowControlType: 0
>  xOnByte: 19
> xOffByte: 24
>
> SerialPort>>nextPutAll:
> Receiver: SerialPort(#'com11', 19200 baud, 8 bits, 1 stopbits, no parity)
> Arguments and temporary variables:
>  aStringOrByteArray: '
> '
> Receiver's instance variables:
>  port: 'com11'
> baudRate: 19200
>  stopBitsType: 1
> parityType: 0
>  dataBits: 8
> outputFlowControlType: 0
>  inputFlowControlType: 0
> xOnByte: 19
>  xOffByte: 24
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20111004/59ef2808/attachment.htm


More information about the Vm-dev mailing list