|Anonymous | Login | Signup for a new account||2019-06-17 20:35 UTC|
|Main | My View | View Issues | Roadmap | Repositories|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000386||Tunix||Loaders||public||2011-11-11 23:42||2011-11-18 17:07|
|Platform||Apple Mac||OS||OS X||OS Version||10.6|
|Target Version||0.9.24||Fixed in Version|
|Summary||0000386: Completely Fails To Connect With PL2303 Device|
Exactly the same behaviour as Sean's loader, which I believe uses your code now. I'd like to see them be genetically different for occasions like this when I end up unable to load without changing hardware or operating system. That's not an option for most people who don't have 5 computers, 7 operating systems and 6 types of serial chipsets at their disposal :-)
|Additional Information||Release Note, PL-2303 Mac OS X driver v1.4.0|
For Mac OS X 10.6 and 10.7
Supported device ID:
Kernel extension filename:
Device base name:
Remove any previous installed driver first.
1. go to terminal
2. cd /system/library/Extension
3. kextunload ProlificUSBSerial.kext
4. rm -r ProlificUSBSerial.kext
Prolific USB to Serial Cable driver for Mac OS X 10.6
. Mac OS X 10.6 Snow Leopard (32 and 64 bit kernel)
. Mac OS X 10.7 Lion (32 and 64 bit kernel)
. USB host controller
. Device using PL-2303H/X
Prolific Technology Inc.
|Tags||No tags attached.|
|This tells me nothing and neither does the other ticket. Try harder and provide more feedback as to what is going on, instrument code is you have to.|
|I'm not spending time that I don't have instrumenting someone else's code and I have no further information as it stands except that another application works fine. I can attach the source from that app if you like. It's your code, you instrument it, I'll test it when you've pushed to a temporary branch for me to pull from.|
strace your code to see what EXACTLY it is doing.
Use google if you don't what strace is (any developer should know the tool or it's bretherin on other unix class OS's (truss and/or dtrace on solaris)
You failed to provide any GIT hash of hte firmware (when in live, non SM mode) or EXACT CONTEXT/order of operations to be able to debug anything without wasting HOURS of my time.
The "output" you provided was from SEANS CODE of which I know nothing whatsoever.
Google strace, apt-get install strace and use it and capture WHAT ITS DOING and point out WHAT EXACTLY IT SHOULD OR SHOULD NOT do as compared to the trace. Hell, provide a trace of a good vs bad run so we have something to compare against. There no way I CAN KNOW what the SM expects or whould reply with, I don't know anything about the serial monitor or what it expects or sends, if it has timing critical issues or requires "wait states" (bad design) or anything, that is your domain and you're the subject matter expert there, so get some EVIDENCE that points to an actual problem that can be solved without a ouiji board.
mtxloader loads firmware just fine onto my S19 card with multiple attempts, so I have no "bad case" to compare to. I'm using a PL2303 device, 2.6.32-33-generic kernel and the following PL2303 information:
description: Prolific PL2303 USB to serial adaptor driver
NOTE: you NEVER provided any of this information in the original ticket, and this is an example of the kind of information that is important along with context. Examples of context that shows evidence of some effort include: "It happens ever time, I tried at least 5 times", "It fails the first time, but then works every time thereafter", or "I watched it with strace and saw blah get sent which should of had a response, and the responses to the command are documented here on this link, page 5, near the top, but the SM didn't respond and here's the trace showing what it did instead"
Marking ticket as "worksforme" as loading works just fine for me with mtxloader.
|Updated ticket with driver readme contents.|
|And you forgot the OS exact version, whether its 32/64 bit, and the hardware the mac OS is running on. (which kind of mac, ie. make/model)|
System Version: Mac OS X 10.6.7 (10J869)
Kernel Version: Darwin 10.7.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: FreeAir
User Name: Fred Cooke (fred)
Secure Virtual Memory: Enabled
64-bit Kernel and Extensions: No
Time since boot: 1 day5:27
Model Name: MacBook Air
Model Identifier: MacBookAir2,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.13 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 6 MB
Memory: 2 GB
Bus Speed: 1.07 GHz
Boot ROM Version: MBA21.0075.B03
SMC Version (system): 1.34f8
Sudden Motion Sensor:
|Recent commits have made the initial connect, and load work fine, however, the PL2303 driver appears to have bugs where it gets into an odd state, and fails to work again until unplugged and replugged, at which time the cycle repeats.|
|Tested using official prolific 1.4.0 driver, seems to work reasonably reliably on /dev/cu.PL2303-<SERIAL>, but /dev/cu.usbserial only works on first plugin, and also FASTER (almost 2x faster) than the PL2303 device node. I suspect the PL2303 driver is still rather broken internally but since its a closed source driver on a closed source OS, I have no way to debug further.|
|Copyright © 2000 - 2011 MantisBT Group|