Thingmagic Mercury API v1.23.0 Manual de usuario Pagina 110

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 128
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 109
Custom Serial Transport Naming
110 Advanced Customization
Example:
In MercuryAPI we have added support for a TCP serial bridge. The TCP serial bridge
allows the user to connect to a serial reader using TCP/IP and a port number. We have
added the custom transport file for TCP serial bridge. The following code example shows
how to implement it in C.
main ()
{
……..
ret =
TMR_setSerialTransport(“tcp”,&TMR_SR_SerialTransportTcpNativeInit);
// where “tcp” : can be any string
// TMR_SR_SerialTransportTcpNativeInit : reference to tcp transport
factory init function.
//call TMR_create() with reader URI as tcp://readerIP:portnumber.
ret = TMR_create(rp, “tcp://172.16.16.146:1001”);
……...
}
In the “cs\Sample\Codelets” directory, there is source code for this example,
“ReadCustomTransport”, which shows how to enable reading over a “tcp” custom serial
transport layer (SerialTransportTCP.cs in the cs\ThingMagicReader directory).
Vista de pagina 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 127 128

Comentarios a estos manuales

Sin comentarios