[mythtv-users] cidbcast

Mike stuff at dustsmoke.com
Wed Jun 28 07:10:10 UTC 2006


Skip Patterson wrote:
> On 6/27/06, *Mike* <stuff at dustsmoke.com <mailto:stuff at dustsmoke.com>> 
> wrote:
>
>     Skip Patterson wrote:
>     > Sorry if this may seem slightly OT but it is in regards to
>     > Mythnotify.  Long time myth user, first time posting so be gentle.
>     >
>     > I'm running fedora core 4 (Mythdora) with pvr 250 and a 150 and
>     using
>     > an external Usr 56.6 k v.90 courier modem.  The modem is setup on
>     > /dev/ttyS0 and I know the system can see it, the permissions are
>     > correct (666) and if I run minicom I am able to communicate with
>     the
>     > modem and since I do subscribe to CallerId when I phone it does show
>     > up in minicom however when I try running cidbcast I get an error
>     > initializing the modem. Here is the output with verbose mode,
>     any help
>     > would be appreciated.
>     >
>     > [root at myth23 cidbcast]# ./cidbcast --verbose --device=/dev/ttyS0
>     > --file cidbcast.xml --init="AT S7=45 S0=0 L0 V1 X4 &c1 E0 Q0 #CID=1"
>     > Verbose mode enabled
>     > raw_message (460):
>     > <telephone-event type="callerID" TTY="%cid_port%">
>     >   <time stamp="%cid_time_stamp%" zone="%cid_time_zone%"
>     > daylight-savings="%cid_daylight_saving%" second="%cid_time_second%"
>     > minute="%cid_time_minute%" hour="%cid_time_hour%"
>     day="%cid_time_day%"
>     > month="%cid_time_month%"
>     year="%cid_time_year%">%cid_time_string%</time>
>     >   <ring-type>%cid_ring_type%</ring-type>
>     >   <from>
>     >     <name>%cid_name%</name>
>     >     <number>%cid_number%</number>
>     >   </from>
>     > </telephone-event>
>     > Send AT
>     > Send AT
>     > Send AT
>     > error init modem
>     > Error initializing modem /dev/ttyS0 - exiting
>     >
>     >
>     > From other posts I've seen it looks like others see the init
>     string go
>     > out on the 3rd Send AT but mine does not seem to.  While the Send AT
>     > commands are going there is activity on the modem led's.
>     >
>     >
>     > thank you,
>     > Ben
>     >
>
>     Does this work?
>
>     ./cidbcast --verbose --device=/dev/ttyS0 --file cidbcast.xml
>     --init="AT
>     #CID=1"
>
>     -Mike
>     _______________________________________________
>     mythtv-users mailing list
>     mythtv-users at mythtv.org <mailto:mythtv-users at mythtv.org>
>     http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
> Hey Mike,
>
> Thanks for the reply, unfortunatly that produces the same results:
>
> [root at myth23 cidbcast]# ./cidbcast --verbose --device=/dev/ttyS0 
> --file cidbcast.xml --init="AT #CID=1"
> Verbose mode enabled
> raw_message (460):
> <telephone-event type="callerID" TTY="%cid_port%">
>   <time stamp="%cid_time_stamp%" zone="%cid_time_zone%" 
> daylight-savings="%cid_daylight_saving%" second="%cid_time_second%" 
> minute="%cid_time_minute%" hour="%cid_time_hour%" day="%cid_time_day%" 
> month="%cid_time_month%" year="%cid_time_year%">%cid_time_string%</time>
>   <ring-type>%cid_ring_type%</ring-type>
>   <from>
>     <name>%cid_name%</name>
>     <number>%cid_number%</number>
>   </from>
> </telephone-event>
> Send AT
> Send AT
> Send AT
> error init modem
> Error initializing modem /dev/ttyS0 - exiting
>
> thanks,
> Ben
It looks like somehow its not taking your --init string... You should 
see something like this if it took your AT command

Send AT
Send AT
Send AT S7=45 S0=0 L0 V1 X4 &c1 E0 Q0 #CID=1 S41=1

Try not giving it an init string since that one above is the default and 
works with my serial usr sportster serial modem. Something like this 
should work on ttyS0 since the rest of that is defaults in cidbcast.c

./cidbcast --verbose --file cidbcast.xml

Also double check your /etc/group file. Do you have any groups in there 
you think you should be added to? If your rebooting and you have udev 
without making udev rules to handle this it will revert your premissions 
on your device every time. But I'm thinking your problem is probably 
with that third "Send AT" message from verbose not showing any init string.

-Mike




More information about the mythtv-users mailing list