Steel Soldiers now has a few new forums, read more about it at: New Munitions Forums!
Microsoft MSN, Live, Hotmail, Outlook email users may not be receiving emails. We are working to resolve this issue. Please add support@steelsoldiers.com to your trusted contacts.
Nope, the internet was just in its infancy when I graduated. Back then it was only used for connecting a few scientific facility together.
Voice recognition was just in its beginnings too. It took an 18" rack full of stuff to understand a dozen words. We had to train it by speaking the same...
I agree the code can be more concise. It was the first pass at decoding the data to get it to work. I was simply evolving the code to get it to work. I was going for "function over form" initially. Now that it's working it could certainly be made more concise.
Back when I started doing some...
Your "Z" issue may be due to a noise or signal level issue on the 485 data. I ran into an issue with the 485 levels being too low causing issues. Once the levels were corrected data became consistant.
Is your Pyserial interface using a hadware UART or is it a bit basher serial port emulator?
For example you read back \x93\x02\x00\x00\x91'
The 93 is just a transmission header. Ignore it.
The 02 indicates that the next 2 bytes are the data.
00 & 00 are the data.
The 91 is the checksum.
Here is the code I use to decode the data coming back from the DCS. The DCS response bytes are...
Interesting. I'll have to try 115200 without handshaking the next time I fiddle with that project.
Which math? Decoding the values coming back from the DCS??
What I found was the handshake to establish communications thru the remote port seems to use/need minimum delays between sending each of the handshake messages to the DCS. The delays are what I measured using a PC with the Remote Monitor software doing the handshaking and an ESP32 sniffing the...
What I have as of today.
Will try and mess with the engine code DIP switch tomorrow to try and detect it's codes
PC
Code
Parameter
6
4
??
7F
C
Battery Current
D1
B
BatteryVoltage
88
17
??
B1
28
??
5B
0
Battleshort
A9
D
CoolantTemp
46
48
FaultCode
45
48
WarningNumber
44
48...
I got that error while poking at my DCS.
I seem to remember that possibly my RS-232 levels weren't sufficient to drive/power the B&B RS-232 to RS-485 adapter.
The remote port pins are NOT labeled with numbers. They are labeled with the letters A thru N.
It's a RS-485 port.
The cable I'm using. 6150-01-608-2635 PN 04-21227 with the blue RS-485 to RS-232 adapter on it
Wiring diagram for the cable above. For Remote Monitoring the RS-485 is on "P2...
I tweeked my RS-232 sniffer code and there are no longer checksum errors.
I also now see what appears as the first requests for real data may be additional handshaking since it's way more than 44 requests.
More digging...
Ah, glad you spotted something odd in the code that may explain what I'm seeing. Easy enough to deal with. Request data, ignore the response and request again to get good data.
I can work on a timeline of the back and forth between the PC an DCS for each PC request from initial baud rate...
I've been looking at the various time delays between data transmissions from the PC. So far I've seen everything from 7ms to 2 seconds or so during the initial handshaking requests and parameter requests.
edit: deleted stuff on bad checksums. Updating in upcoming post
The journey continues..
Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website like our supporting vendors. Their ads help keep Steel Soldiers going. Please consider disabling your ad blockers for the site. Thanks!