|
Hey everyone. I haven't been on the forums in a while since the mp3car community, for the most part, isn't the same set of folks it was when I first started. Regardless, I'm glad people are finally getting some use out of my driver. It looks like it is time to finish it.
As far as the read error on seeking. Perhaps it isn't finding any stations? so it is continuously looping? I can make it so it will stop seeking once it's gone full-circle, or maybe after a certain time.
The seeking may have a bug or two. But, if you change code in there, please pay attention to how the code functions. Two packets need to be sent to tune the radio. We set status=HQCT_STATUS_SEEKING_UP1, then send the first packet. The send_callback fires. If status==HQCT_STATUS_SEEKING_UP1, which it does, then we set status=HQCT_STATUS_SEEKING_UP2 and send the second packet.
Now, the radio will send a report back. In recv_callback, if status==HQCT_STATUS_SEEKING_UP2, then we check the signal strength and possibly call hqct_tune again.
It needs to be asynchronous like this, or else the radio driver will freeze the whole system while seeking. But, there may still be a bug in variable locking, the completion vars, whatever.
|