|
Application Note 193 and StartNetAdapterHost.tini Problems: msg#00691hardware.microcontrollers.tini
Dear TINI Support - I am trying to locate the sample program described below in application note 193, and have not had any luck in locating it. Specifically, "StartNetAdapterHost.java". Ref: http://pdfserv.maxim-ic.com/arpdf/AppNotes/app193.pdf >>> Quote snipped from app193.pdf "In the 1-Wire API for Java Kit, there is a sample program that facilitates the use of the host module. This application takes all the parameters for the host module as arguments on the command-line, and uses these parameters to create an instance of NetAdapterHost. A pre-built binary is included for both the desktop and the TINI. Figure 5 illustrates the command line for starting the host module on the desktop using a DS9097U adapter on the COM1 serial port. The current working directory is the application folder for StartNetAdapterHost in the 1-Wire API for Java Kit." Also helpful would be the file "props" that goes with it. I am seeing some really odd behavior of the copy of this file that I have, and am chasing it down. Using the command line in a 'source' startup file on my TINI with RTE 1.0e as: java StartNetAdapterHost.tini -adapterName TINIExternalAdapter -adapterPort serial0 -listenPort 6161 -secret "Adapter Secret Default" -multicast true -multicastGroup 224.0.0.0 In the application note it mentions that -multicast must be set to true (so I did that). I had to change the "secret" to "Adapter Secret Default", as it appears that at run-time, the application is taking the defaults only, and not the command line parameters (???). It is (sort of) working and shows the ID of a DS18S20), but the temperature conversion fails. Also,-h, -H, -? for help does not print the usage, and "java StartNetAdapterHost.tini" with no arguments does not print the usage either. I will keep digging in to debug this code, but could someone in support have the time to find the files and also run this application? Oh, and send me the files (in case what I have is foobar?) Scott Hughes probably has this stuff... - Best regards, Kelly Smith P.S., I check the TINI archives but only got three hits for "StartNetAdapterHost" Ref: http://lists.dalsemi.com/maillists/tini/2003-January/023710.html Ref: http://lists.dalsemi.com/maillists/tini/2003-January/023696.html Ref: http://lists.dalsemi.com/maillists/tini/2002-May/020043.html syntax: java StartNetAdapterHost <options> Options: -props Pulls all defaults from the onewire.properties file rather than using the defaults set in com.dalsemi.onewire.adapter.NetAdapterConstants. -adapterName STRING Selects the Adapter to use for the host. -adapterPort STRING Selects the Adapter port to use for the host. -listenPort NUM Sets the host's listening port for incoming socket connections. -multithread [true|false] Sets whether or not the hosts launches a new thread for every incoming client. -secret STRING Sets the shared secret for authenticating incoming client connections. -multicast [true|false] Enables/Disables the multicast listener. If disabled, clients will not be able to automatically discover this host. -multicastPort NUM Set the port number for receiving packets. -multicastGroup STRING Set the group for multicast sockets. Must be in the range of '224.0.0.0' to '239.255.255.255'. _______________________________________________ TINI mailing list TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Netboot problem: 00691, Michele Marcon |
|---|---|
| Next by Date: | RE: CPLD in circuit programming: 00691, Kelly Smith |
| Previous by Thread: | Netboot problemi: 00691, Michele Marcon |
| Next by Thread: | connect TINI 1.11 to JXTA 2.0 Relay (use proxy): 00691, duarte_e-49WeHKhj208 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |