Help understanding HSERIN/HSEROUT


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Help understanding HSERIN/HSEROUT

    My project is about a 3G monitoring system and receiving SMS messages is crucial (= it is crucial not to miss any incoming SMS).


    the problem as i see it is that you are mixing up receiving a SMS message notification with receiving serial data without losing characters.


    the question really is
    how can i receive serial data as a background process with out data loss ?
    how can i signal foreground process that a message has been received and not lose messages?


    a workable solution is a interrupt driven ringbuffer for serial reception
    that signals the foreground with a flag on completion of notification message.


    the ringbuffer must be large enough to allow processing without data loss
    the chip must have adequate speed and resources [not a 690, more like 16f1829]
    hserin is not in the solution , its not flexible enough to be useful for this sort of task


    you will find ringbuffer examples on both forums
    Warning I'm not a teacher

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default Re: Help understanding HSERIN/HSEROUT

    Richard,

    I think what you propose is the best solution and ultimately, Roger may follow it.

    But it may be too complicated at the moment to have such an advanced data handling. Or not?

    Ioannis

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Help understanding HSERIN/HSEROUT

    its like trying to remove the head off a motor with a shifting spanner.Name:  shifter.jpg
Views: 1124
Size:  2.9 KB
    anyone who is serious about these things has a socket wrench in their toolkit
    Name:  socket.jpg
Views: 1117
Size:  5.6 KB
    with proper tools things are easy, if your serious you make the investment.
    not only that when you have some isr driven serial tools in your kit all sorts of
    tasks become possible opening up a whole new vista
    Warning I'm not a teacher

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default Re: Help understanding HSERIN/HSEROUT

    Totally agree, but Roger is still using On Interrupts...!

    Ioannis

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default Re: Help understanding HSERIN/HSEROUT

    Hi,

    I don't need to stick to interrupts; I just thought this would be a good idea....

    The thing is, I don't know the right (or best) "tool" to use and I appreciate your help and comments to take the correct path for my project

    "Ring buffer" is new to me so I'll first have to spend some hours of reading and searching to get more info. My monitor prototype is already in the field and every immediate improvement, the one I may have the skills to make immediately, is the always the best.

    So, because of my lack of knowledge (but it is getting better every day), these are the tools I will rely on for now:

    Name:  002304.jpg
Views: 1072
Size:  82.5 KB



    Quote Originally Posted by Ioannis View Post
    I think there is no point in hunting down the incoming SMS as they are available in the GSM module.
    Having a routine checking the received message list every 5 seconds or so will allow me to start to improve the reliability of my monitor asap.

    Richard is right: I'm mixing up things and tracking incoming serial data is actually not that crucial. For any reason, I was focusing on the wrong target....
    Roger

Similar Threads

  1. Understanding timer issues
    By boroko in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th April 2009, 03:56
  2. Newbie - understanding pwm-command
    By Finchnixer in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th June 2008, 09:37
  3. Bit/Byte array for Hserin/Hserout
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd September 2006, 00:07
  4. not quite understanding the MATH function
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th January 2006, 21:20
  5. Replies: 1
    Last Post: - 16th June 2005, 03:56

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts