Search found 19 matches

by atestani
Thu Sep 14, 2017 2:34 pm
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda Leonardo [SOLVED]

For anyone wanting to do this, all of my test code is in the attached file, both Arduino and C# code. There are two things to note: - The connecting program (C# test app, in this case) must set DTR on (and maybe RTS... I set it on and never went back to see if it is required). - The Leonardo will no...
by atestani
Fri Sep 08, 2017 12:25 pm
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda Leonardo [SOLVED]

The reason for not using Firmata is it is a lot of code and overhead for a simple operation, plus there isn't a specific set of methods for sending strings back and forth. Also, it seems to be very slow, overall, at least in my tests.
by atestani
Thu Sep 07, 2017 9:26 pm
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda Leonardo [SOLVED}

Got it!! The key is Leonardo doesn't execute SerialEvent() (for some reason!). It is supposed to execute between loop() passes as all other Arduinos do (almost all, there are two others like Leonardo... Micro and ETH, I think). In looking back at links to SerialEvent, I can now see that this is "doc...
by atestani
Thu Sep 07, 2017 12:13 pm
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda CPU and Onboard Arduino

So, I am running the same code on an external Leonardo and am having the same issue. The root of the issue is that Leonardo and a couple of other Arduino models don't use a separate processor or FTDI chips to implement the primary serial port. It is a virtual serial port (USB-CDC) that is switched b...
by atestani
Mon Sep 04, 2017 1:59 am
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda CPU and Onboard Arduino

OK... I tried the latest Arduino version (1.84) including the USB driver with the same results: cannot send data from LattePanda CPU to on board Leonardo. Sending from Leonardo to LattePanda works fine. Has anyone been able to make this work?! Here is the Arduino test code: //******* MACROS ******* ...
by atestani
Sun Sep 03, 2017 1:31 pm
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda CPU and Onboard Arduino

Thanks, Lutz. That's very useful information. I believe I made provision for the serial port differences in the code I posted at the start of this thread. As I have said, I can send data from the Leonardo to the LattePanda CPU so the serial port is enumerated. My problem is sending data to the Leona...
by atestani
Sat Sep 02, 2017 3:31 am
Forum: Troubleshooting
Topic: Serial Comm between LattePanda CPU and Arduino not Working
Replies: 1
Views: 1393

Serial Comm between LattePanda CPU and Arduino not Working

I am concluding there is something wrong with the LattePanda Hardware or firmware that is not allowing a simple serial message sent from the LattePanda's CPU to the Arduino. Comm from the Arduino to the LattePanda CPU works fine. the other way around works fine. Please see this thread for all the wo...
by atestani
Sat Sep 02, 2017 3:23 am
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda CPU and Onboard Arduino

Thanks... This looks like it will work as it is another layer on top above Firmata. However, I am looking for an answer why simple and straight forward C# and Arduino code as I originally posted doesn't work to send serial strings. Strings sent from the Arduino to the LattePanda CPU work fine as doe...
by atestani
Tue Aug 29, 2017 3:42 am
Forum: Content Requests
Topic: Serial Communication Example
Replies: 1
Views: 8128

Serial Communication Example

I am looking for an example of sending data from the LattePanda CPU to the onboard Arduino. I have many hours into trying to make this work and have thus far failed. Please see this thread: http://www.lattepanda.com/forum/viewtopic.php?f=6&t=1429 In the thread you will see that even trying to send d...
by atestani
Tue Aug 29, 2017 3:31 am
Forum: Technical Discussion
Topic: Serial Communication - LattePanda Leonardo [SOLVED]
Replies: 28
Views: 17021

Re: Serial Communication - LattePanda CPU and Onboard Arduin

I ran the StandardFirmata sketch on the onboard Arduino and the C# LattePandaFirmataDemo and it worked, i.e. I could click the buttons to turn on/off the Arduino LED. This is an example of successfully sending serial data from the LattePanda CPU and the onboard Arduino. Unfortunately, the Firmata Ar...