Luc Fabresse <luc.fabresse@gmail.com> writes:Ok I downloaded this Virtual Machine and tried it, but still the erro
> Hi Friedrich,
>
> �I did not test myself but I will soon.
> �Since the Jenkins is down, you can found the latest VM (with the SerialPlugin
> modifications that Esteban did) in my dropbox:
> https://www.dropbox.com/sh/flx2cc8mjszhckg/uZ8sTxSB1k
persists:
8 November 2012 5:24:29.474 pm
VM: unix - i686 - linux-gnu - CoInterpreter VMMaker-oscog-EstebanLorenzano.166 uuid: 5773fcb9-2982-4507-8a9e-4308ec33731e Nov �6 2012, StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.166 uuid: 5773fcb9-2982-4507-8a9e-4308ec33731e Nov �6 2012, https://git.gitorious.org/cogvm/blessed.git Commit: a7bf128cd3b9389e77ea0cdec9a515282926a483 Date: 2012-11-02 14:17:44 +0100 By: Esteban Lorenzano <estebanlm@gmail.com> Jenkins build #136
Image: Pharo1.4 [Latest update: #14457]
SerialPort(Object)>>error:
� � � � Receiver: SerialPort(closed, 9600 baud, 8 bits, 1 stopbits, no parity)
� � � � Arguments and temporary variables:
� � � � � � � � aString: � � � �'Cannot open ''/dev/ttyUSB0'''
� � � � Receiver's instance variables:
� � � � � � � � port: � nil
� � � � � � � � baudRate: � � � 9600
� � � � � � � � stopBitsType: � 1
� � � � � � � � parityType: � � 0
� � � � � � � � dataBits: � � � 8
� � � � � � � � outputFlowControlType: �0
� � � � � � � � inputFlowControlType: � 0
� � � � � � � � xOnByte: � � � �19
� � � � � � � � xOffByte: � � � 24
SerialPort>>openPort:
� � � � Receiver: SerialPort(closed, 9600 baud, 8 bits, 1 stopbits, no parity)
� � � � Arguments and temporary variables:
� � � � � � � � portId: � � � � '/dev/ttyUSB0'
� � � � � � � � result: � � � � nil
� � � � Receiver's instance variables:
� � � � � � � � port: � nil
� � � � � � � � baudRate: � � � 9600
� � � � � � � � stopBitsType: � 1
� � � � � � � � parityType: � � 0
� � � � � � � � dataBits: � � � 8
� � � � � � � � outputFlowControlType: �0
� � � � � � � � inputFlowControlType: � 0
� � � � � � � � xOnByte: � � � �19
� � � � � � � � xOffByte: � � � 24
UndefinedObject>>DoIt
� � � � Receiver: nil
� � � � Arguments and temporary variables:
� � � � Receiver's instance variables:
nil
Compiler>>evaluate:in:to:notifying:ifFail:logged:
� � � � Receiver: a Compiler
� � � � Arguments and temporary variables:
� � � � � � � � textOrStream: � a ReadWriteStream
� � � � � � � � aContext: � � � nil
� � � � � � � � receiver: � � � nil
� � � � � � � � aRequestor: � � a TextMorphForEditView(464781312)
� � � � � � � � failBlock: � � �[self morph flash.
� � � � ^ nil]
� � � � � � � � logFlag: � � � �true
� � � � � � � � methodNode: � � DoIt
� � � � sPort := SerialPort new.
� � � � ^ sPort openPort: '/dev/ttyUSB0'
� � � � � � � � method: � � � � (UndefinedObject>>#DoIt "a CompiledMethod(30146560)")
� � � � � � � � value: �nil
� � � � � � � � toLog: �nil
� � � � � � � � itsSelection: � nil
� � � � � � � � itsSelectionString: � � nil
� � � � Receiver's instance variables:
� � � � � � � � sourceStream: � a ReadWriteStream
� � � � � � � � requestor: � � �a TextMorphForEditView(464781312)
� � � � � � � � class: �UndefinedObject
� � � � � � � � category: � � � nil
� � � � � � � � context: � � � �nil
� � � � � � � � parser: � � � � a Parser
[rcvr class evaluatorClass new
� � � � � � � � evaluate: self selectionForDoitAsStream
� � � � � � � � in: ctxt
� � � � � � � � to: rcvr
� � � � � � � � notifying: self morph
� � � � � � � � ifFail: [self morph flash.
� � � � � � � � � � � � ^ nil]
� � � � � � � � logged: true] in SmalltalkEditor>>evaluateSelectionAndDo:
� � � � Receiver: a SmalltalkEditor
� � � � Arguments and temporary variables:
� � � � � � � � rcvr: � nil
� � � � � � � � ctxt: � nil
� � � � Receiver's instance variables:
� � � � � � � � morph: �a TextMorphForEditView(464781312)
� � � � � � � � selectionShowing: � � � true
� � � � � � � � model: �a Workspace
� � � � � � � � editingState: � a SmalltalkEditingState
This is the code I tried:
sPort := SerialPort new.
sPort close.
sPort openPort: '/dev/ttyUSB0'.
What can I have done wrong?
If I'm trying the other approach (making a symbolc link to /dev/ttyS0
I can open the port and get my informations back.
Regards
Friedrich
--
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus