Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Yesterday, 11:14 PM
    Yeah - they have been around a long time but right now I am not using the libs. BTW: Finally am able to send and receive mavlink messages from qGrounControl. Just have an issue with the incoming packet contents. ...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    Yesterday, 03:47 PM
    Yeah now that you mention it you did - sorry - I forgot. Any got it kind of working by asyncUDP for one and wifiUDP for the other port. I got qgroundcontrol at least reading heartbeat messages (gps and basic mavlink...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    Yesterday, 11:39 AM
    Ok. Here is another interesting case. If I create two Udp connections: //Teensquitto setup for UDP send and receive teensquitto Udp = teensquitto("WiFiUdp", &Serial1); teensquitto UdpS = teensquitto("WiFiUdp",...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    Yesterday, 10:19 AM
    Morning. Not really trying to do loop on the ESP. I will try to explain, may get long winded so forgive me. Oh by the way - don't think its a core problem on the overload: In teensquitto.h you have for read:...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    Yesterday, 02:20 AM
    Ok - new problem - can't get WiFiUdp working. I used the code from https://github.com/esp8266/Arduino/blob/master/doc/esp8266wifi/udp-examples.rst and loaded directly on the feather board and it worked no issues. So I...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    Yesterday, 12:01 AM
    Ok - I give up. I been at this one all day with no luck on solution which I am sure you know. I am using AsyncUDP to listen for new packets and that seems to be working. But I need to send messages through the...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-22-2018, 02:22 PM
    A couple things, all minor :) For asyncUDP incoming data is grabbed with packetData(). But how do I get that into a char array for processing. If I try and use: strncpy( incomingPacket, packet.data(),...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-21-2018, 10:40 PM
    I was going back and forth between the two and as long as it was plugged in it didn't work. Once I made it stand alone and run off the Teensy 3.3v pin it worked fine. Think, RX0/TX0 is the same as usb serial so it may...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-21-2018, 09:12 PM
    Ok... all seems to be working now - stupid mistake that I would not have realized and did just a last test. I had both the teensy and esp connected to the PC through a usb cable and nothing worked. Once unplugged the...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-21-2018, 07:07 PM
    You definitely have a sense of humor. ;) Anyway the issues I am having with UDP and now MQTT is with my computer. I tried running MQTT direcly (pub and sub) and keep getting socket error. Have to figure out what the...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-21-2018, 04:28 PM
    Yeah - guess you didn't see what I added to my post :)
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-21-2018, 04:17 PM
    Whats the link to marvins library - can't find it? By the way just tried compiling and getting this error again: On - never mind - just saw you updated the sketch when I went to GitHub. Not thinking today -...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-21-2018, 04:05 PM
    You are a gem......
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-21-2018, 06:51 AM
    Downloaded the latest 8266 core from GitHub and received numerous errors around the same two lines that repeated in the cases. I did a conversion but not sure its working: 1. Serial1.write(datar, sizeof(datar)); ...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-20-2018, 05:50 PM
    Just a heads up - tried compiling with the latest version of the 8266 core and it breaks things. Getting invalid conversions now and a bunch of other errors with teensquitto on the ESP. Also tried to run the...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-20-2018, 04:50 PM
    "not asyncudp " ok confused now - think I was following your example - will have to go look up asyncudp :) and how to do that. But don't go too nuts. I just loaded the UDP example from the repository directly on the...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-20-2018, 02:40 PM
    Morning again. Anyway got the 2 versions of wifi scan example (regular and async) but still can't seem to get udp to stream or read from packet sender. Something blocking I think but I can't think of what..... ...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-20-2018, 04:06 AM
    Thanks wise guy - I actually had a couple of demos working (at least the wifiscan examples still work) - mqtt and udp was working nice and even had the demo attached to a 9250 and the Teensy visualizer. Now I have to...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-20-2018, 03:28 AM
    That would be a good idea. This way other people can give it a try since we are talking about it. Also, will SPI_MSTransfer still work with this - I saw you had a spi_MST_controller identified. EDIT: What driving...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-20-2018, 03:19 AM
    Tony... I am sure it is something I am doing that not quite right and trying to figure out why its not working now . it should just like you showed - had it working before no problem now --- arggh....... have to check...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-20-2018, 01:47 AM
    Tried serial1, 2 and 3 on the T3.5 and just does want to work, so I went back to my original config(Link node d1 and T3.2). I am now at the point of at least I pretty sure I am connected: Now listening at IP...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 11:38 PM
    I moved it off 1 because I wanted to put the GPS on it - will move it to 2 and give it another try.
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 09:17 PM
    Yeah - the only difference is that I am using Serial3 - teensquitto Udp = teensquitto("WiFiUdp", &Serial3); --- unless you have Serial1 hardcoded in the ESP Code? which I doubt because Serial3 worked with...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 09:04 PM
    "marvin’s library has been updated quite a bit," - ok will update it but right now I am trying to use UDP. EDIT: I am getting Now listening at IP 192.168.1.159, UDP port 3333 but I don't see 159 in my router as...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 08:46 PM
    Yeah going to go back and double check your sample - but I had run these sketches before and they worked so its driving me nuts. I also hooked up TX0 to RX2 on the teensy so I am getting to see addition info - right...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 08:39 PM
    "(3Megabaud?)" = it really has been awhile - its set at 2megabaud :) wifi cred - first thing I checked Got events all over the place - yep in loop and serialevent1 Wifiscan does work :)
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 07:58 PM
    Running the same sketch that had running before on the other 8266 I had. When I go to my router I don't see it. :( Yep I am using packetsender and using the constructor. Yep I am using the GitHub version... :) ...
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 06:38 PM
    I seem to remember RX0 was for debugging????? By the way having problem getting UDP working with HUZZAH - 99% sure its me and some firewall blocking it. Argh - nothing is ever easy is it////
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 06:17 PM
    So TX1 (ESP) to RX1 on Teensy and either RX to the TX1 on the teensy?
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 05:34 PM
    Yep is now.... :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 05:10 PM
    You deserve a break from this before you go back to work. I'll go play with your other library for awhile and see what I can break over there. :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:56 PM
    I know I have a loose usb cable so that is probably why the resets. :( Anyway, smallest and fastest work here now as well ----- so I think we killed the LC issues :) at least for now :) ok will do. Pretty sure...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:51 PM
    Testing fastest and absolutely no issues - working great now. You see you forgot to tell me to compile at Fastest so I compiled at smallest and we found an issue :) Yes I know - my fault again :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:43 PM
    Yeah probably - but something still weird going on - the lc is now periodically resetting itself - am currently at smallest. Will retry at fastest with the new lib.
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:34 PM
    Heres a good news update - just recompiled the slave at Fastest and its working fine... Going to do smallest again just as a double check - stay tuned. Update: Ok, strange, reloaded at smallest and seems to be...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:32 PM
    Here is my master: #include <SPI.h> #include <SPI_MSTransfer.h> #include "A_ConfigDefines.h" //comment out for T3.x slave devices #define TLC 1 #define moo_lc 10 #define moo_lc_l 5
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:31 PM
    Ok. Something strange going on - remember start and stops we had on SPI0 - this is about 100 times worse and the master only sporadically gets the transfers from the slave. The LED blinks away happily.... regardless...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:21 PM
    Using smallest?
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 03:13 PM
    Just tried 1.8.5 with beta2 and same thing so its not a IDE issue. Do you think theres a variation in chip to chip? Will have to eventually solder up another LC just to test it.
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:37 PM
    Morning Tony. Still can't get SPI1 working to your specs. EDIT: Have no idea why - reloaded everything and copied the files again :( Its like SPI0 and SPI1 are crossed.
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 01:49 PM
    Ok. Picked up a huzzah feather 8266 and getting ready to start this up again and would you believe it - I forgot the connections that have to be made between the teensy and 8266? Help :) Mind too much on SPI lately
    116 replies | 6467 view(s)
  • mjs513's Avatar
    05-19-2018, 11:56 AM
    Reloaded master and slave libraries, reflashed the sketches. Made my settings match yours and no go - would hang and then eventually get a few bad crc's and bad vals. If I change lc_mode to 10,10 it would work but the...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 04:24 AM
    Ok last post for the night. Switched to SPI1 and best I could do was SPI = 11Mhz GPIO2 = 8Mhz LED Tog = 100ms USBprint = 100ms F&F = 2ms LCmode = 10,10 (0,10 did not work) Slave Transfers = 1sec
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 03:22 AM
    Yep - looking real good :) Yeah but SPI0 would still be broken and if I didn't find it someone else would have :P :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 03:04 AM
    Right now testing SPI0, you know me, how long did it take me to get a T3.6 up and running :) Not to fret - I am planning to switch to SPI1 tomorrow - my eyes are getting crossed right now. Then I will see what I can...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:57 AM
    Ok.. guess we can't do what we have been doing ;) Edit: Nope - SPI0 unless you specified SPI for SPI1 in the library :) slave.begin(SPI);
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:55 AM
    Hate to disappoint you but I am currently squeezing 11Mhz out of a 6Mhz bus with GPIO2 at 4Mhz and LCmode(10,10). LCmode(0,10) - doesn't work at 11/4Mhz LCmode(10,10) - no good at 11/11 or 11/8 but does work at...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:38 AM
    Ok. Right now I have two speeds defined: #define SPI_SPEED 10000000 #define GPIO2_SPI_SPD 4000000 Now if SPI1 is used: #define SPI_SPEED 11000000 #define GPIO2_SPI_SPD 11000000 With lcmode(0,10)?
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:32 AM
    Agree it was a hassle, but I think it was more because we didn't see the note on the different clocks for spi0 and spi1
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:14 AM
    Can they now coexist in the same library or still keep them separate ?
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:12 AM
    So that is what the whole issue boiled down to - you kind of hinted at it when you kept saying it was a timing issue.
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-19-2018, 02:00 AM
    Ok. My fault again, :( but at least you found the bug :) Cool. GPIO2 at 8Mhz and LCmode(0,10).... maybe (0,5). Well, guess that beats me, with 10Mhz/6Mhz with 1 sec slave transfer and 10ms master transfers :) ...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 07:10 PM
    This is giving me a headache - I was looking at the Definitive Guide to Cortex.... but there is nothing in those series of books that discusses SPI or I2C etc.... Everything is in the reference manual... argh... Learn...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 05:25 PM
    Was just looking at the reference manual - spi sounds like a lot like double talk to me - get the general idea but confusing because then it starts going into FIFO or DMA. Almost sounds like they want you to use their...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 02:05 PM
    Arrgh :( I will leave that pleasure to you :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 01:51 PM
    Interesting. This LC chip is crazy - spending more time on it than we did for the T3.x. Any config you want me to try?
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 01:14 PM
    I have been using beta 5 yesterday and today and can tell you that have the chip id on the com port (yes I am using Windows10) is such a pleasure. I have an LC and 3.5 attached and upload different sketches to each. ...
    33 replies | 1121 view(s)
  • mjs513's Avatar
    05-18-2018, 12:57 PM
    Running now at 10Mhz SPI and 6Mhz gpio2. Have 1sec transfers from slave to master, 100ms LED toggles and 10ms transfers to the slave. So far so good, it running fine no OTs, no pauses and no crashes so far. I will...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 12:30 PM
    Got it - when I change to 6Mhz I will change the slave transfer as well - already know at 6mhz had some issues in previous test.
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 12:20 PM
    I can actually say that I agree with you on this one. The only difference between what I tested was the F&F timing. Right now I am pushing 10Mhz and 4Mhz on GPIO2 and its working, absolutely no issues. Going to let...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 11:24 AM
    As an updated I removed the USBSerial print and now running for over an hour at 6/4 Mhz for SPI. Again this is with 10ms F&F, 100ms LED toggles and 500ms slave sends. Going to let it run for another hour and will...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 02:21 AM
    Ok finally crashed after more than 1 hour: 20894.00, #, #, #, #, #, #, #, #, #,743603,16 Reset the slave and it started right up again. This was at 10/4 for SPI. I agree. Probably need one for the T3.2 that...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 12:42 AM
    Have it running at 4Mhz no issues. Running it at 10/4 Mhz now and working ok. THis is how I have it structured: if ( !(millis() % 100) ) { #if defined(TLC) teensy_gpio2.pinToggle(LED_BUILTIN); #else ...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-18-2018, 12:23 AM
    I put the println after the delay(1) and it seems to be running fine now - usually hangs by now. LC may need a delay between toggle and next operation or any operation to finish processing. Don't know - may be...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 11:58 PM
    I am running now at 6/4 MHz, 10ms f&fs, 10,10lcmode, 100ms toggle and println(hello worlds). Slave I have the same - 500ms transfer 16s. :) I do have the Hello world in the same loop as the toggle so we will see. Had...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 11:20 PM
    Hi Tony Think I like the second version better :) Can't have too much info :) EDIT 6 MHz is good for me. UPDATE: Loaded slave sketch - updated master to do the println. Running at 10MHz SPI and 4 MHz GPIO2...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 11:18 PM
    If I remember right: w = q0 = quaternion y = q2 = quaternion z = q3 = quaternion
    191 replies | 46990 view(s)
  • mjs513's Avatar
    05-17-2018, 07:00 PM
    Yep - oh well but nice work. Having fun with testing but think I am done now for a while unless you throw something else at me. :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 06:54 PM
    You got me - its pausing for something. I tried changing the LCmode values as well but same thing.
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 06:52 PM
    Ok. Last comment 6/4, 8/4, 10/4 MHz on SPI with 5ms F&Fs work fine no problems. 12/4 just hangs :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 06:32 PM
    Don't what else to test..... EDIT: At 6/6 with lcmode(10,10) and 5ms f&fs still get those periodic pauses. At 10ms F&Fs still get the pauses intermittently. They seem to occur at random times as well. No...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 05:46 PM
    Just as a FYI, at 10MHz/4MHz for spi with no OTs. Going to 12 now to see what happens. I am at 100ms toggle and 10ms F&Fs. OK hangs at 12MHz. Oh well had to try. Now to increase gpio speed EDIT: This is what I...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 05:37 PM
    I'm back. Ok couple questions: 1. LCMode requires 10,10: both gpio and gpio2? assuming both if over 6MHz 2. gpio2 stays at 4Mhz? Thanks for fixing the code, works better now. So wrapped up in testing forgot about...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 02:57 PM
    I forgot to ask something - think we touched on it someplace - we can still use alternate pins for SPI0, I2C, etc ? Think the answer is yes if its supported. EDIT: "LCmode though, it's 0 by default" Cool - fixed in...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 02:54 PM
    Had to run out to the store, anyway retested: 1. T3.6/T3.5 all works no problem. 2. T3.5/LC all works no problem. I am using my new master sketch for this, the one change I made was: #if defined(TLC) ...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 01:30 PM
    That would work too. But is there a reason you would want to set 2 delays and just not make it one - not being difficult just trying to understand, i.e., teensy_gpio.LCmode(10) as opposed to 10,10? Or, if not...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 01:10 PM
    I just had some coffee and was thinking that you could just put it in the SPI_MST_Transfer constructor, e.g., SPI_MSTransfer teensy_gpio = SPI_MSTransfer("Serial", SPI_MST_CS, &SPI_MST_BUS, SPI_SPEED, LC_Mode ); ...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 12:53 PM
    Yeah that would make more sense. Once that is done that would fix the last of the nits standing in the way of updating the master :) Now go have your coffee :)
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 12:39 PM
    In the master .cpp I changed the ifdef to this: #if defined(__MK20DX128__) delayMicroseconds(5); #endif For my master test sketch, to avoid having to keep changing GPIO2 I just added a ifdef if I was using...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 12:35 PM
    Think you missed update5 in post 1719. Just need one change, don't need the 1 us delay anymore :) Oh, I made a couple of changes to the sketches so I can get better configurations dumped out.
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 10:54 AM
    I updated the master so I didn't have to keep redoing gpio2 for the lc: #include <SPI.h> #include <SPI_MSTransfer.h> #include "A_ConfigDefines.h" //comment out for T3.x slave devices #define TLC 1 #if...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 10:39 AM
    Ok. Started testing and hit a snag. T3.6/T3.2 at 180/120MHz with 30MHz SPI still doesn't work. If you change the SPI Speed to 27MHz it works UPDATE: T3.6/LC at 180/48MHz with 4/4 MHz SPI working no problems. ...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-17-2018, 12:18 AM
    Since the 3.5 seems to be the long pole and finds the most problems I will test tomorrow with the 3.2 and then with the two 3.5's again. If they work - then I think all is good. After that will think about teensquitto...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-16-2018, 11:33 PM
    Good for you. So are you done now with SPI_MSTransfer or are more changes on the horizon. Seriously we really need to come up with a good project demo the power of SPI_MSTransfer. You ever going back to...
    1818 replies | 43725 view(s)
  • mjs513's Avatar
    05-16-2018, 11:23 PM
    Oh man - you are a gluten for punishment - what are friends for right. On a serious note go take a break and clear your head from this stuff. Yes ii know this fun but... sometimes frustrating.
    1818 replies | 43725 view(s)
More Activity
About mjs513

Basic Information

About mjs513
Location:
New York
Interests:
Robotics, Image Processing
Occupation:
Aerospace Eng (Retired)

Statistics


Total Posts
Total Posts
1,602
Posts Per Day
1.13
Last Post
New project code named: teensquitto Yesterday 11:14 PM
General Information
Last Activity
Today 04:40 AM
Join Date
07-01-2014