Hi Norbert, My answer below. I am CCing Louis which may be answer better than me. On Wed, Dec 5, 2018 at 8:07 AM Norbert Schlemmer <[hidden email]> wrote:
Honestly, I don't know what the former are. I have always used the latter RaspberryHardwareInterface*App.
I don't know where Louis is documenting all these but for RaspberryHardwareInterfaceViaDaemonTestApp to work you need: a) libgpiod installed in your OS. Probably something like "sudo apt-get install pigpio". You should be able to do "sudo pigpiod" to start the libbpio deamon. But the Smalltalk wrapper does this for you if it is not running. But just that you know that you need pigpiod. b) Entries in the .ini file: [PlatformLibrary Name Mappings] RaspberryGpio=libpigpio.so RaspberryGpioDaemon=libpigpiod_if2.so RaspberryGpioUltrasonicDaemon=libpigpioultrasonic.so
No clue what that is, sorry. Let us know how it goes. Cheers, You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Norbert and Mariano,
-- RaspberryHardwareInterfaceCoreApp v0.11 and RaspberryHardwareInterfaceViaDaemonTestApp v0.02 are the latest and the two applications to load and use. The applications whose names don't start with "Raspberry" are old. The project started out as a port of the Raspberry Pi hardware interface code from Squeak. It turned into a rewrite because of the differences between the way Squeak and VA Smalltalk handle platform calls and the way the original author dealt with the interface object. Once I started the rewrite I renamed things to better separate stuff and to allow for both a daemon and non-daemon interface (the Squeak code only had a daemon interface). We have a non-daemon interface but it currently crashes the VM. I keep it around in the hope the the VM problem will someday be fixed. No pressure on the guys at Instantiations as the daemon interface is fine for the vast majority of the cases. Norbert, if Mariano's answer about the test program not working didn't solve the problem, please post more about it and we will see if we can help. As for the problem with the OneWireDevice, much of the code for a lot of the devices that can be connected to the Raspberry Pi was ported/copied as is with little to no testing as I don't have the devices to test with. The OneWireDevice code and perhaps other stuff uses the Squeak file I/O interface that is different from our CFS interface. I knew there would be problems there but ran out of time to play with it and without hardware to test with I decided leave it as it is and wait for someone like yourself to find the problems. If you can figure out how to fix the problem I will add the fix to the system. If you need help ask and I will see what I can do. I warn you I am juggling three projects at the moment, so fixing it on my own is not a high priority but I will take small amounts of time to help. Lou On Wednesday, December 5, 2018 at 6:46:02 AM UTC-5, marianopeck wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Norbert,
-- Can you please tell me more about the OneWireDevice you are using. I ask because I think the OneWireDevices use the disk system but I'm not sure why. I would like to change that if we could but I suspect that it can't be changed because the GPIO library being called "libpigpiod_if2.so" is using the disk for the functions that deal with the OneWireDevices. Lou On Wednesday, December 5, 2018 at 10:17:16 AM UTC-5, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Louis I'm using a DS18B20 temperature sensor with the “One-Wire” communication protocol, and using the RaspberryHardwareInterfaceCoreApp.
To get this device running, I had to change OneWireDevice class>>#diviceDirectoryNamesMatching: because the directory pattern has to be '-*' instead of '.*' and the return values (commented " self baseDirectory , '/' , "). The complete path of the device is /sys/bus/w1/devices/28-020691770dfc/ It seems that the disk system is needed for “One-Wire” devices. br Norbert You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Norbert,
-- I will make the change you describe but wait a while to publish it to VAST Goodies in case you come up with anything else. Thanks, Lou. On Thursday, December 6, 2018 at 10:51:42 AM UTC-5, Norbert Schlemmer wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Noschvie
Hi Norbert,
-- Does this look good to you?
Lou On Thursday, December 6, 2018 at 10:51:42 AM UTC-5, Norbert Schlemmer wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Louis .) please change the comment, just "directory device names" instead of "full directory ..." and rename the method to #deviceDirectoryNamesMatching: (typo), senders: OneWireDevice class>>#listDevices OneWireDevice class>>#listDevicesOfType: .) please have a look to RaspberryHardwareInterfaceViaDaemonSubApp class>>#shutdown, should be #shutDown (typo) .) the OneWire* classes are independent of pigpio library, maybe we should use a appropriate sub application for these classes. regards Norbert You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Norbert,
-- On Friday, December 7, 2018 at 4:53:13 AM UTC-5, Norbert Schlemmer wrote:
Done, good catch.
I added #shutDown and kept #shutdown just in case. Normally I don't like duplicates like this but when one ports/rewrites interfaces like this there is often a blending of styles.
I agree with your assessment. Do you think the OneWire* classes should be in their own sub app or moved up to the main app? I'm on the fence and could go either way and I'm open to suggestions from anyone. Thanks for your work and Ideas. Maybe when you get some time you can tell us something about what you are doing. Lou
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Louis
#shutdown should be deleted, because the base class implements #shutDown
own sub app for OneWire*
have no real project with Raspberry, just interested in these technologies. The "real projects" with VA are running under Windows and with Oracle regards Norbert You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Norbert,
-- I will implement all of your suggestions, wait a little while to see if anything else comes up and then publish to VAST Goodies. Lou On Monday, December 10, 2018 at 5:31:58 AM UTC-5, Norbert Schlemmer wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Mariano Martinez Peck-2
Hello
added these entries with full path /usr/lib/ and the test program works fine :-) Thanks! Norbert You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
On Tue, Dec 11, 2018 at 4:37 AM Norbert Schlemmer <[hidden email]> wrote:
Excellent!!! Glad you made it work! Once you have the first example working, the rest is up to your imagination :) Best, You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Louis LaBrunda
Hi Norbert, Everyone,
-- I have implemented all of Norbert's suggestions and published to VAST Goodies as RaspberryHardwareInterfaceCore version 1.04. Lou On Monday, December 10, 2018 at 8:50:51 AM UTC-5, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Louis
--
looks fine, thanks! Norbert You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Great!
-- On Monday, January 28, 2019 at 11:20:43 AM UTC-5, Norbert Schlemmer wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |