Articles Posted in the " " Category

  • getVoiceCallStatus()

    getVoiceCallStatus()

    描述 回传通话目前的状态。 语法 voice.getVoiceCallStatus() 参数 无参数 回传 char : IDLE_CALL, CALLING, RECEIVINGCALL, TALKING 范例 See also - getVoiceCallStatus() - ready() - voiceCall() - answerCall() - hangCall() - retrieveCallingNumber() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in […]


  • ready()

    ready()

    描述 取得被呼叫的最后一个 GSMVoiceCall 函式执行的状态。 语法 voice.ready() 参数 无参数 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示执行成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示执行成功,回传 0 表示执行失败 See also - GSMVoiceCall - getVoiceCallStatus() - voiceCall() - answerCall() - hangCall() - retrieveCallingNumber() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons […]


  • voiceCall()

    voiceCall()

    描述 播打电话至指定的电话号码。该函式回传的值在同步与非同步的情况下意义不同,底下会有详细的介绍。 语法 voice.voiceCall(number) 参数 number:存放电话号码的字元阵列 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示播打电话成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示播打电话成功,回传 0 表示播打电话失败 范例 See also - GSMVoiceCall - getVoiceCallStatus() - ready() - answerCall() - hangCall() - retrieveCallingNumber() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]


  • answerCall()

    answerCall()

    描述 接听来电。该函式回传的值在同步与非同步的情况下意义不同,底下会有详细的介绍。 语法 voice.answerCall() 参数 无参数 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示接听来电成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示接听来电成功,回传 0 表示接听来电失败 范例 See also - GSMVoiceCall - getVoiceCallStatus() - ready() - voiceCall() - hangCall() - retrieveCallingNumber() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]


  • hangCall()

    hangCall()

    描述 挂断连线中的通话或是来电。该函式回传的值在同步与非同步的情况下意义不同,底下会有详细的介绍。 语法 voice.hangCall() 参数 无参数 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示挂断通话成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示挂断通话成功,回传 0 表示挂断通话失败 范例 See also - GSMVoiceCall - getVoiceCallStatus() - ready() - voiceCall() - answerCall() - retrieveCallingNumber() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]


  • retrieveCallingNumber()

    retrieveCallingNumber()

    描述 取得来电号码。 语法 voice.retrieveCallingNumber(number, size) 参数 number:用来存放来电号码的字元阵列 size:字元阵列(number)的大小 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示取得来电号码成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示取得来电号码成功,回传 0 表示取得来电号码失败 范例 See also - GSMVoiceCall - getVoiceCallStatus() - ready() - voiceCall() - answerCall() - hangCall() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative […]


  • shutdown()

    shutdown()

    描述 中断与 GSM 网路的连线藉由关闭 Arduino GSM shield。 语法 gsm.shutdown() 参数 无参数 回传 boolean:函式执行成功时回传 1,正在执行回传 0 范例 See also - GSM constructor - begin() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into […]


  • begin()

    begin()

    描述 连接到 GSM 网路。 语法 gsm.begin() gsm.begin(pin) gsm.begin(pin, restart) gsm.begin(pin, restart, sync) 参数 pin:储存 PIN 码的字元阵列,预设为 0 restart :如果 restart 为 true 会重新启动 Arduino GSM shield,接着再初始化,反之则不会重新启动,直接初始化。restart 预设为 true,型态为 boolean sync:如果 sync 为 true 则为同步(synchronous)模式,反之为非同步(asynchronous)模式,sync 预设为 true,型态为 boolean 回传 char:如果是非同步状态回传 0;如果是同步状态,回传连线的状态:ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED 范例 See also - GSM constructor - shutdown() 函式库参考主页面 The […]


  • GSM constructor

    GSM constructor

    描述 GSM 类别是 GSM 函式库的基础,在使用任何 GSM 函式库的功能前,都要用 GSM 类别初始化 Arduino GSM shield。 语法 GSM GSMAccess GSM GSMAccess(debug) 参数 debug:debug 是 boolean 型态的参数,如果给予 true 将会把传送给 Arduino GSM shield 的 AT 指令输出至序列埠监控视窗,反之不会输出 AT 指令。如果没给参数,预设为 false。 范例 See also - begin() - shutdown() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and […]


  • GSM 函式库

    GSM 函式库

    GSM 函式库从 86Duino Coding 103 开始支援。 如何连接 86Duino 和 Arduino GSM shield 可以参考这篇教学。 86Duino 连接了 Arduino GSM shield 后,配合 GSM 函式库可以实现手机大部分的功能,像是播打/接听电话、收发简讯、连上 GPRS 网路。 Arduino GSM shield 上有一个数据机把从 86Duino 接收到的资料传送到 GSM 网路。Arduino GSM shield 的数据机上有串列埠(UART),要控制 Arduino GSM shield 时,必须传送 AT 指令到这个串列埠。GSM 函式库把 AT 指令包装成简单易懂的函式,像是播打电话如果用 AT 指令做,可能需要下好几个 AT 指令并且做额外的判断,使用 GSM 函式库只要用一个函式就可以打电话。 函式库结构 GSM 函式库有许多功能,这些功能可以区分为以下七大类别: GSM 类别完成初始化 Arduino […]