Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
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
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
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
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
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" <gra...@xora.org.uk> An: "ql-users@lists.q-v-d.com" <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
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
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" <de...@q40.de> To: <ql-us...@q-v-d.com> 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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
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" <de...@q40.de> To: <ql-us...@q-v-d.com> 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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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
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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
Hi Ian, Just tried it again without the sudo command, and now it runs. Not sure what was going on there. Ah, isn't computing fun? Who ever said it was a science? Anyway, good, as Graeme said, there's no need to run it as root. Have fun. Wolfgang Regards Ian - Original Message - From: "Graeme Gregory" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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
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" <gra...@xora.org.uk> > To: <ql-users@lists.q-v-d.com> > 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
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
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" <gra...@xora.org.uk> To: <ql-users@lists.q-v-d.com> 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
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
Hi Marcos Checked Java was there and correct with $ java -version That proved to be OK. Then $ sudo java -jar /home/pi/Downloads/SMSQmulator.jar Also forgot that the operating system is case sensitive, the 'D' in Download being the culprit. Still not able to double click on the file in file manager to launch. So the trouble was I needed to start it as a super user (sudo) and case sensitive in the command line. Also the pi needs to be running in GUI mode. So entering the command line in LXterminal. So now looking into setting up a short cut to launch from the GUI. Running on a Pi2 and the speed is not bad as far as I can see. Making it portable, by running off batteries, using a USB power block. Give a few hours operation between charges. The touch screen removes the need for a mouse and Florence the on screen keyboard and also setting the config to boot straight to the GUI. Regards Ian - Original Message - From: "Marcos Cruz" <q...@programandala.net> To: <ql-us...@q-v-d.com> Sent: Tuesday, February 16, 2016 8:07 PM Subject: Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi En/Je/On 2016-02-16 19:27, Ian Burkinshaw escribió / skribis / wrote : Got it working now. What was the problem? Working is a Pi with the 7" touchscreen and on screen keyboard Florence. so a portable QL with no keyboard or mouse. What did you use to make the Pi portable? I built my own portable Pi and I'm very happy with it, I'm using it as my main computer. http://programandala.net/en.computer.raspesis.0x07.html -- Marcos Cruz http://programandala.net ___ QL-Users Mailing List ___ QL-Users Mailing List
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
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
En/Je/On 2016-02-16 19:27, Ian Burkinshaw escribió / skribis / wrote : > Got it working now. What was the problem? > Working is a Pi with the 7" touchscreen and on screen keyboard > Florence. so a portable QL with no keyboard or mouse. What did you use to make the Pi portable? I built my own portable Pi and I'm very happy with it, I'm using it as my main computer. http://programandala.net/en.computer.raspesis.0x07.html -- Marcos Cruz http://programandala.net ___ QL-Users Mailing List
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
En/Je/On 2016-02-16 17:52, Ian Burkinshaw escribió / skribis / wrote : > Tried double clicking no luck. That depends on your desktop, window manager or file manager be configured. But if you use any common combination of those it should work out of the box. > Tried the command line, again no luck get the error report 'Error: > Unable to access jarfile' then the path of the SMSQmulator.jar file > which is /home/pi/downloads/SMSQmulator.jar. Which I can see in the > file manager. > > Tried with both with and without the sudo at the start of the command line. Seems a permissions issue, but if so it should work with `sudo`. Have you tried the command in the directory where you unpacked SMSQmulator? I think I had a similar problem in 2014 and finally created a loader: #!/bin/sh # ~/bin/smsqmulator.sh # Loader for SMSQmulator cd ABSOLUTE-PATH-TO-SMSQMULATOR/ java -jar ./SMSQmulator.jar & cd - exit 0 But I've just tried this from the home directory and it works for me: java -jar ABSOLUTE-PATH-TO-SMSQMULATOR/SMSQmulator.jar & -- Marcos Cruz http://programandala.net ___ QL-Users Mailing List
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
Maybe it's your class path? echo "${CLASSPATH}" Should show you where the java system will look for jar and class files etc. Look for "." which indicates "current directory". The path separator is a colon ":". You might get lucky if you do this: export CLASSPATH=/home/pi/downloads:"${CLASSPATH}" Also, what happens if you type: java -version Do you get a response? Does the Pi user own the jar file? ls -l downloads/SMSQmulator.jar Disclaimer: I'm not a java developer, nor do I play one on TV. Cheers, Norm. On 16 February 2016 17:52:58 GMT+00:00, Ian Burkinshaw <ian.burkins...@btopenworld.com> wrote: >Hi Wolfgang > >Thanks for your help. > >Tried double clicking no luck. > >Tried the command line, again no luck get the error report 'Error: >Unable to >access jarfile' then the path of the SMSQmulator.jar file which is >/home/pi/downloads/SMSQmulator.jar. Which I can see in the file >manager. > >Tried with both with and without the sudo at the start of the command >line. > >Clearly I have missed something somewhere. > >Ian >- Original Message - >From: "Wolfgang Lenerz" <wlen...@free.fr> >To: <ql-us...@q-v-d.com> >Sent: Tuesday, February 16, 2016 5:32 PM >Subject: Re: [Ql-Users] Instrutions for running SMSQmulator on >Raspberry Pi > > >> >> Hi, >> >> do not unzip the jar file itself. >> >> Just Double-click on the jar file. >> >> That should do it. >> >> Else, from a command line, type "java -jar >> <entire_path_and_name_of_jar_file". >> >> HTH >> >> Wolfgang >> >> On 02/16/2016 06:14 PM, Ian Burkinshaw wrote: >>> Can anybody help. >>> >>> Have installed openjdk7 and also java 7. All seems OK >>> >>> Saved and unziped the SMSQmulator file. and then the jar file >>> >>> Can see all the components of the java application, but canot see >how to >>> run it. >>> >>> Ian >>> >>> >>> ___ >>> QL-Users Mailing List >>> >>> >> ___ >> QL-Users Mailing List >> > > >___ >QL-Users Mailing List -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ QL-Users Mailing List
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
Hi Wolfgang Thanks for your help. Tried double clicking no luck. Tried the command line, again no luck get the error report 'Error: Unable to access jarfile' then the path of the SMSQmulator.jar file which is /home/pi/downloads/SMSQmulator.jar. Which I can see in the file manager. Tried with both with and without the sudo at the start of the command line. Clearly I have missed something somewhere. Ian - Original Message - From: "Wolfgang Lenerz" <wlen...@free.fr> To: <ql-us...@q-v-d.com> Sent: Tuesday, February 16, 2016 5:32 PM Subject: Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi Hi, do not unzip the jar file itself. Just Double-click on the jar file. That should do it. Else, from a command line, type "java -jar <entire_path_and_name_of_jar_file". HTH Wolfgang On 02/16/2016 06:14 PM, Ian Burkinshaw wrote: Can anybody help. Have installed openjdk7 and also java 7. All seems OK Saved and unziped the SMSQmulator file. and then the jar file Can see all the components of the java application, but canot see how to run it. Ian ___ QL-Users Mailing List ___ QL-Users Mailing List ___ QL-Users Mailing List
Re: [Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
Hi, do not unzip the jar file itself. Just Double-click on the jar file. That should do it. Else, from a command line, type "java -jar
[Ql-Users] Instrutions for running SMSQmulator on Raspberry Pi
Can anybody help. Have installed openjdk7 and also java 7. All seems OK Saved and unziped the SMSQmulator file. and then the jar file Can see all the components of the java application, but canot see how to run it. Ian ___ QL-Users Mailing List