Menu

UART support

Help
MBB
2 days ago
2 days ago
  • MBB

    MBB - 2 days ago

    Does GCB support Hayes modem AT commands?

    I'm trying to communicate with an AS7262 Light Sensor

    If I send:

    HSerPrint"Set Gain "
    HSerSend AT+ATGAIN = 3 ;prints <0>
    HSerSend 13
    HSerSend 10

    I get this response: Set Gain <0>
    Shouldn't it respond with <3>

     
  • Anobium

    Anobium - 2 days ago

    Are you missing the quotes around the string?
    Did you mean to use HserPrint not HerSend?
    Is AT and ATGAIN variables? Are you expecting (AT+ATGAIN) equals (=) 3 ?
    and, I think your program must have #OPTION EXPLICIT missing. You would get a more meaningful error message.

     

    Last edit: Anobium 2 days ago

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.