Welcome, Guest. Please login or register.
November 25, 2024, 10:16:22 PM

Login with username, password and session length
* Home Help Arcade Login Register
.
+  Forum
|-+  Homebrew Player Tracking and EFT Systems.
| |-+  NLG Homebrew Player Tracking and EFT Systems.
| | |-+  Debug SAS DLL for testing
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 2 [3] 4 5 Go Down Print
Author Topic: Debug SAS DLL for testing  (Read 66889 times)
Tilt
Contributing Gold NLG Member
Sr.NLG Member 501 to 1000 Post
*

Total Karma Storms: 366
Offline Offline

Gender: Male
Posts: 724



« Reply #50 on: March 10, 2011, 02:00:55 PM »

I have the new .dll installed and running on both of my laptops.  One with a USB -> serial cable, the other with a real serial port.  I'm still seeing the same type of timing problems on both of them with this version too.  Get some  zzzzzzz AndyP, and thanks for your continued efforts with this!
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #51 on: March 10, 2011, 02:15:19 PM »

..as I still have a not-burned-out working S+ interface board one here...lol

Hopefully the mailman will rectify that today.  Mail
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #52 on: March 10, 2011, 06:38:14 PM »

As I posted in the USB serial port adapter thread, this Edgeport 4 port unit works with the IGT SIM but not with this app. Here is a sample of the dmnon log.

* dbmon.txt (12.77 KB - downloaded 340 times.)
Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #53 on: March 10, 2011, 07:55:48 PM »

As I posted in the USB serial port adapter thread, this Edgeport 4 port unit works with the IGT SIM but not with this app. Here is a sample of the dmnon log.

Thats interesting. Its writing out data, but getting a large delay befre any responses are received.. Seems the uart in the card is not sending an interrupt fast enough. Of course it wont affect the SAS app because it processes the data asyncrounously. I might have a try at using a USB to Serial adaptor and see if I can replicate it here.

Logged
jay
Global NLG Site Moderator
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 483
Offline Offline

Gender: Male
Posts: 3178


if you cant afford to lose you cant afford to win


« Reply #54 on: March 10, 2011, 08:04:25 PM »

I am wondering at this point if the varied results are related to the varying specs of our PCs
I still believe that there is a timing issue with the code, possibly buffering - real time device management is a royal pain so no disprect to Andy.
I am just suggesting this as perhaps being a diagnostic aid in knowing what needs to be tweaked.

I am wondering if we could report in on your processor speed / Ram and how well the app is working.
Perhaps older PCs are working better than newer ..... and and more / longer polling is required for the newer systems
Or if its perhaps the otherway around and newer PCs are working better.

Jay
Logged

The only way to beat the casino is to own it
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #55 on: March 10, 2011, 08:22:08 PM »

OK, for you smart guys out there. Here is the problem:

If I only want to poll a single machine, thats easy, because I know every repsonse I get is from that one machine. If I poll 2 machines, how do I know which machine the reponse is from?

What I do now, is poll the first machine, wait for a response, poll the second machine and wait for a response. Now the problem I am beginning to see is that sometimes the UART does not tell me its received any data for a while, so I give up waiting and go on and poll the next machine. Then all of a sudden I get all the responses in a block.. What is supposed to happen is that you set a timeout in the UART, so that if it has not received any data in a certain amount of time, it sets the interrupt so that the receive buffer can be read. It looks like the USB adaptors ignore this setting.



SAS has no way of detecting the start of a response packet, and no way of detecting the end of a response packet, so I cant sort through a buffer of data and look for messages. Furthermore, exception responses do not have the poll address in them, so I cant map them back to a particular machine in software.
Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #56 on: March 10, 2011, 08:25:14 PM »

I am wondering at this point if the varied results are related to the varying specs of our PCs
I still believe that there is a timing issue with the code, possibly buffering - real time device management is a royal pain so no disprect to Andy.
I am just suggesting this as perhaps being a diagnostic aid in knowing what needs to be tweaked.

