merge RCL_2_4
authordadubrow
Fri, 12 Mar 2010 14:59:20 -0600
branchRCL_2_4
changeset 1106 cfd24c7f99b4
parent 1105 780e268db85f (current diff)
parent 1097 fb62f8355442 (diff)
child 1107 d9a4ab4d8127
merge
connectivity/com.nokia.carbide.remoteConnections/META-INF/MANIFEST.MF
--- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java	Fri Mar 12 14:58:03 2010 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java	Fri Mar 12 14:59:20 2010 -0600
@@ -675,7 +675,7 @@
 	 * @param personalityList - all USB-connected devices
 	 * @return - null if no personality found
 	 */
-	private DeviceUSBPersonalityInfo findPersonality(int numUSBPersonalities, String serialNumber, String address, Collection<DeviceUSBPersonalityInfo> personalityList) {
+	private DeviceUSBPersonalityInfo findPersonality(int numUSBDevicesExpected, String serialNumber, String address, Collection<DeviceUSBPersonalityInfo> personalityList) {
 	
 		if (DEBUG) System.out.println("findPersonality: start"); //$NON-NLS-1$
 		if (personalityList == null || personalityList.isEmpty()) {
@@ -707,16 +707,27 @@
 				//   0\VID_0421&PID_00AB\0 (no serial number as part of id)
 				//   004401011418023\VID_0421&PID_0500\0 (serial number comes at front)
 				// compare Device IDs
-				String id = address.substring(address.indexOf('\\'), address.lastIndexOf('\\'));
-				if (personality.deviceID.contains(id) && personality.deviceID.contains(serialNumber)) {
-					if (DEBUG) System.out.println("findPersonality: address matches deviceID with serial number"); //$NON-NLS-1$
+				String vidpid = address.substring(address.indexOf('\\'), address.lastIndexOf('\\'));
+				String endid = address.substring(address.lastIndexOf('\\')+1);
+				if (personality.deviceID.contains(vidpid) && personality.deviceID.contains(endid)) {
+					if (DEBUG) System.out.println("findPersonality: address matches deviceID with end number\n"); //$NON-NLS-1$
+					return personality;
+				}
+				else if (personality.deviceID.contains(vidpid) && personality.deviceID.contains(serialNumber)) {
+					if (DEBUG) System.out.println("findPersonality: address matches deviceID with serial number\n"); //$NON-NLS-1$
 					return personality;
 				} else {
+					if (serialNumber.equals(NOT_KNOWN)) {
+						if (personality.deviceID.contains(vidpid) && numUSBDevicesExpected == 1) {
+							if (DEBUG) System.out.println("findPersonality: serial number not known, but VID/PID match\n"); //$NON-NLS-1$
+							return personality;
+						}
+					}
 					String begin = personality.deviceID.substring(0, personality.deviceID.indexOf('\\'));
-					if (begin.equals("0")) {
+					if (begin.equals("0") || numUSBDevicesExpected == 1) {
 						// no serial number at beginning
-						if (personality.deviceID.contains(id)) {
-							if (DEBUG) System.out.println("findPersonality: address matches deviceID without serial number"); //$NON-NLS-1$
+						if (personality.deviceID.contains(vidpid)) {
+							if (DEBUG) System.out.println("findPersonality: address matches deviceID without serial number\n"); //$NON-NLS-1$
 							return personality;
 						}
 					}
--- a/core/com.nokia.carbide.cpp.doc.user/html/reference/trk/wnd_new_conn_install_tab.htm	Fri Mar 12 14:58:03 2010 -0600
+++ b/core/com.nokia.carbide.cpp.doc.user/html/reference/trk/wnd_new_conn_install_tab.htm	Fri Mar 12 14:59:20 2010 -0600
@@ -22,7 +22,7 @@
   </tr>
   <tr>
     <td><strong>Install remote agents</strong></td>
-    <td><p>A list of the most current versions of remote agents sorted by SDK and version. Select the version most compatable with the device. For example, a device running S60 3.2.0 needs a version of the TRK software compiled for that SDK, which in the image above is Application TRK 3.0.4. </p>
+    <td><p>A list of the most current versions of remote agents sorted by SDK and version. Select the version most compatable with the device. For example, a device running S60 5.0 needs a version of the TRK software compiled for that SDK, which in the image above is Application TRK 3.1.2. </p>
         <p>Additional information about the selected entry is displayed to the right to help you choose the correct version of TRK for the target device. </p></td>
   </tr>
   <tr>
@@ -32,7 +32,8 @@
   <tr>
     <td><strong>Install</strong></td>
     <td><p>Click <strong>Install</strong> to download and install the TRK selected in the Install remote agents list. A progress bar is shown if the install operation requires more than a few seconds to complete. </p>
-        <p class="note"><strong>NOTE</strong> The SIS and SISX file types must be associated with an installer application like Nokia PC Suite in order to install them onto the device. Use the Save command above to perform a manual install to the device if you don't have an installer application. </p></td>
+      <p class="note"><b>NOTE</b> Drivers installed by PC Suite or Ovi Suite are required in order for Install to download a remote agent onto the target device.</p>
+    <p class="note"><strong>NOTE</strong> The SIS and SISX file types must be associated with an installer application like Nokia PC Suite or Ovi Suite in order to install them onto the device. Use the Save command above to perform a manual install to the device if you don't have an installer application. </p></td>
   </tr>
 </table>
 <p></p>
--- a/core/com.nokia.carbide.cpp.doc.user/html/release_notes.htm	Fri Mar 12 14:58:03 2010 -0600
+++ b/core/com.nokia.carbide.cpp.doc.user/html/release_notes.htm	Fri Mar 12 14:59:20 2010 -0600
@@ -38,8 +38,8 @@
 <h3><a name="whatsNew" id="whatsNew"></a>What's New in 2.5.0 </h3>
 <p>The following features for Symbian  development are provided within Carbide.c++:</p>
 <ul>
-  <li><b>Plug-and-Play (PnP) On-device Debugging </b> supported &mdash; debugging a target device just got easier. Using a USB cable, connect the PC to the target device, then launch Carbide.c++. Carbide locates the connected device and creates a remote connection setup to communicate with it. Build the program and launch it on the device to start the debugging session.</li>
-  <li><b>PnP Launch Wizard</b> - If the project does not already have a launch configuration, the PnP Launch Wizard makes it easy to create one no matter what the target: <a href="projects/launch/launch_emulator.htm">emulator</a>, <a href="projects/launch/launch_phone.htm">phone</a>, or hardware <a href="projects/launch/launch_board.htm">device</a>. In addition the new <a href="projects/launch/wnd_config_launch_config.htm">Configure Launch Configuration</a> dialog provides a quick summary of the remote connection for easy review and modification.</li>
+  <li><b>Plug-and-Play (PnP) On-device Debugging </b> supported &mdash; debugging a target device just got easier. Using a USB cable, connect the PC to the target device, then launch Carbide.c++. Carbide locates the connected device and creates a remote connection setup to communicate with it. Build the program and launch it on the device to start the debugging session. Refer to <a href="#pnpIssues">Known PnP Issues</a> for details if you experience problems.</li>
+  <li><b>PnP Phone Launch Wizard</b> - If the project does not already have a launch configuration, the PnP Launch Wizard makes it easy to create one for <a href="projects/launch/launch_phone.htm">phones</a>. In addition the new <a href="projects/launch/wnd_config_launch_config.htm">Configure Launch Configuration</a> dialog provides a quick summary of the remote connection for easy review and modification.</li>
   <li><b>Carbide  automatically detects TRK on target phones and devices</b> - Carbide  now detects the presence of either Application or System TRK on a connected device when TRK 3.2.6 or later are installed. Earlier TRK versions  do not support this recognition feature.</li>
   <li><b>TRK improvements</b> - TRK continues to evolve and now includes these improvements:
     <ul>
@@ -184,6 +184,26 @@
  style="vertical-align: top; text-align: center; font-weight: bold; ">Workaround</th>
     </tr>
     <tr align="center">
+      <td colspan="2" bgcolor="#FFFFCC"><b><a name="pnpIssues" id="pnpIssues"></a>KNOWN PnP ISSUES in 2.5</b></td>
+    </tr>
+    <tr align="center">
+      <td><div align="left">Connecting multiple devices</div></td>
+      <td><div align="left">If multiple devices are plugged into USB, Carbide sometimes cannot determine the USB personality of either or both devices. Carbide will log an error that says the &quot;getting/setting of USB personality&quot; was not supported and no connection is created. The work-around is to plug only one device in.</div></td>
+    </tr>
+    <tr align="center">
+      <td><div align="left">Multiple same error warnings</div></td>
+      <td><div align="left">
+        <p>If a single device is plugged in, and Carbide logs the same error, this is an indication that either </p>
+        <p>A. the PCSuite/OVISuite drivers are not up-to-date or </p>
+        <p>B. the device does not support switching to PC/OVI Suite mode from its current mode </p>
+        <p>For case A, try installing a later version of PCSuite. For case B, set the default USB mode to PC/OVI Suite mode in the settings on the device or selecting PC/OVI Suite mode when the device asks which USB mode to select.</p>
+        </div></td>
+    </tr>
+    <tr align="center">
+      <td><div align="left">PC Suite fails to send updates</div></td>
+      <td><div align="left">On some devices, when unplugging and plugging back in the same USB mode, PC Suite will fail to notify that the device disconnected and the personality switch bubble will not pop up. As a work-around, change the default mode and plug in the device again.</div></td>
+    </tr>
+    <tr align="center">
       <td colspan="2" bgcolor="#FFFFCC"><a name="CRITICAL_ITEMS"></a><span class="style8">CRITICAL ITEMS</span></td>
     </tr>
     <tr>
--- a/core/com.nokia.carbide.cpp.doc.user/tocCarbide.xml	Fri Mar 12 14:58:03 2010 -0600
+++ b/core/com.nokia.carbide.cpp.doc.user/tocCarbide.xml	Fri Mar 12 14:59:20 2010 -0600
@@ -2,7 +2,16 @@
 <?NLS TYPE="org.eclipse.help.toc"?>
 <toc label="Introduction" href="html/concepts/Introduction.html"  >
   <topic label="Carbide.c++ Overview" 			href="html/tasks/start/carbide_overview.htm" >
-    <topic label="System Requirements" 			href="html/tasks/start/carbide_requirements.htm" />
+    <topic href="html/tasks/start/carbide_requirements.htm" label="System Requirements">
+       <topic href="html/tasks/debugger/run_mode_debug_01.htm" label="Installing PERL">
+       </topic>
+       <topic href="html/tasks/debugger/run_mode_debug_02.htm" label="Installing an SDK">
+       </topic>
+       <topic href="html/tasks/debugger/run_mode_debug_03.htm" label="Configuring environment variables">
+       </topic>
+       <topic href="html/tasks/debugger/run_mode_debug_04.htm" label="Setting up a virtual drive">
+       </topic>
+    </topic>
     <topic label="Carbide Help" 				href="html/tasks/start/carbide_help.htm" />
     <topic label="Supported Target Types"		href="html/concepts/build_targets.htm" />
     <topic label="Supported SDKs" 		    	href="html/sos_references.htm" />
@@ -222,6 +231,21 @@
         <topic href="html/tasks/debugger/view_symbian_kernel_set.htm" label="Setting the Refresh Rate"></topic>
       </topic>
     </topic>
+    <topic label="Debugging actions" href="html/debugger/debug/debug.htm">
+      <topic href="html/debugger/debug/viewing_debug.htm" label="View debugging"></topic>
+      <topic href="html/debugger/debug/cmds_starting.htm" label="Starting and Terminating"></topic>
+      <topic href="html/debugger/debug/cmds_resuming.htm" label="Suspending and Resuming"></topic>
+      <topic href="html/debugger/debug/cmds_stepping.htm" label="Stepping Over, Into, and Out of Routines"></topic>
+      <topic href="html/debugger/debug/cmds_other.htm" label="Other useful commands"></topic>
+      <topic href="html/debugger/debug/cmds_reposition_pc.htm" label="Reposition the program counter"></topic>
+    </topic>
+    
+    <topic href="html/reference/trk/wnd_new_connection_wizard.htm" label="On-Device Connections Overview" >
+      <topic label="Remote Connections view"			href="html/reference/trk/view_remote_connection.htm" />
+      <topic href="html/reference/trk/wnd_new_conn_wiz_edit.htm" label="Adding, editing, and deleting connections" />
+      <topic href="html/reference/trk/exporting_remote_conns.htm" label="Exporting remote connections"></topic>
+      <topic href="html/reference/trk/importing_remote_conns.htm" label="Importing remote connections"></topic>
+    </topic>
 	
        <topic label="Debugging with an emulator"				href="html/projects/launch/launch_emulator.htm" >
 			<topic label="Executable Selection"					href="html/projects/launch/wiz_new_launch_config.htm#EXE_SEL" />
@@ -231,52 +255,33 @@
 			  <topic label="Setting Environment for x86 Compiler"	href="html/tasks/projects/prj_build_cmd_line.htm" />
 			  <topic label="Unsetting Built-in Environment"	        href="html/reference/wnd_carbide_pref_x86.htm" />
 			</topic>
+    		<topic label="DLL Emulator Example" href="html/concepts/SampleExampleProjectCreate.html" />
        </topic>
        
-    <topic label="Run mode debugging"  href="html/projects/launch/pnp_debug_overview.htm" >
+    <topic label="Run mode projects"  href="html/projects/launch/pnp_debug_overview.htm" >
+      <topic label="Run Mode Overview"  			href="html/tasks/start/carbide_overview_trk.htm" ></topic>
+      <topic href="html/concepts/autotargeting.htm" label="Auto-Targeting of Executables"></topic>
 	   <topic href="html/projects/launch/launch_phone.htm" label="Debugging a phone">
           <topic label="Configure launch configuration"		href="html/projects/launch/wnd_config_launch_config.htm" />
           <topic label="Remote connection setting"			href="html/projects/launch/wnd_change_connection.htm" />
           <topic label="Debug process settings"				href="html/projects/launch/wnd_change_debug_process.htm" />
           <topic label="Other settings"						href="html/projects/launch/wnd_change_other_settings.htm" />
        </topic>
-    </topic>
-
-
-    <topic label="DLL Emulator Example" href="html/concepts/SampleExampleProjectCreate.html" />
-    </topic>
-	   
-       <topic href="html/projects/launch/launch_board.htm" label="Debugging a reference board">
-       </topic>
-	   
-    <topic label="Run mode projects" 						href="html/tasks/RunModeToc.htm">
-      <topic label="Run Mode Overview"  			href="html/tasks/start/carbide_overview_trk.htm" ></topic>
-      <topic href="html/concepts/autotargeting.htm" label="Auto-Targeting of Executables"></topic>
-      
-      <topic href="html/tasks/start/carbide_example_trk.htm" label="Run Mode Example">
-        <topic href="html/tasks/trk/trk_preconditions.htm" label="1. Preconditions to On-Device Debugging"></topic>
-        <topic href="html/tasks/trk/trk_installation_instr.htm" label="2. Installing an On-Device Debug Agent"></topic>
-        <topic href="html/tasks/projects/working_with_sis_pkg_files.htm" label="3. Creating a PKG File"></topic>
-        <topic href="html/tasks/projects/prj_creating_sis_file.htm" label="4. Creating a .SIS File"></topic>
-        <topic href="html/tasks/start/carbide_deploying.htm" label="5. Deploying Programs"></topic>
-        <topic href="html/tasks/trk/trk_carbide_setup.htm" label="6. Launch Configuration Setup">
-          <topic href="html/reference/trk/panel_trk_overview.htm" label="Debug (On-device Debugging) Overview"></topic>
+      <topic href="html/tasks/debugger/run_mode_debug.htm" label="Run Mode Example">
       </topic>
         
-        <topic href="html/tasks/projects/prj_debug_config.htm" label="7. Debugging Applications">
-          <topic href="html/tasks/projects/prj_debug_dlls.htm" label="Debugging DLLs"></topic>
-          <topic href="html/tasks/projects/prj_import_exe.htm" label="Importing a Symbian Executable"></topic>
-          <topic href="html/tasks/processes/attach_debugger_to_process.htm" label="Attaching to a Symbian OS Process"></topic>
-          <topic href="html/tasks/start/carbide_debugging.htm" label="Debugging a Symbian OS Program"></topic>
-          <topic href="html/concepts/arm_registers.htm" label="Registers"></topic>
-          <topic href="html/reference/view_symbian_kernel.htm" label="Symbian OS Data View"></topic>
-        </topic>
+      <topic href="html/tasks/projects/prj_debug_dlls.htm" label="Debugging DLLs"></topic>
+      <topic href="html/tasks/projects/prj_import_exe.htm" label="Importing a Symbian Executable"></topic>
+      <topic href="html/tasks/processes/attach_debugger_to_process.htm" label="Attaching to a Symbian OS Process"></topic>
+      <topic href="html/tasks/start/carbide_debugging.htm" label="Debugging a Symbian OS Program"></topic>
+      <topic href="html/concepts/arm_registers.htm" label="Registers"></topic>
+      <topic href="html/reference/view_symbian_kernel.htm" label="Symbian OS Data View"></topic>
         
-      </topic>
-      <topic label="Troubleshooting" 						href="html/tasks/trk/trk_troubleshooting.htm"/>
     </topic>
     
     <topic label="Stop mode projects" 				href="html/tasks/StopModeToc.htm">
+       <topic href="html/projects/launch/launch_board.htm" label="Debugging a reference board">
+       </topic>
       <topic label="Stop Mode Debug Example" 				href="html/tasks/debugger/stop_mode_debug.htm" >
         <topic label="1. On-Device Debugging Preconditions" href="html/tasks/debugger/stop_mode_debug_precond.htm" />
         <topic label="2. Trace32 Support" 					href="html/projects/launch/trace32.htm" >
@@ -295,21 +300,6 @@
       <topic label="Symbian OS Data View"					href="html/reference/view_symbian_kernel.htm" />
       <topic label="Toggle HW Breakpoint"           		href="html/reference/menus/hardware_breakpoints.htm" />
     </topic>
-    
-    <topic href="html/reference/trk/wnd_new_connection_wizard.htm" label="On-Device Connections Overview" >
-      <topic label="Remote Connections view"			href="html/reference/trk/view_remote_connection.htm" />
-      <topic href="html/reference/trk/wnd_new_conn_wiz_edit.htm" label="Adding, editing, and deleting connections" />
-      <topic href="html/reference/trk/exporting_remote_conns.htm" label="Exporting remote connections"></topic>
-      <topic href="html/reference/trk/importing_remote_conns.htm" label="Importing remote connections"></topic>
-    </topic>
-    <topic label="Debugging actions" href="html/debugger/debug/debug.htm">
-      <topic href="html/debugger/debug/viewing_debug.htm" label="View debugging"></topic>
-      <topic href="html/debugger/debug/cmds_starting.htm" label="Starting and Terminating"></topic>
-      <topic href="html/debugger/debug/cmds_resuming.htm" label="Suspending and Resuming"></topic>
-      <topic href="html/debugger/debug/cmds_stepping.htm" label="Stepping Over, Into, and Out of Routines"></topic>
-      <topic href="html/debugger/debug/cmds_other.htm" label="Other useful commands"></topic>
-      <topic href="html/debugger/debug/cmds_reposition_pc.htm" label="Reposition the program counter"></topic>
-    </topic>
     <topic href="html/debugger/breakpoints/breakpoints.htm" label="Breakpoints">
       <topic label="Viewing breakpoints" href="html/debugger/breakpoints/viewing_breakpoints.htm" />
       <topic label="Breakpoint status indicators" href="html/debugger/breakpoints/resolving_breakpoints.htm" />
@@ -345,6 +335,11 @@
       <topic label="Debugging in ROM"		                href="html/tasks/projects/prj_debug_rom.htm" />
       <topic label="Importing Symbian Executables"		href="html/tasks/projects/prj_import_exe.htm" />
     </topic>
+
+      <topic label="Troubleshooting" 						href="html/tasks/trk/trk_troubleshooting.htm"/>
+    </topic>
+    
+	   
   <topic href="html/reference/search/wnd_system_search.htm" label="System Search">
     <topic label="System Search view"      		href="html/reference/search/view_system_search.htm" />
     <topic label="System Search preferences"    href="html/reference/search/wnd_system_search_prefs.htm" />