From jpdborgna at yahoo.com.ar Fri Feb 17 15:33:39 2006 From: jpdborgna at yahoo.com.ar (Juan Pablo) Date: Fri, 17 Feb 2006 12:33:39 -0300 Subject: [App_rpt] New addition Message-ID: <43F5ECD3.8040907@yahoo.com.ar> Hi list, im new here, im electronics technician and i want to add support to app_rpt for retransmit via IAX the input of a serial port. I've been looking in the code, and drop it to start reading the IAX pdf and now im going for the asterix api. I think it should be easy, read a serial port (previus configuration) and retransmit it. What i would like is to _correctly_ include it in your code, so if you have any souggestion, recomendation, comment or a point to start (jeje) ill really appreciate it. Saludos, Juan Pablo. ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar From hwstar at rodgers.sdcoxmail.com Sat Feb 18 04:06:44 2006 From: hwstar at rodgers.sdcoxmail.com (Steve Rodgers) Date: Fri, 17 Feb 2006 20:06:44 -0800 Subject: [App_rpt] New addition In-Reply-To: <43F5ECD3.8040907@yahoo.com.ar> References: <43F5ECD3.8040907@yahoo.com.ar> Message-ID: <200602172006.45131.hwstar@rodgers.sdcoxmail.com> Juan, You are going to have to give us more details on what you are trying to do with the serial port, app_rpt, and Asterisk. What is the application? Please elaborate. Steve Rodgers WA6ZFT On Friday 17 February 2006 07:33, Juan Pablo wrote: > Hi list, im new here, im electronics technician and i want to add > support to app_rpt for retransmit via IAX the input of a serial port. > I've been looking in the code, and drop it to start reading the IAX pdf > and now im going for the asterix api. > > I think it should be easy, read a serial port (previus configuration) > and retransmit it. > > What i would like is to _correctly_ include it in your code, so if you > have any souggestion, recomendation, comment or a point to start (jeje) > ill really appreciate it. > > > Saludos, Juan Pablo. > > > > > > > > ___________________________________________________________ > 1GB gratis, Antivirus y Antispam > Correo Yahoo!, el mejor correo web del mundo > http://correo.yahoo.com.ar > > _______________________________________________ > App_rpt mailing list > App_rpt at lists.illiana.net > http://lists.illiana.net/mailman/listinfo/app_rpt From jpdborgna at yahoo.com.ar Sat Feb 18 04:27:50 2006 From: jpdborgna at yahoo.com.ar (Juan Pablo) Date: Sat, 18 Feb 2006 01:27:50 -0300 Subject: [App_rpt] New addition In-Reply-To: <200602172006.45131.hwstar@rodgers.sdcoxmail.com> References: <43F5ECD3.8040907@yahoo.com.ar> <200602172006.45131.hwstar@rodgers.sdcoxmail.com> Message-ID: <43F6A246.9020100@yahoo.com.ar> Steve Rodgers wrote: >Juan, > >You are going to have to give us more details on what you are trying to do >with the serial port, app_rpt, and Asterisk. > >What is the application? Please elaborate. > >Steve Rodgers >WA6ZFT > > > Ok, here is the thing: There are some radio equipment (kenwood) wich have a serial port. By using this serial port you can do things like changing channels or send/recieve text messages. What I want to do is to transfer the text comming/going through the serial port (using ast_sendtext/ast_recvtext) so i can do something with them. The *very little* problem I have is that I never used or configured an asterisk box... im just a programmer with a task. When looking at the app_sendtext.c code i think it is easy, because i can replace where it says "text" for somthing readed from the serial port. But I dont even know what to do if i write that app... does somebody sitted on a console "attach" it to a connection or what? I googled about asterisk but it looks like a lot of documentation spreaded, dont know where to start. Hope I clarified this. I need all the help you can give me. Thanks you. Saludos, Juan Pablo. > >On Friday 17 February 2006 07:33, Juan Pablo wrote: > > >>Hi list, im new here, im electronics technician and i want to add >>support to app_rpt for retransmit via IAX the input of a serial port. >>I've been looking in the code, and drop it to start reading the IAX pdf >>and now im going for the asterix api. >> >>I think it should be easy, read a serial port (previus configuration) >>and retransmit it. >> >>What i would like is to _correctly_ include it in your code, so if you >>have any souggestion, recomendation, comment or a point to start (jeje) >>ill really appreciate it. >> >> >>Saludos, Juan Pablo. >> >> >> >> >> >> >> >>___________________________________________________________ >>1GB gratis, Antivirus y Antispam >>Correo Yahoo!, el mejor correo web del mundo >>http://correo.yahoo.com.ar >> >>_______________________________________________ >>App_rpt mailing list >>App_rpt at lists.illiana.net >>http://lists.illiana.net/mailman/listinfo/app_rpt >> >> >_______________________________________________ >App_rpt mailing list >App_rpt at lists.illiana.net >http://lists.illiana.net/mailman/listinfo/app_rpt > > > ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar From hwstar at rodgers.sdcoxmail.com Sat Feb 18 05:14:56 2006 From: hwstar at rodgers.sdcoxmail.com (Steve Rodgers) Date: Fri, 17 Feb 2006 21:14:56 -0800 Subject: [App_rpt] New addition In-Reply-To: <43F6A246.9020100@yahoo.com.ar> References: <43F5ECD3.8040907@yahoo.com.ar> <200602172006.45131.hwstar@rodgers.sdcoxmail.com> <43F6A246.9020100@yahoo.com.ar> Message-ID: <200602172114.56377.hwstar@rodgers.sdcoxmail.com> Juan, What you want to do can be done, but there is a problem: app_rpt uses the ast_sendtext/ast_recvtext functions to send out-of-band DTMF to other nodes. Because we already use this framework, you will have to be very careful about how you modify app_rpt to support your requirement. In order ti get this working quickly, It would really be nice if the Kenwood radio used printable ASCII characters for control and status packets. If the control and/or status packets are binary, then you will also need to write some kind of ASCII to binary coder/decoder as well. Because everything sent be app_rpt using sendtext/recvtext is in ASCII, you would have to prefix each chunk of data which originates from your radio and is destined to go to your radio with some unique ASCII text header then add code to app_rpt to look for these headers and direct the data to and from the radio. In other words, your local node would need to add an ASCII header to the packet of data which is destined for the Kenwood radio, and the remote node with the Kenwood radio would strip off the ASCII header and send the rest of the data to the radio. If the radio responds with some acknowledge bytes, the remote node would add the ASCII header, send the data to the local node, and the local node would strip off the ASCII header. The place to look for packets in pick them off for your application is in the handle_link_data function. If you take a look at this function, you will see we already have some handlers for disconnection, and for decoding commands from remote nodes. To send a packet, append your unique header, then create a frame and send the frame with ast_write(). For an example of this, see the disconnect code in function_ilink(). You will also need to know how to program serial ports in Linux. Steve WA6ZFT On Friday 17 February 2006 20:27, Juan Pablo wrote: > Steve Rodgers wrote: > >Juan, > > > >You are going to have to give us more details on what you are trying to do > >with the serial port, app_rpt, and Asterisk. > > > >What is the application? Please elaborate. > > > >Steve Rodgers > >WA6ZFT > > Ok, here is the thing: > > There are some radio equipment (kenwood) wich have a serial port. > By using this serial port you can do things like changing channels or > send/recieve text messages. > > What I want to do is to transfer the text comming/going through the > serial port (using ast_sendtext/ast_recvtext) so i can do something with > them. > > The *very little* problem I have is that I never used or configured an > asterisk box... im just a programmer with a task. > > When looking at the app_sendtext.c code i think it is easy, because i > can replace where it says "text" for somthing readed from the serial port. > > But I dont even know what to do if i write that app... does somebody > sitted on a console "attach" it to a connection or what? > I googled about asterisk but it looks like a lot of documentation > spreaded, dont know where to start. > > Hope I clarified this. I need all the help you can give me. > > Thanks you. > > Saludos, Juan Pablo. > > >On Friday 17 February 2006 07:33, Juan Pablo wrote: > >>Hi list, im new here, im electronics technician and i want to add > >>support to app_rpt for retransmit via IAX the input of a serial port. > >>I've been looking in the code, and drop it to start reading the IAX pdf > >>and now im going for the asterix api. > >> > >>I think it should be easy, read a serial port (previus configuration) > >>and retransmit it. > >> > >>What i would like is to _correctly_ include it in your code, so if you > >>have any souggestion, recomendation, comment or a point to start (jeje) > >>ill really appreciate it. > >> > >> > >>Saludos, Juan Pablo. > >> > >> > >> > >> > >> > >> > >> > >>___________________________________________________________ > >>1GB gratis, Antivirus y Antispam > >>Correo Yahoo!, el mejor correo web del mundo > >>http://correo.yahoo.com.ar > >> > >>_______________________________________________ > >>App_rpt mailing list > >>App_rpt at lists.illiana.net > >>http://lists.illiana.net/mailman/listinfo/app_rpt > > > >_______________________________________________ > >App_rpt mailing list > >App_rpt at lists.illiana.net > >http://lists.illiana.net/mailman/listinfo/app_rpt > > ___________________________________________________________ > 1GB gratis, Antivirus y Antispam > Correo Yahoo!, el mejor correo web del mundo > http://correo.yahoo.com.ar > > _______________________________________________ > App_rpt mailing list > App_rpt at lists.illiana.net > http://lists.illiana.net/mailman/listinfo/app_rpt From jpdborgna at yahoo.com.ar Sat Feb 18 05:39:25 2006 From: jpdborgna at yahoo.com.ar (Juan Pablo) Date: Sat, 18 Feb 2006 02:39:25 -0300 Subject: [App_rpt] New addition In-Reply-To: <200602172114.56377.hwstar@rodgers.sdcoxmail.com> References: <43F5ECD3.8040907@yahoo.com.ar> <200602172006.45131.hwstar@rodgers.sdcoxmail.com> <43F6A246.9020100@yahoo.com.ar> <200602172114.56377.hwstar@rodgers.sdcoxmail.com> Message-ID: <43F6B30D.5010006@yahoo.com.ar> Steve Rodgers wrote: >Juan, > >What you want to do can be done, but there is a problem: app_rpt uses the >ast_sendtext/ast_recvtext functions to send out-of-band DTMF to other nodes. >Because we already use this framework, you will have to be very careful about >how you modify app_rpt to support your requirement. > >In order ti get this working quickly, It would really be nice if the Kenwood >radio used printable ASCII characters for control and status packets. If the >control and/or status packets are binary, then you will also need to write >some kind of ASCII to binary coder/decoder as well. > > > They are ASCII but they also have some 0x02 STX and 0x03 ETX characters (like the old BSC protocol). It cant be that hard :) >Because everything sent be app_rpt using sendtext/recvtext is in ASCII, you >would have to prefix each chunk of data which originates from your radio and >is destined to go to your radio with some unique ASCII text >header then add code to app_rpt to look for these headers and direct the data >to and from the radio. > >In other words, your local node would need to add an ASCII header to the >packet of data which is destined for the Kenwood radio, and the remote node >with the Kenwood radio would strip off the ASCII header and send the rest of >the data to the radio. If the radio responds with some acknowledge bytes, the >remote node would add the ASCII header, send the data to the local node, and >the local node would strip off the ASCII header. > >The place to look for packets in pick them off for your application is in the >handle_link_data function. If you take a look at this function, you will see >we already have some handlers for disconnection, and for decoding commands >from remote nodes. > >To send a packet, append your unique header, then create a frame and send the >frame with ast_write(). For an example of this, see the disconnect code in >function_ilink(). > > This is just what i needed, thank you. >You will also need to know how to program serial ports in Linux. > > > That I do know! >Steve >WA6ZFT > > > Thank you Steve, i'll work on it all the week end. Its "good night" for me now (2:30am...) Saludos, Juan Pablo. > >On Friday 17 February 2006 20:27, Juan Pablo wrote: > > >>Steve Rodgers wrote: >> >> >>>Juan, >>> >>>You are going to have to give us more details on what you are trying to do >>>with the serial port, app_rpt, and Asterisk. >>> >>>What is the application? Please elaborate. >>> >>>Steve Rodgers >>>WA6ZFT >>> >>> >>Ok, here is the thing: >> >>There are some radio equipment (kenwood) wich have a serial port. >>By using this serial port you can do things like changing channels or >>send/recieve text messages. >> >>What I want to do is to transfer the text comming/going through the >>serial port (using ast_sendtext/ast_recvtext) so i can do something with >>them. >> >>The *very little* problem I have is that I never used or configured an >>asterisk box... im just a programmer with a task. >> >>When looking at the app_sendtext.c code i think it is easy, because i >>can replace where it says "text" for somthing readed from the serial port. >> >>But I dont even know what to do if i write that app... does somebody >>sitted on a console "attach" it to a connection or what? >>I googled about asterisk but it looks like a lot of documentation >>spreaded, dont know where to start. >> >>Hope I clarified this. I need all the help you can give me. >> >>Thanks you. >> >>Saludos, Juan Pablo. >> >> >> >>>On Friday 17 February 2006 07:33, Juan Pablo wrote: >>> >>> >>>>Hi list, im new here, im electronics technician and i want to add >>>>support to app_rpt for retransmit via IAX the input of a serial port. >>>>I've been looking in the code, and drop it to start reading the IAX pdf >>>>and now im going for the asterix api. >>>> >>>>I think it should be easy, read a serial port (previus configuration) >>>>and retransmit it. >>>> >>>>What i would like is to _correctly_ include it in your code, so if you >>>>have any souggestion, recomendation, comment or a point to start (jeje) >>>>ill really appreciate it. >>>> >>>> >>>>Saludos, Juan Pablo. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>___________________________________________________________ >>>>1GB gratis, Antivirus y Antispam >>>>Correo Yahoo!, el mejor correo web del mundo >>>>http://correo.yahoo.com.ar >>>> >>>>_______________________________________________ >>>>App_rpt mailing list >>>>App_rpt at lists.illiana.net >>>>http://lists.illiana.net/mailman/listinfo/app_rpt >>>> >>>> >>>_______________________________________________ >>>App_rpt mailing list >>>App_rpt at lists.illiana.net >>>http://lists.illiana.net/mailman/listinfo/app_rpt >>> >>> >>___________________________________________________________ >>1GB gratis, Antivirus y Antispam >>Correo Yahoo!, el mejor correo web del mundo >>http://correo.yahoo.com.ar >> >>_______________________________________________ >>App_rpt mailing list >>App_rpt at lists.illiana.net >>http://lists.illiana.net/mailman/listinfo/app_rpt >> >> >_______________________________________________ >App_rpt mailing list >App_rpt at lists.illiana.net >http://lists.illiana.net/mailman/listinfo/app_rpt > > > ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar From harfija at auburn.edu Thu Feb 23 23:10:10 2006 From: harfija at auburn.edu (James Harfield) Date: Thu, 23 Feb 2006 17:10:10 -0600 Subject: [App_rpt] Radio Interface Question Message-ID: <43FDEC71020000D60000E18E@TMIA1.AUBURN.EDU> I am looking for some advice to move in the right direction in connecting a base station I have to the Quad PCI Radio Card. According to Asterisk and the zaptel.conf the interface type is E&M and looking at the diagram in the installation pdf it appears to be a 2 wire operation type. I reconfigured an RJ-45 to connect between the base station and PCI Card, with corresponding PTT / COR / TX / RX / GND pins in the correct location on each side. However, I am unable to connect to the base station and am given the: Unable to create channel type Zap, error. My concern is that the connection is not a true E&M and the system cannot provide the -48v off hook and other levels required to recognize this channel. We have checked ztcfg -vv and it returns: Channel 01: E & M (Default) 1 Channels configured Modprobe goes off successfully, et all. Would anyone be able to offer any insight to move me in the correct direction? Thank you, JRH From hwstar at rodgers.sdcoxmail.com Fri Feb 24 03:18:24 2006 From: hwstar at rodgers.sdcoxmail.com (Steve Rodgers) Date: Thu, 23 Feb 2006 19:18:24 -0800 Subject: [App_rpt] Radio Interface Question In-Reply-To: <43FDEC71020000D60000E18E@TMIA1.AUBURN.EDU> References: <43FDEC71020000D60000E18E@TMIA1.AUBURN.EDU> Message-ID: <200602231918.25683.hwstar@rodgers.sdcoxmail.com> Please see answers and suggestions below Steve. On Thursday 23 February 2006 15:10, James Harfield wrote: > I am looking for some advice to move in the right direction in > connecting a base station I have to the Quad PCI Radio Card. According > to Asterisk and the zaptel.conf the interface type is E&M and looking at > the diagram in the installation pdf it appears to be a 2 wire operation > type. That assumption isn't correct. It is E&M for zaptel configuration only (not in hardware). The card interface 4 wire audio even though only a single Zap channel is specified. In zaptel.conf you should specify: e&m = 1 .... And in zapata.conf you should specify: signalling=em_txrx channel = 1 .... And in rpt.conf you should specify only ONE zap channel: [100] ; Name of First Repeater rxchannel = Zap/1 ; Rx audio/signalling channel ... > I reconfigured an RJ-45 to connect between the base station and > PCI Card, with corresponding PTT / COR / TX / RX / GND pins in the > correct location on each side. However, I am unable to connect to the > base station and am given the: Unable to create channel type Zap, error. Please elaborate on how you are trying to connect. When do you get the "Unable to create channel Zap" error? Was it when you tried to run Asterisk with app_rpt compiled in? > > My concern is that the connection is not a true E&M and the system > cannot provide the -48v off hook and other levels required to recognize > this channel. Your concern is true. It isn't true E&M at the hardware level. COR is a input which accepts voltages from 0 to 13.8V and PTT is an open drain output from a power MOSFET. See the quadradio_pci_installation.pdf file on app-rpt.qrvc.com for more information on how to interface to the board. As stated above, It is E&M only at the software configuration level. Hooking the signals of the Quad Radio Card to a real E&M interface could damage the board as -48V exceeds the component ratings of the parts in the input and output circuits. Hopefully you didn't do this?! > > We have checked ztcfg -vv and it returns: > Channel 01: E & M (Default) > 1 Channels configured > > Modprobe goes off successfully, et all. Would anyone be able to offer > any insight to move me in the correct direction? > > Thank you, > > JRH > _______________________________________________ > App_rpt mailing list > App_rpt at lists.illiana.net > http://lists.illiana.net/mailman/listinfo/app_rpt From f6hqz-m at hamwlan.net Fri Feb 24 06:20:23 2006 From: f6hqz-m at hamwlan.net (f6hqz-m at hamwlan.net) Date: Fri, 24 Feb 2006 07:20:23 +0100 Subject: [App_rpt] RE : Radio Interface Question In-Reply-To: <43FDEC71020000D60000E18E@TMIA1.AUBURN.EDU> Message-ID: Hello James, I believe that you have forgotten to authorize RPT application to be compiled during asterisk compilation itself. You must modify a line in the file "/usr/src/asterisk/apps/Makefile" by adding a # to comment this line at beginning : #MODS:=$(filter-out app_rpt.so,$(MODS)) And recompile Asterisk. This must help you a little :-) 73, F6HQZ, Francois BERGERET. -----Message d'origine----- De : app_rpt-bounces at lists.illiana.net [mailto:app_rpt-bounces at lists.illiana.net] De la part de James Harfield Envoy? : vendredi 24 f?vrier 2006 00:10 ? : app_rpt at lists.illiana.net Objet : [App_rpt] Radio Interface Question I am looking for some advice to move in the right direction in connecting a base station I have to the Quad PCI Radio Card. According to Asterisk and the zaptel.conf the interface type is E&M and looking at the diagram in the installation pdf it appears to be a 2 wire operation type. I reconfigured an RJ-45 to connect between the base station and PCI Card, with corresponding PTT / COR / TX / RX / GND pins in the correct location on each side. However, I am unable to connect to the base station and am given the: Unable to create channel type Zap, error. My concern is that the connection is not a true E&M and the system cannot provide the -48v off hook and other levels required to recognize this channel. We have checked ztcfg -vv and it returns: Channel 01: E & M (Default) 1 Channels configured Modprobe goes off successfully, et all. Would anyone be able to offer any insight to move me in the correct direction? Thank you, JRH _______________________________________________ App_rpt mailing list App_rpt at lists.illiana.net http://lists.illiana.net/mailman/listinfo/app_rpt