nurbs
New Member
Posts: 25
|
Post by nurbs on Jan 22, 2023 1:03:41 GMT
Hi Forum. Towards the goal of creating something graphical I want to interface with scanner using a terminal program to ensure correct communication settings ( easier before programming such settings in language du jour). I am able to see a bootup sequence using one of the two buttons, the other results in nothing. No matter what my settings are and what I transmit I don't see response. What should be settings with terminal program ( Putty, minicom, etc. ) such that I should be able to tx a status message from terminal and see the results ?
Sven
|
|
|
Post by dino2gnt on Jan 22, 2023 16:08:48 GMT
|
|
|
Post by admin on Jan 22, 2023 17:08:19 GMT
Thanks Dino, it's a bit outdated since I added PCI-bus transceiver. Datacode byte has an unreported change: Consult the void send_usb_packet(uint8_t bus, uint8_t command, uint8_t subdatacode, uint8_t *payload, uint16_t payload_length)
function in the source code for up to date techniques. The scanner expects UART baudrate of 250000 (8-N-1). Minicom does not allow this baudrate, though. The boot sequence you saw is ESP32's boot log transmitted at 115000 baud. I tried this with Minicom and shows properly. Next, scanner changes baudrate to 250000 and loses respect from Linux. The other button is connected to the ESP32's boot pin. If you press both and release Reset button first (and then Boot button), then ESP32 starts is bootloader mode (to be re-programmed). It's a good workaround if ESP32 autoreset (via DTR and RTS pins) doesn't work. Here is a simple ping test if you get the settings right: [<-TX] Handshake request: 3D 00 02 01 00 40
[RX->] Handshake response: 3D 00 11 81 00 43 48 52 59 53 4C 45 52 53 43 41 4E 4E 45 52 45
[INFO] Handshake OK: CHRYSLERSCANNER
I don't know how byte arrays could be sent from Terminal.
|
|
nurbs
New Member
Posts: 25
|
Post by nurbs on Jan 23, 2023 7:12:37 GMT
Have you tried example like this webpage which say that custom baud rates are possible ?
|
|
|
Post by admin on Jan 23, 2023 9:11:46 GMT
Nope, but I'm going to add a baudrate selector feature to GUI and scanner firmware, later today. Hold on.
Edit: updates are out.
|
|
nurbs
New Member
Posts: 25
|
Post by nurbs on Jan 23, 2023 22:27:50 GMT
Still unable to connect with Wine, did this change allow it to work for you with Ubuntu VM ? I tried to create a C program today just for the "ping" message from your reply above. I'm curious about the RX & TX leds on scanner because one of my programs results in RX and TX illuminating and I wonder if that would happen if scanner wasn't receiving a valid message ?
|
|
|
Post by dino2gnt on Jan 23, 2023 22:49:22 GMT
Still unable to connect with Wine In my experience, any software that needs to connect to an external peripheral is going to struggle under Wine, even something as simple as a serial UART.
Probably have more luck with a native Mono build than a Windows binary in Wine. (i say this as a lover of Wine who spent the entire weekend fighting to run both Mitsubishi ASA and Warcraft 2 and failing in both cases)
|
|
nurbs
New Member
Posts: 25
|
Post by nurbs on Jan 23, 2023 23:15:26 GMT
Still unable to connect with Wine In my experience, any software that needs to connect to an external peripheral is going to struggle under Wine, even something as simple as a serial UART.
Probably have more luck with a native Mono build than a Windows binary in Wine. (i say this as a lover of Wine who spent the entire weekend fighting to run both Mitsubishi ASA and Warcraft 2 and failing in both cases)
Makes sense, thanks for suggestion. I didn't make the connection but that explains why ChryslerScanner.exe runs without prepending wine. With wine device drop-down list box shows COM ports and without wine same box shows /dev/ttyxxx ports.
|
|
|
Post by admin on Jan 24, 2023 8:52:24 GMT
Both LEDs flashing is a good sign. It means the scanner received a valid packet and responded either ok or error.
I did not try the GUI under Ubuntu VM.
|
|
|
Post by miikas on Jan 24, 2023 17:03:55 GMT
In my experience, any software that needs to connect to an external peripheral is going to struggle under Wine, even something as simple as a serial UART.
Probably have more luck with a native Mono build than a Windows binary in Wine. (i say this as a lover of Wine who spent the entire weekend fighting to run both Mitsubishi ASA and Warcraft 2 and failing in both cases)
Makes sense, thanks for suggestion. I didn't make the connection but that explains why ChryslerScanner.exe runs without prepending wine. With wine device drop-down list box shows COM ports and without wine same box shows /dev/ttyxxx ports. AFAIK, wine usually does not work with devices that needs external drivers because you cannot install device drivers in wine. If drivers are builtin in wine system, they should work.
|
|