Visualworks 8.2 port access

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Visualworks 8.2 port access

markle
I have been developing an application using vw7.10.1 and an Arduino Duo.
Everything works well so far.
In an attempt to move to vw8.2pul I have met with a problem.

The Arduino uses ports '/dev/ttyACM0'  and '/dev/ttyS0'

To reproduce the problem:
WORKING
1 Arduino plugged into a USB .
2 Clean 7.10.1 image
3 Load Serial from Cincom public repository
4 inspect it:
   UnixTtyAccessor hookupTo: OSHandle.CurrentPlatformID.
   IOAccessor defaultForSerial open: '/dev/ttyACM0'

   returns an active UnixRealTtyAccessor

NOT WORKING
1 Arduino plugged into a USB .
2 Clean 8.2 image
3 Load Serial from Cincom public repository
4 inspect it:
   UnixTtyAccessor hookupTo: OSHandle.CurrentPlatformID.
   IOAccessor defaultForSerial open: '/dev/ttyACM0'

   returns an OsIllegalOperation.

The closest I can get to the cause of the problem appears to be in the following method and <primitive: 655>.

UnixRealTtyAccessor class >>primOpen: aString errInto: anErrorHolder
   "Answer an accessor on an opened named tty. The name should be
   of the form '/dev/*', where * specifies the tty device.  Answers a
   SmallInteger"

   <primitive: 655>
   ^anErrorHolder reportFor: self


----------------------------------------------------------------------------
My setup is:
OS:  Ubuntu 16.04.1 LTS
CPU: Intel(R) Core(TM) i7-3770 CPU 6 cores
USB: Intel Corporation 6 Series/C200 Series Chipset Family USB
   Enhanced Host Controller #1 (rev 05)(prog-if 20[EHCI])
Installed:
   7.10.1pul      binary vwlinuxx86_64 image visualnc64.im
   8.2pul         binary vwlinuxx86_64 image visualnc64.im
   Serial Parcel from the Cincom Public Repository.

----------------------------------------------------------------------------
bash script to initialise the usb and to start the image:

#!/bin/sh
stty -F /dev/ttyACM0 cs8 115200 -opost -isig -icanon
-iexten -echo -echoe -echok -echoctl -echoke noflsh  

export VISUALWORKS=/home/mark/Dev/vw7.10.1pul
cd /home/mark/Dev/vw7.10.1pul/image
/home/mark/Dev/vw7.10.1pul/bin/linuxx86_64/vwlinuxx86_64  /home/mark/Dev/vw7.10.1pul/image/visualnc64.im
----------------------------------------------------------------------------
If anyone could help to shed any light on this problem I would be most grateful.
Regards Mark (Lee)