Puppyserialdetect fix/patch
Puppyserialdetect fix/patch
Hi,
Barry just noticed a problem with latest puppyserialdetect:
http://www.puppylinux.com/news/comments ... 608-031112
Here is a version that'll maybe revert to the original detection scheme.
Version 1.1f:
ADDED README file.
ADDED /dev/ttySX node creation if necessary.
ADDED scan ttyS0 - ttyS4 (inclusive)
REMOVED optimization that might have skipped over a serial modem.
INCLUDES binaries and source code.
Jesse
Barry just noticed a problem with latest puppyserialdetect:
http://www.puppylinux.com/news/comments ... 608-031112
Here is a version that'll maybe revert to the original detection scheme.
Version 1.1f:
ADDED README file.
ADDED /dev/ttySX node creation if necessary.
ADDED scan ttyS0 - ttyS4 (inclusive)
REMOVED optimization that might have skipped over a serial modem.
INCLUDES binaries and source code.
Jesse
- Attachments
-
- puppyserialdetect-1.1f.tar.gz
- (30.3 KiB) Downloaded 1039 times
Ok Barry
If anyone would like to try out this version, please post if it works or not with your serial modem or internal PCI modem ( /dev/ttyS4 is supposed to be internal PCI modem on some computers), also let us know what make/model it is. If the progam works, it will output a line identifying the modem e.g.:
Type:modem|Port:/dev/ttyS4|Speed:14400
Jesse
If anyone would like to try out this version, please post if it works or not with your serial modem or internal PCI modem ( /dev/ttyS4 is supposed to be internal PCI modem on some computers), also let us know what make/model it is. If the progam works, it will output a line identifying the modem e.g.:
Type:modem|Port:/dev/ttyS4|Speed:14400
Jesse
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Yes, testers are wanted!
Just to clarify though, if you do have a internal PCI modem, we are only concerned with a true hardware modem -- that's all 'puppyserialdetect' will detect. There aren't too many true-hardware PCI modems around, certainly they are no longer made, and you are only likely to find one in a PC ....how long ago.... 5 years old?
There are apparently some true hardware USB modems, but we havn't got to the point of autodetecting them yet. Except for some models, I'm working on that right now.
Just to clarify though, if you do have a internal PCI modem, we are only concerned with a true hardware modem -- that's all 'puppyserialdetect' will detect. There aren't too many true-hardware PCI modems around, certainly they are no longer made, and you are only likely to find one in a PC ....how long ago.... 5 years old?
There are apparently some true hardware USB modems, but we havn't got to the point of autodetecting them yet. Except for some models, I'm working on that right now.
Diamond Modem SupraExpress56e com1 port
I downloaded and installed puppyserialdetect and it detected it ok
Type:modem|Port:/dev/ttys0|Speed:230400
Type:modem|Port:/dev/ttys0|Speed:230400
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Doesn't detect nor the internal modem nor a PCMCIA one.
Only mice's, but as far as I know they aren't serial.
One them is a touchpad.
Only mice's, but as far as I know they aren't serial.
One them is a touchpad.
Code: Select all
sh-3.00# puppyserialdetect
Type:PS2-mouse|Port:/dev/input/mice
Type:PS2-mouse|Port:/dev/input/mice
sh-3.00#
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]
Hi Béèm,
Are you sure you are running the file that you download?
Normally you have to run it with a ./ prefix, like: ./puppyserialdetect
Above you can see that I get two different outputs, from the two different versions on the system, (version with Puppy 2.13 does not detect my usb mouse).
Jesse
Are you sure you are running the file that you download?
Normally you have to run it with a ./ prefix, like: ./puppyserialdetect
Code: Select all
sh-3.00# puppyserialdetect
sh-3.00# ./puppyserialdetect
Type:USB-mouse|Port:/dev/input/mice
sh-3.00#
Jesse
No joy with my old Asus PC (500MHz) with external serial modem connected to Com1 (/dev/ttyS0). It does detect the serial mouse (PS/2):
Let me know if there's something I can run to show you what the hardware is. It's a 3Com US Robotics 56K Faxmodem
Code: Select all
sh-3.00# ./puppyserialdetect
Type:PS2-mouse|Port:/dev/input/mice
sh-3.00#
My pci sound card died so I replaced it with the original device:
This too is not detected. Nor is it detected by the modem wizard. Is it the kind of modem that is supposed to be detected?
Code: Select all
pci bus 0x0002 cardnum 0x0a function 0x00: vendor 0x14f1 device 0x2f00
Conexant HSF 56k HSFi Modem
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
zygo: no, only genuine hardware modems.
Jesse: -d option returns this:
Probing serial ports...
ensure_dev_node_present on /dev/ttyS0 4 64
Found [/dev/ttyS0]
ensure_dev_node_present on /dev/ttyS1 4 65
ensure_dev_node_present on /dev/ttyS2 4 66
ensure_dev_node_present on /dev/ttyS3 4 67
ensure_dev_node_present on /dev/ttyS4 4 68
...which is interesting, at least it recognises something is there!
Does that help to narrow-down the problem?
Jesse: -d option returns this:
Probing serial ports...
ensure_dev_node_present on /dev/ttyS0 4 64
Found [/dev/ttyS0]
ensure_dev_node_present on /dev/ttyS1 4 65
ensure_dev_node_present on /dev/ttyS2 4 66
ensure_dev_node_present on /dev/ttyS3 4 67
ensure_dev_node_present on /dev/ttyS4 4 68
...which is interesting, at least it recognises something is there!
Does that help to narrow-down the problem?
Hi Barry,
Yep, the problem is certainly narrowed down, I just had a quick look at the code and spotted the logic flaw in it, and I looked at the original code, and scratching my head as to why that worked, the original isn't gauranteed to work, but that is determined at compile time, it needs a compiler optimization to be gauranteed for the program to work, which is what probably confused me in the first place.
I'll hopefully post an update soon.
Jesse
Yep, the problem is certainly narrowed down, I just had a quick look at the code and spotted the logic flaw in it, and I looked at the original code, and scratching my head as to why that worked, the original isn't gauranteed to work, but that is determined at compile time, it needs a compiler optimization to be gauranteed for the program to work, which is what probably confused me in the first place.
I'll hopefully post an update soon.
Jesse
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Okay, I got it working.
I realised that Jesse has a problem not having a serial modem to test with, so got stuck into it myself.
It's a very bad hack though. I went back to the original version, which tests serial modems only. I then turned on the mouse detection bits, which waswhat Dougal did for v1.1, but it didn't detect my ps/2 mouse -- I then tried Dougal's v1.1, same problem.
So, I grabbed Jesse's 'mouse.c' and hacked it very badly, but it now works (don't cringe too much when you look at it, Jesse )
I'm only using puppyserialdetect in Puppy to detect modems and mice, not keyboards, as I'm still using some code that pakt works out sometime ago for usb keyboard detection.
I'm called it version 1.2...
I realised that Jesse has a problem not having a serial modem to test with, so got stuck into it myself.
It's a very bad hack though. I went back to the original version, which tests serial modems only. I then turned on the mouse detection bits, which waswhat Dougal did for v1.1, but it didn't detect my ps/2 mouse -- I then tried Dougal's v1.1, same problem.
So, I grabbed Jesse's 'mouse.c' and hacked it very badly, but it now works (don't cringe too much when you look at it, Jesse )
I'm only using puppyserialdetect in Puppy to detect modems and mice, not keyboards, as I'm still using some code that pakt works out sometime ago for usb keyboard detection.
I'm called it version 1.2...
- Attachments
-
- puppyserialdetect-1.2.tar.gz
- (35.73 KiB) Downloaded 515 times