Denso BHT-200QW Especificaciones Pagina 464

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 587
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 463
456
OPEN "COM4:M,DUN" AS #4
(b) Specifying parameters in the OPEN statement
OPEN "COM4:M,DUN,112233AABBCC,BHT,30,2" AS #4
' Address for remote device:
' 11:22:33:AA:BB:CC"
' Bluetooth passkey: BHT
' Connection timeout: 30 seconds
' Security mode: service level
For further details on OPEN "COM4:" statement, refer to Section 18.3 "Bluetooth Statements
and Functions."
(Example)
Connect to the Internet using a cell phone and transfer data and files over socket interface.
The cell phone has the following specifications.
Dial command : "ATDT" + telephone number
Connect message : "CONNECT"
Escape command : "+++"
Disconnect command : "ATH"
Reply message : "OK"
' Open Bluetooth communications device file
' Connect to cell phone with Bluetooth device at address "11:22:33:AA:BB:CC"
OPEN "COM4:M,DUN,112233AABBCC" AS #4 ' Address for remote device:
' "11:22:33:AA:BB:CC"
' Establish data link
PRINT #4, "ATDT1234567890" ' Dial provider (123-456-7890)
' Wait for "CONNECT"
' For details about the reading data received,
' refer to Section 18.2.4.2 "Reading data received in serial communications."
' Specify TCP/IP communications pathway
iftype% = .soDvCOM4 ' Communications device: Bluetooth
layermode% = .soLyPPP ' Link layer: PPP
CALL "SOCKET.FN3" .fcTSetup iftype%,layermode%,Interface%
' Specify TCP/IP communications pathway
' Connect TCP/IP communications pathway
ip$ = "192.168.0.125" ' IP address for the BHT
msk$ = "255.255.255.0" ' Subnet mask
gw$ = "0.0.0.0" ' Default gateway
Vista de pagina 463
1 2 ... 459 460 461 462 463 464 465 466 467 468 469 ... 586 587

Comentarios a estos manuales

Sin comentarios