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? 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
|
2011/10/4 Vaidotas Didžbalis <[hidden email]>
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
best, Eliot |
In reply to this post by vaidasd
There were some threads about SerialPlugin quite recently: http://forum.world.st/template/NamlServlet.jtp?macro=search_page&node=104410&query=SerialPort good luck 2011/10/4 Vaidotas Didžbalis <[hidden email]>
-- Mariano http://marianopeck.wordpress.com |
Free forum by Nabble | Edit this page |