I am wondering if we could report in on your processor speed / Ram and how well the app is working.
Perhaps older PCs are working better than newer ..... and and more / longer polling is required for the newer systems
Or if its perhaps the otherway around and newer PCs are working better.

Jay

You are correct, doing real time stuff in windows is hard. The faster the PC the better in this situation.
Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #57 on: March 10, 2011, 08:36:43 PM »

Well I just plugged in a belkin USB to serial adaptor and failed out of the box. The problems here are slighty different to others I have seen so far, but along the same lines.


* faulty_sastest.JPG (27.52 KB, 533x608 - viewed 470 times.)
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #58 on: March 10, 2011, 08:42:57 PM »

As I posted in the USB serial port adapter thread, this Edgeport 4 port unit works with the IGT SIM but not with this app. Here is a sample of the dmnon log.

Thats interesting. Its writing out data, but getting a large delay befre any responses are received.. Seems the uart in the card is not sending an interrupt fast enough.

The Edgeport has a configuration utility with these options. Anything you think I should try? Also attached is the pdf explaining those settings about half way through.


* edgeport.jpg (122.21 KB, 763x515 - viewed 480 times.)
* edgeport.pdf (602.1 KB - downloaded 481 times.)
« Last Edit: March 10, 2011, 08:48:43 PM by poppo » Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #59 on: March 10, 2011, 08:45:29 PM »

Mabe check the low latency, and fast reads/writes and see what happens.
Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #60 on: March 10, 2011, 08:49:45 PM »

What is even more interesting now, is that my USB to Serial adaptor is sending data to the machine, and the machine has stopped chirping, but its not responding. Exactly like the gameking comms analyser showed. Scratch Head Scratch Head

Time to look at it on an oscilloscope I think. Maybe the parity bit is not getting set..
Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #61 on: March 10, 2011, 08:52:10 PM »

Just tried the belkin adaptor with IGT's sas test and it does not work either.
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #62 on: March 10, 2011, 08:56:45 PM »

Mabe check the low latency, and fast reads/writes and see what happens.

Ok, I checked those and now I am getting responces (door open, door closed). Here is a new dbmon log with those settings. Maybe it will help.

* dbmon.txt (9.9 KB - downloaded 406 times.)
Logged
jay
Global NLG Site Moderator
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 483
Offline Offline

Gender: Male
Posts: 3178


if you cant afford to lose you cant afford to win


« Reply #63 on: March 10, 2011, 09:08:02 PM »

Just throwing this out there..... are the SAS responses a fixed size ? ie consistant byte count.
Alternatively can you ask the machine to report its SAS number followed by another poll ?

Logged

The only way to beat the casino is to own it
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #64 on: March 10, 2011, 09:11:52 PM »

Just throwing this out there..... are the SAS responses a fixed size ? ie consistant byte count.
Alternatively can you ask the machine to report its SAS number followed by another poll ?



No, the responses are all different sizes. The problems stems from the fact the general response is a single byte response, so there is no way of determining which machine it has come from.
Logged
jdkmunch
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 624
Offline Offline

Gender: Male
Posts: 2640



« Reply #65 on: March 10, 2011, 11:26:04 PM »

IBM X41 -  worked with the old dll and new one

no problems or differences  seen between versions


so far two machines hooked up to a 4 port usb hub -   One I-Game 3904 and one Bluebird

I have to wire up two more machines   an 044 and reel touch.

Logged
jdkmunch
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 624
Offline Offline

Gender: Male
Posts: 2640



« Reply #66 on: March 10, 2011, 11:26:40 PM »

oh an Acer C110

didn't work at all - both - old and new
« Last Edit: March 10, 2011, 11:42:30 PM by jdkmunch » Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #67 on: March 11, 2011, 02:02:49 AM »

