The C Source, Patches and (shudder!) Bugs
Post Reply
Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Sakis3g Rebuilt

Post by Trixar_za » 18 Apr 2012, 09:29

I recently rebuilt the sakis3g using the guide on the wiki and the all in one source package.

A few things I noted in my attempt is that while the latest usb_modeswitch builds without problems with sakis3g, the latest usb_modeswitch-data does not seem to work correctly (and not just the error caused by the missing quotation mark (") in 21f5:1000). Sakis3g can switch the devices correctly, but then seems unable to find it. I remedied this by downloading the previous copy of usb_modeswitch-data (20110123) and testing if it would work. It worked successfully, so I did a diff on the two databases, noticed the 15 file difference (04bb:bccd, 1004:614e, 12d1:1f01, a8d:2000, 05c6:1000:uMa=DGT, 1004:61dd, 19d2:0146, 201e:1023, 0af0:7706, 1004:61e7, 19d2:0169, 21f5:1000, 0af0:d001, 1004:61eb, 19d2:1520) between the two, copied those 15 files to the old database and tried to compile and run sakis3g again. It worked and I'm currently posting from it.

This is kind of why I'm here. I need people to test this new build of sakis3g and see if it works for them. I want to see if my building method helped sakis3g's device support or destroyed it. I also note the script is two times bigger than the old one.

You can get the latest copy of the rebuilt sakis3g here (remember to extract it) and the full sources of everything I changed here

I hope to get some feedback on this (mostly because sakis3g's forum is non-existant at the moment)
Last edited by Trixar_za on 14 Jul 2013, 06:02, edited 2 times in total.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Post by Trixar_za » 10 Aug 2012, 17:23

This has been updated to the latest database using the old working database and copying it over the new one. The new database still doesn't work with sakis3g on it's own. 21f5:1000 also STILL has the missing " in it.

Everything at the above links have been replaced with the latest versions of the build.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Re: Sakis3g Rebuilt

Post by Trixar_za » 29 Oct 2012, 03:22

Right, seems I made an error in sakis3g's code trying to strip out the bashism. They're all back in place and now menu selection from the interactive terminal works again! All links have been updated.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Re: Sakis3g Rebuilt

Post by Trixar_za » 01 Nov 2012, 17:12

Rebuilt sakis3g with latest usb_modeswitch and database. 21f5:1000 STILL has the missing " in it (Good to know you guys bother to read this post ::Sarcasm::). Sakis3g didn't work with the latest database, so just copied the previous 'working' database over the new one - possibly not the best way to do it, but it works... Everything has been updated to reflect the new changes.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Re: Sakis3g Rebuilt

Post by Trixar_za » 23 Mar 2013, 20:34

Yet another update. While the latest database compiles properly, it seems sakis3g is unable to use it. Guess a rewrite of Sakis3G is needed to use usb-modeswitch properly. Copying over the last working copy of the database seems to still fix this - for older devices anyway.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Re: Sakis3g Rebuilt

Post by Trixar_za » 31 Jul 2013, 08:55

Considering I got a few downloads and back links from here, I guess it's time for a proper update post for you guys.

Changes since I was last here:
I found out the main problem with switching related to Sakis3g. It seems to rely on DefaultProduct, DefaultVendor and CheckSuccess even though it's NOT explicitly used in the code. This is why any definition files written in the new style doesn't work with Sakis3g at all. I've tried including either values set by themselves, but it refused work unless both Default* and CheckSuccess was included. This meant I had to alter 91 files by hand to fit the old format. The result? New definition files now run near flawlessly when copied over the older (and working) database - the only flaw being that I had to guess the CheckSuccess value for some of the files, but that gets fixed as it's reported.

A copy of the last working database (before the switch over to the new format/style) can be downloaded here and the modified definition files of the newest database can be grabbed from here. Just copy the one over the other and you'll have a working and up-to-date version of the usb_modeswitch database that's compatible with Sakis3g.

As always, the latest i386 build can be grabbed here with the source code (with the latest usb_modeswitch and database) can be found here.

You can also find the guide to how to compile the source code yourself here thanks to Archive.org

EDIT: I added a github repository for the source code here
Last edited by Trixar_za on 04 Aug 2013, 14:03, edited 1 time in total.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Sakis3g Rebuilt

Post by Josh » 31 Jul 2013, 22:12

Hmm, but you could have used the default ID values from the file names ...

It was in fact a redundancy to have the default USB ID both in the config file name and in the config file content. If you know the right config file name to give to usb_modeswitch on the command line, you can also give the default vendor and product ID on the command line.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Re: Sakis3g Rebuilt

Post by Trixar_za » 02 Aug 2013, 02:05

That's what so baffling about it because it does use the file's name during database generation and not DefaultVendor or DefaultProduct. I tried commenting out the code that uses it (scripts/device-database-gen and src/sakis3g) and it made no difference. It's clearly a bug in Sakis3g, but one I don't know how to fix it beyond recreating the files in the old syntax format.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Re: Sakis3g Rebuilt

Post by Trixar_za » 30 Mar 2014, 12:12

Yet another update to Github (fixing compile errors and moving to libusb-1.x support) and to http://trixarian.net/sakis3g.gz.

I've identified the problem that breaks usb_modeswitch with sakis3g when used internally. It's the database generation script that's broken and it doesn't support the current syntax. If I can fix this, we should be able to keep usb_modeswitch current without requiring any changes to usb_modeswitch's sources.

Trixar_za
Posts: 9
Joined: 18 Apr 2012, 08:54
Location: South Africa
Contact:

Re: Sakis3g Rebuilt

Post by Trixar_za » 14 Apr 2014, 19:21

So I identified the problem with Sakis3G and why it can't use databases that doesn't use the old format. It's down to the fact that Sakis3G uses the usb_modeswitch binary instead of the dispatcher script. When the configuration file is used in this way, the binary will complain about the lack of a DefaultVendor and DefaultProduct ID numbers.

So basically, it's Josh's fault :P

However, when you supply the defaults via the -v and -p flags, it does switch the device... But it then becomes unable to locate the interface to connect it. I'm guessing this is why Sakis3G needs the CheckSuccess variable set too.

Atleast I'm getting closer to making Sakis3G fully compatible with the current database. I'll keep you all posted.

chatgpt3
Posts: 1
Joined: 16 Dec 2023, 08:59
Contact:

Re: Sakis3g Rebuilt

Post by chatgpt3 » 16 Dec 2023, 09:10

Within the chatgpt 4 login interface, users often find customization options that enhance their experience. This may include preferences for language style, response length, and even personalized prompts.

Source: https://chatgpt4login.org/

Post Reply