After seeing much enthusiasm regarding getting access to GPIO pins on the URI/USB devices, I gave some thought to what would be the best and most efficient way to implement it, and came up with the following: http://app-rpt.qrvc.com/node/177 "Manipulating GPIO signals within chan_usbradio and chan_simpleusb" see also: http://app-rpt.qrvc.com/node/176 "Event Management Subsystem" The bad news is that I discovered (after much head pounding) that on the CM108AH chips, they removed GPIO 2, making only 2 GPIO pins available. That is not a positive thing, as far as I am concerned. Oh well, I guess 2 is better then 0. JIM WB6NIL
WHOA! The event management subsystem looks awesome, good work Jim!!!! Thanks for coding this up!!!!! Is this commited to SVN? Stephen K1LNX On Sat, Oct 9, 2010 at 9:41 PM, Jim Duuuude <telesistant@hotmail.com> wrote:
After seeing much enthusiasm regarding getting access to GPIO pins on the URI/USB devices, I gave some thought to what would be the best and most efficient way to implement it, and came up with the following:
http://app-rpt.qrvc.com/node/177
"Manipulating GPIO signals within chan_usbradio and chan_simpleusb"
see also:
http://app-rpt.qrvc.com/node/176
"Event Management Subsystem"
The bad news is that I discovered (after much head pounding) that on the CM108AH chips, they removed GPIO 2, making only 2 GPIO pins available. That is not a positive thing, as far as I am concerned.
Oh well, I guess 2 is better then 0.
JIM WB6NIL
_______________________________________________ App_rpt-users mailing list App_rpt-users@qrvc.com http://qrvc.com/mailman/listinfo/app_rpt-users
-- **************************************** Stephen Brown - ARS K1LNX Johnson City, TN EM86 http://www.k1lnx.net PSTN: 423-665-9367 SIP: k1lnx@k1lnx.net ****************************************
Yes, it is the current version in SVN. Its committed. My brain in pretty much fried at the moment. Perhaps I should be committed as well :-). P.S. I was under the impression that there was already a way of setting a channel variable from the Asterisk CLI, but a very brief glance a few moments ago did not turn anything up. Do any of you know a way of doing it?? If not I should have included that, as it would really be cool to be able to set stuff from external Linux processes. JIM Date: Sat, 9 Oct 2010 22:02:45 -0400 From: k1lnx@k1lnx.net To: app_rpt-users@qrvc.com Subject: Re: [App_rpt-users] Finally, GPIO signals on a USB device!!! WHOA! The event management subsystem looks awesome, good work Jim!!!! Thanks for coding this up!!!!! Is this commited to SVN? Stephen K1LNX On Sat, Oct 9, 2010 at 9:41 PM, Jim Duuuude <telesistant@hotmail.com> wrote: After seeing much enthusiasm regarding getting access to GPIO pins on the URI/USB devices, I gave some thought to what would be the best and most efficient way to implement it, and came up with the following: http://app-rpt.qrvc.com/node/177 "Manipulating GPIO signals within chan_usbradio and chan_simpleusb" see also: http://app-rpt.qrvc.com/node/176 "Event Management Subsystem" The bad news is that I discovered (after much head pounding) that on the CM108AH chips, they removed GPIO 2, making only 2 GPIO pins available. That is not a positive thing, as far as I am concerned. Oh well, I guess 2 is better then 0. JIM WB6NIL _______________________________________________ App_rpt-users mailing list App_rpt-users@qrvc.com http://qrvc.com/mailman/listinfo/app_rpt-users -- **************************************** Stephen Brown - ARS K1LNX Johnson City, TN EM86 http://www.k1lnx.net PSTN: 423-665-9367 SIP: k1lnx@k1lnx.net **************************************** _______________________________________________ App_rpt-users mailing list App_rpt-users@qrvc.com http://qrvc.com/mailman/listinfo/app_rpt-users
P.S. I was under the impression that there was already a way of setting a channel variable from the Asterisk CLI, but a very brief glance a few moments ago did not turn anything up. Do any of you know a way of doing it??
Hmm that's a good question, I just poked around on my 1.6 box because it seems like they included something like that with 1.6, not sure on 1.4 but nonetheless I'm not turning up anything either. Don't think it's possible... but I could be wrong -- **************************************** Stephen Brown - ARS K1LNX Johnson City, TN EM86 http://www.k1lnx.net PSTN: 423-665-9367 SIP: k1lnx@k1lnx.net ****************************************
On Sat, Oct 9, 2010 at 7:18 PM, Stephen - K1LNX <k1lnx@k1lnx.net> wrote:
P.S. I was under the impression that there was already a way of setting a
channel variable from the Asterisk CLI, but a very brief glance a few moments ago did not turn anything up. Do any of you know a way of doing it??
Hmm that's a good question, I just poked around on my 1.6 box because it seems like they included something like that with 1.6, not sure on 1.4 but nonetheless I'm not turning up anything either.
Don't think it's possible... but I could be wrong
-- **************************************** Stephen Brown - ARS K1LNX Johnson City, TN EM86 http://www.k1lnx.net PSTN: 423-665-9367 SIP: k1lnx@k1lnx.net ****************************************
_______________________________________________ App_rpt-users mailing list App_rpt-users@qrvc.com http://qrvc.com/mailman/listinfo/app_rpt-users
Have you looked at channelvariables.txt in /usr/src/asterisk/asterisk/doc?
Not sure if that will get you what you're looking for. 73's, Keith
I discovered (not with any help from the lack of documentation from C-media) that the 'HOOK' signal is actually available to be read (but not written). Therefore, the "GPIO2" signal can at least now be used as an input. The code revision (chan_usbradio.c) to support this should be available via SVN at abut 12:15 PDT today (when the public SVN server updates). Well, it's better then nothing...... JIM WB6NIL
participants (3)
-
Jim Duuuude -
Keith Williamson -
Stephen - K1LNX