Troubleshooting TS connectivity

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Troubleshooting TS connectivity

Post by E4ODnut »

What is the step by step procedure to connect to Hyper Terminal?
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

E4ODnut wrote:What is the step by step procedure to connect to Hyper Terminal?
why would you want to use HT and not the java console?
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Good Morning Andre,
No particular reason. I would just like to get more familiar with how things work so I'd like to connect using Hyper Terminal, Tera Term and puTTY as well as the dev consol. My USB TTL device just arrived from China so I'd like to try connect to Tuner Studio as well.

The analog board hasn't arrived yet.

EDIT

Oops, just got a call, have to go to work. To be continued
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

the micro usb port is relatively easy - all you have to specify is which port you are using (COM4 or COM8 or smth)
For usb ttl you have to specify speed which is 115200 the rest is default
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

puff
contributor
contributor
Posts: 2763
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Connectivity overview & build-in commands

Post by puff »

mind installing windows drivers (if needed) from st's site...

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

That was too easy, even for me, so I assume I must have the Windows drivers installed and working.

Hyper Terminal, TeraTerm and puTTY have no problem connecting. Discovery is running and the terminal windows are very busy reporting stuff, as is the Message Central window on the rusEFI Consol. How do I stop Discovery and just send it commands to get familiar with that end of things?
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Excellent! Thanks.
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
kb1gtt
contributor
contributor
Posts: 3527
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

Re: Connectivity overview & build-in commands

Post by kb1gtt »

When it comes to sniffing serial traffic with putty, I have had good success with com0com. I was trying to get a serial stream from a device in the field piped over TCP/IP, then I was connecting this single serial TCP/IP stream to several pieces of software on my PC via virtual COM ports. This com0com program allowed me to do that. I had a physical device theoretically in the field that had a TCP/IP serial stream. I then connected to that stream with my PC. I had one com0com session that grabbed the TCP/IP data and stuck it on a virtual COM port. I then had a second com0com session that would take that virtual comport and it would relay the data to two other virtual comports. One com port was then connected to with putty such that I could watch the stream, the other com port was connected to a piece of software on the PC. It worked great as I was tracing down a bug. In my situation, it turned out that this device in the field a SixNet gate way, was improperly handling MODBUS RTU packets. It was manipulating the signals and changing the packets before sending the TCP/IP stream. The tech support at SixNet confirmed the problem but refused to fix the issue. So that entire effort was all for naught, however I got to learn some cool stuff about com0com. I mention this as it can be a handy tool if you have a serial stream going to the java console, you can also get a log of that stream via putty, which might be handy.
Welcome to the friendlier side of internet crazy :)

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

I'd like to try to connect to Tuner Studio and see what happens. I have a USB/TTL device which looks the same as the photo that Andre posted. What do I connect to what and what is the procedure?
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

1) before connecting the TTL to the brain board, connect it to your desktop and install the drivers if it would ask for any
2) once the TTL is properly configured in windows, connect GND wire to GND on the brain board
connect RX wire of the TTL to pin PC10
connect TX wire of the TTL to pin PC11
3) connect to that new serial port @ 115200 using your favorite terminal
4) hit button 't' on the keyboard

It should tell you something. Once you tell us what it has told you we will tell you what the next step is :)
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
kb1gtt
contributor
contributor
Posts: 3527
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

Re: Connectivity overview & build-in commands

Post by kb1gtt »

buzz click buzz click (or what ever robots make for noise)

I see content, must assimilate http://rusefi.com/wiki/index.php?title= ... _TTL_cable assimilation complete.

buzz click buzz click (or what ever robots make for noise)
Welcome to the friendlier side of internet crazy :)

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Windows couldn't find a driver but directed me to Silicon Labs where I downloaded a driver package and installed it. Now when I go to device manager, under "Ports (Com+LPT)" and the USB/TTL plugged in it shows "Silicon Labs CP210x USB to UART Bridge (Com5). So far so good (I think).

I have the gnd pin on the device plugged in to a ground pin on Discovery. I have the RX pin connected to PC10 and the TX pin connected to PC11.

When I try to connect with Hyper Terminal I get no response. Should Discovery be powered up with it's USB cable?
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
kb1gtt
contributor
contributor
Posts: 3527
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

Re: Connectivity overview & build-in commands

Post by kb1gtt »

The USB TTL cable can not power the Discovery. The Discovery will need to be powered, probably from a secondary USB cable in your case.
Welcome to the friendlier side of internet crazy :)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

E4ODnut wrote:Should Discovery be powered up with it's USB cable?
Yes, discovery has to be powered one way or another. The mini-USB (the one on top) is the simplest way to power discovery.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Discovery is plugged in via the mini-USB and is running. If I connect on com5 with the dev consol and in message central I type "t" > enter it returns a stream of "Command Queue: Sending [sec!1!t]"

If I connect with Hyper terminal it shows a data stream and will not respond when I type "t" > enter
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

You definitely should not be connecting to TTL with the dev console - dev console is for our own protocol, and the TTL is currently assigned to Tuner Studio protocol.

Can you please provide a screenshot of the data stream in Hyper terminal together with your hyper terminal settings?
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

puff
contributor
contributor
Posts: 2763
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Connectivity overview & build-in commands

Post by puff »

just a reminder: you should have the latest firmware installed.

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

puff wrote:just a reminder: you should have the latest firmware installed.
Good point because pin assignment has changed recently
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Here's my first attempt at screen shots.
http://i.imgur.com/j0ZE3gC.png
http://i.imgur.com/8PQ9ynQ.png
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

Can you please connect your microUSB cable, start the dev console and take a screenshot too?

So you would have three USB cables. If that's a problem you can disconnect the TTL for now. The point is to see what versions are you using?
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

What particular screen would you like me to try and capture for you?
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

I am interested in
Image
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

@ is a genius - the problem is with
Image

You need to upgrade to current version.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

OK, I'll see if I can remember how to do that.
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Latest screen shot. Is that what you want to see?
http://i.imgur.com/uz8i4Cz.png
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

Yes I am expecting this to make things better. Please disconnect the dev console, disconnect the microUSB and hit 't' in the TTL HyperDesktop session :)
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

E4ODnut
Posts: 207
Joined: Mon Feb 10, 2014 11:52 pm
Location: Gibsons, BC, Canada
Contact:

Re: Connectivity overview & build-in commands

Post by E4ODnut »

Discovery up and running.
USB/TTL connected.
Hyper Terminal connected.
Com5
115200 Baud
8 data bits
Parity none
1 stop bit
flow control none
"t" returns "alive" ("enter" key not pressed)

Progress?
Robert
1995 Ford E-150, 300 CID I6 E4OD, Custom MS1-Extra
1992 Winnebago Elante 33 RQ, Ford 460 CID V8, E4OD, Custom MS1-Extra
1992 Bayliner 3288, Twin Ford 351CID Windsor V8s, Custom MS1-Extra
1995 Dodge Ram 2500 4x4 488 CID V10 5 spd. MS3 (in progress)

User avatar
AndreyB
Site Admin
Posts: 9874
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Connectivity overview & build-in commands

Post by AndreyB »

Progress!

We have confirmed that USB TTL is properly connected. You should now close HyperTerminal and create a new TunerStudio project using our rusefi.ini file and connect it using the TTL COM port
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Post Reply