I have a node that is connected to a GM300 with 3 channel lines exposed (1, 2, 4) and only using 6 channels.
My macro firsts puts the node in command mode then issues commands.
This is a test macro to see what IOs are being used.
2 = *4408672 gpio2 = out0 P P *70 P P *722 P gpio2 = out1 P P **722 # Set command mode then should change gpio2 to output set low add pauses then report status more pauses set gpio2 to output high then say time and date then ends command mode.
none of the IOs change state, the other commands do what they are supposed to do including setting command mode in the remote node.
I can do this with only 1 GPIO output. I can sent send a series of pulses into an Arduino and convert this to a parallel output. Am I being a bone head here and not getting any responses because this is so simple that I missed the point?
I don't believe you can specify gpio2=SOMETHING the way you are inside of the macro. You would need to specify setting by a cop command macro and then call that macro inside the other.
I have been moving for the last several months and am now finally set up to work on this problem.
question 1 is the gpiox = outx the correct way to refer to the gpio lines on the CM108?
question 2 since it appears that I cannot use this command in a macro how do I do this in cop command? I really don't understand what is going on and the correct syntax. This can't really be this difficult. There has to be someone using the gpio's to switch channels.
So i m using Kevins RA series USB radio. He has GPIO 4,5,6,7,8 outputs with solder pins to connect to. CM-108 audio chip
Beware these are CMOS high and low so no current drain more the a few milliamps .
I pulled 3 of these to control a controller to turn on link ports. this is what I did in the rpt.conf and Simpleusb.conf files
I am using Hamvoip but I am sure you can do the same to ASL3
In the rpt.conf in the Functions
9410=cop,61,GPIO4:0 ;Link 1 On UF4
9411=cop,61,GPIO4:1 ;Kink 1 Off UF4
9510=cop,61,GPIO5:0 ;Link 2 On UF5
9511=cop,61,GPIO5:1 ;Link 2 Off UF5
9610=cop,61,GPIO6:0 ;Link 3 On UF6
9611=cop,61,GPIO6:1 ;Link 3 Off UF6
9710=cop,61,GPIO7:0
9711=cop,61,GPIO7:1
[macro4635]
;Macro number = command string (each command separated by space) -end with HASH
1=*81 *80# ; play time and voice ID
91=*9411 *9511 *9611 ;All Links OFF
90=*9410 *9510 *9610 ;All Links ON
92=*9511 *9611 ;Link Port 2 and 3 Off
In the simpleusb.conf
gpio4=out,0 ;Link Port1
gpio5=out,0 ;Link Port2
gpio6=out,0 ;Link Port3
gpio7=out,0 ;Test LED
Also did the supermon Control button and set it up so did not need to send DTMF over the air.
Hope this helps!
Dale
N6ZCM
So i m using Kevins RA series USB radio. He has GPIO 4,5,6,7,8 outputs with solder pins to connect to. CM-108 audio chip
Beware these are CMOS high and low so no current drain more the a few milliamps .
I pulled 3 of these to control a controller to turn on link ports. this is what I did in the rpt.conf and Simpleusb.conf files
I am using Hamvoip but I am sure you can do the same to ASL3
In the rpt.conf in the Functions
9410=cop,61,GPIO4:0 ;Link 1 On UF4
9411=cop,61,GPIO4:1 ;Kink 1 Off UF4
9510=cop,61,GPIO5:0 ;Link 2 On UF5
9511=cop,61,GPIO5:1 ;Link 2 Off UF5
9610=cop,61,GPIO6:0 ;Link 3 On UF6
9611=cop,61,GPIO6:1 ;Link 3 Off UF6
9710=cop,61,GPIO7:0
9711=cop,61,GPIO7:1
[macro4635]
;Macro number = command string (each command separated by space) -end with HASH
1=*81 *80# ; play time and voice ID
91=*9411 *9511 *9611 ;All Links OFF
90=*9410 *9510 *9610 ;All Links ON
92=*9511 *9611 ;Link Port 2 and 3 Off
In the simpleusb.conf
gpio4=out,0 ;Link Port1
gpio5=out,0 ;Link Port2
gpio6=out,0 ;Link Port3
gpio7=out,0 ;Test LED
Also did the supermon Control button and set it up so did not need to send DTMF over the air.
Hope this helps!
Dale
N6ZCM
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, click here <https://community.allstarlink.org/email/
unsubscribe/1f4c22751cd6779eae044fed8078d3a19a3d92648dc61fd90f3e1e060e2c3742>.