IBM X41 -  worked with the old dll and new one
no problems or differences  seen between versions
so far two machines hooked up to a 4 port usb hub -   
One I-Game 3904 and one Bluebird
I have to wire up two more machines   an 044 and reel touch.

Munch...the "hub"...what make and brand?
It's working on 2 machines to one PC at the moment?
Details please my friend!!!  yes propeller yummy
Logged
Foster
The S2000 GURU
Contributing NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 345
Offline Offline

Gender: Male
Posts: 2872



« Reply #68 on: March 11, 2011, 02:19:18 AM »

He is using a USB hub to allow him to connect more USB to Serial RS232 adapters cables.
Logged

A Slot Machine and Coca-Cola Addict!!
"If it is not broke do not fix it" I keep forgetting that!
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #69 on: March 11, 2011, 02:22:16 AM »

Like this?  Scratch Head >>>


* thinkgeek-medusa-usb-hub.jpg (13.67 KB, 400x401 - viewed 464 times.)
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #70 on: March 11, 2011, 03:37:56 AM »

This is the 4 port USB unit I mentioned in the other thread. Only $29 shipped and it's all in one.

Bought some of these 25ft cables too.
http://cgi.ebay.com/25FT-RS232-Serial-Cable-DB9M-DB9F-M-F-male-female-/130468687074


* edgeport usb.jpg (38.67 KB, 399x256 - viewed 466 times.)
« Last Edit: March 11, 2011, 03:57:42 AM by poppo » Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #71 on: March 11, 2011, 03:46:00 AM »

I bought one for just about $30.
The others were like over $200.00....nuts
Logged
jdkmunch
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 624
Offline Offline

Gender: Male
Posts: 2640



« Reply #72 on: March 11, 2011, 11:03:09 AM »

I tried a $5 non powered USB hub and it didn't work with the serial adapters -  no communication at all.

I had this old Belkin F5u021 which is powered -  and it works!   

Three machines hooked up and working!!!!


* photo 1.JPG (419.7 KB, 1296x968 - viewed 450 times.)

* photo 2.JPG (304.61 KB, 1296x968 - viewed 1100 times.)
Logged
jdkmunch
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 624
Offline Offline

Gender: Male
Posts: 2640



« Reply #73 on: March 11, 2011, 11:04:05 AM »

Like this?  Scratch Head >>>

You come up with the best pictures
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #74 on: March 11, 2011, 12:50:10 PM »

Like this?  Scratch Head >>>

You come up with the best pictures


That photo was actually a snapshot of my brain reading this stuff...  rotflmao
Now I know why Einstein's hair was so screwed up!  Tongue Out



* Bad Hair Day.png (89.68 KB, 459x279 - viewed 444 times.)
Logged
Pages: 1 2 [3] 4 5 Go Up Print 
« previous next »
Jump to:  


If you find this site helpful, Please Consider Making a small donation to help defray the cost of hosting and bandwidth.



Newlifegames.com    Newlifegames.net    Newlifegames.org
   New Life Games    NewLifeGames  NLG  We Bring new Life to old Games    1-888-NLG-SLOTS
Are all Copyright and Trademarks of New Life Games LLC 1992 - 2021


FAIR USE NOTICE:

This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner.
We make such material available in an effort to advance awareness and understanding of the issues involved.
We believe this constitutes a fair use of any such copyrighted material as provided for in section 107 of the US Copyright Law.
In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those
who have expressed a prior interest in receiving the included information for research and educational purposes.

For more information please visit: http://www.law.cornell.edu/uscode/17/107.shtml.

If you wish to use copyrighted material from this site for purposes of your own that go beyond fair use,
you must obtain permission directly from the copyright owner.

NewLifeGames.net Web-Site is optimized for use with Fire-Fox and a minimum screen resolution of 1280x768 pixels.


Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Loon Designed by Mystica
Updated by Runic Warrior
Page created in 0.106 seconds with 20 queries.