[App_rpt] New addition
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
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@lists.illiana.net http://lists.illiana.net/mailman/listinfo/app_rpt
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@lists.illiana.net http://lists.illiana.net/mailman/listinfo/app_rpt
_______________________________________________ App_rpt mailing list App_rpt@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
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@lists.illiana.net http://lists.illiana.net/mailman/listinfo/app_rpt
_______________________________________________ App_rpt mailing list App_rpt@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@lists.illiana.net http://lists.illiana.net/mailman/listinfo/app_rpt
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@lists.illiana.net http://lists.illiana.net/mailman/listinfo/app_rpt
_______________________________________________ App_rpt mailing list App_rpt@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@lists.illiana.net http://lists.illiana.net/mailman/listinfo/app_rpt
_______________________________________________ App_rpt mailing list App_rpt@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
participants (2)
-
Juan Pablo -
Steve Rodgers