Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi

2016-02-26 Thread Wolf

Hi,

That's good to know, thanks.

Wolfgang



Basically you write XXX to /sys/class/gpio/export where XXX is the
number of the gpio you need to control.

A new directory /sys/class/gpio/gpio_XXX will appear. Inside that you
will find files to set/read state.

Graeme
___
QL-Users Mailing List



___
QL-Users Mailing List


Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi

2016-02-26 Thread Graeme Gregory


On Fri, 26 Feb 2016, at 02:53 PM, Wolfgang Lenerz wrote:
> Hi,
> 
> >>
> > If SMSQlmulator can access files on the host then map /sys/class/gpio
> > into a place where it can access then all GPIOs can be controlled from
> > simple file read/writes to files in that directory.
> > 
> > Graeme
> > __
> 
> 
> If this is so (I don't have a Pi), pointing, say  NFA8_ to that
> directory ought to be enough. You probably want to make sure that "NFA
> file name change" is switched off.
> 
> I just tried this with /sys/class/firmware/ and was able to read the
> "files" in that directory.
> 
> Have fun!
> 
Basically you write XXX to /sys/class/gpio/export where XXX is the
number of the gpio you need to control.

A new directory /sys/class/gpio/gpio_XXX will appear. Inside that you
will find files to set/read state.

Graeme
___
QL-Users Mailing List


Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi

2016-02-26 Thread Wolfgang Lenerz
Hi,

>>
> If SMSQlmulator can access files on the host then map /sys/class/gpio
> into a place where it can access then all GPIOs can be controlled from
> simple file read/writes to files in that directory.
> 
> Graeme
> __


If this is so (I don't have a Pi), pointing, say  NFA8_ to that
directory ought to be enough. You probably want to make sure that "NFA
file name change" is switched off.

I just tried this with /sys/class/firmware/ and was able to read the
"files" in that directory.

Have fun!

Wolfgang

___
QL-Users Mailing List


Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi

2016-02-26 Thread Graeme Gregory


On Fri, 26 Feb 2016, at 09:32 AM, tobias.froesc...@t-online.de wrote:
> Shameless advertising:
> 
> uqlx on the RPi is not quite as colorful as SMSQMulator, but should be
> able to access the GPIO by way of executing a native Linux Program and
> talking to it through its pty_ interface.
> 
Or again just by mapping /sys/class/gpio/ into a location it can use as
a drive then dealing direct with GPIOs there :-)

Graeme
___
QL-Users Mailing List


Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi

2016-02-26 Thread tobias.froesc...@t-online.de
Shameless advertising:

uqlx on the RPi is not quite as colorful as SMSQMulator, but should be able to 
access the GPIO by way of executing a native Linux Program and talking to it 
through its pty_ interface.

Tobias



-Original-Nachricht-
Betreff: Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
Datum: 2016-02-26T10:26:31+0100
Von: "Graeme Gregory" 
An: "ql-users@lists.q-v-d.com" 



On Fri, 26 Feb 2016, at 09:12 AM, Derek Stewart wrote:> Hi Ian,>> I have 
SMSQmualtor running OK on a Raspberry PI2, I am wondering how to> access the 
GPIO port from SBASIC, as one of the best features of the> Raspberry PI is the 
ease of I/O access form simple programming languages> like Python.> 
If SMSQlmulator can access files on the host then map /sys/class/gpio
into a place where it can access then all GPIOs can be controlled from
simple file read/writes to files in that directory.

Graeme
___
QL-Users Mailing List
___
QL-Users Mailing List


Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi

2016-02-26 Thread Graeme Gregory


On Fri, 26 Feb 2016, at 09:12 AM, Derek Stewart wrote:
> Hi Ian,
> 
> I have SMSQmualtor running OK on a Raspberry PI2, I am wondering how to 
> access the GPIO port from SBASIC, as one of the best features of the 
> Raspberry PI is the ease of I/O access form simple programming languages 
> like Python.
> 
If SMSQlmulator can access files on the host then map /sys/class/gpio
into a place where it can access then all GPIOs can be controlled from
simple file read/writes to files in that directory.

Graeme
___
QL-Users Mailing List


Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi

2016-02-26 Thread Derek Stewart

Hi Ian,

I have SMSQmualtor running OK on a Raspberry PI2, I am wondering how to 
access the GPIO port from SBASIC, as one of the best features of the 
Raspberry PI is the ease of I/O access form simple programming languages 
like Python.


Do you think extensions of a libraries are required to allow SBAISC 
programmes and compiled to be written access external devices connected 
to the Raspberry PI


Linux is easy, must more stable then Windows, QPC2, SMSQmualtor, 
Q-EMulator, all work with WINE... ans sometime a glass or two.


But the Raspberry PI is more sober, no Wine, only Java...

Regards,

Derek

On 17/02/16 19:52, Ian Burkinshaw wrote:

Hi Derek

Entered java -jar, works fine now. Just seems to be an extention of the
command line.

Have a desktop shortcut as well now. Plus my own custom QXL.WIN files,
all fully working now.

I still have a lot to learn about Raspberry Pi and Linux.

Best Regards

Ian
- Original Message - From: "Derek Stewart" 
To: 
Sent: Wednesday, February 17, 2016 5:07 PM
Subject: Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi



Hi Ian,

If you open up the File Manager and select the SMSQmulator.jar file.
Performing a right click to get the properties of the file. There
should be a tab called "Open With" to define the application to open
the .jar

Just point toward the Java Runtime and the double clicking the Jar
file will load the Java runtime and then the jar file.

Just like in Windows

Regards,

Derek

On 17/02/16 12:11, Ian Burkinshaw wrote:

Hi Graeme

Yes all the SMSQmulator files are owned by pi, the default user name I
have been using.

Just tried it again without the sudo command, and now it runs. Not sure
what was going on there.

Regards

Ian
- Original Message - From: "Graeme Gregory" 
To: 
Sent: Wednesday, February 17, 2016 10:49 AM
Subject: Re: [Ql-Users] Instrutions for running SMSQmulator on
Raspberry Pi



Hi Ian,

'ls -l' to show detailed listing will show who owns files.

Just because it is in your directory doesn't mean you own it, you could
have accidentally done something like 'sudo unzip smsqemulator.zip'

There is nothing in SMSQmulator or java that requires root to run so
something is wrong.

Graeme

On Wed, 17 Feb 2016, at 10:44 AM, Ian Burkinshaw wrote:

Hi Graeme

I assume it is against my log-in since I can see it in the File
Manager.

Ian

- Original Message - From: "Graeme Gregory"

To: 
Sent: Wednesday, February 17, 2016 10:35 AM
Subject: Re: [Ql-Users] Instrutions for running SMSQmulator on
Raspberry
Pi


>
>
> On 17/02/2016 10:29, Ian Burkinshaw wrote:
>> So the trouble was I needed to start it as a super user (sudo)
>
> I really hope thats not true as it goes totally against the
reason > for
> user accounts :-)
>
> Make sure the jar file is owned by your logged in user.
>
> Graeme
>
> ___
> QL-Users Mailing List
>

___
QL-Users Mailing List

___
QL-Users Mailing List




___
QL-Users Mailing List


___
QL-Users Mailing List




___
QL-Users Mailing List


___
QL-Users Mailing List