Identify if an object is forward or backward using GPS - math

Hello friends of the community. I've been developing a GPS app and the goal is to know the bus forward and backward of the bus that the user select in the app, and I've been thinking how to resolve this a quite while. All the buses are a GPS circuit tha works by Galileo protocol. There are a mathematic formula to resolve this? Or an mathematical arrangement? I try to use the latitude and logitude of the buses to resolve this, but is not working because of the different directions the buses take during their route.
I hope you can help me to resolve this problem.
Thanks in advance for your replies.

Related

How to achieve fast video transmission between esp32 cam to a pc?

To make an autonomous drone and help it fly from one place to another without any human intervention, I plan to send data using two ESP32s and receive those data using my PC. I won't use the onboard navigation system inside the drone. I need suggestions regarding the signal-receiving unit (using wifi i will send the data), which will feed information directly to my PC. Kindly give me information on the best way to receive signals from ESP32 to PC, in the shortest amount of time and with a reasonable budget.
We were thinking about NodeMCU, but we aren't going to use it. Moreover, I am in the initial phase and have just started researching this. Also, I am pretty new to this, so any suggestions will help me to discover and also help me get what I want.

Forcing a signal on an interface (RS-232)

Firstly, this may be a stupid question or one that has been asked before but I am not quite sure how to google it.
I try to learn a bit about using modbus to communicate over serial interfaces and I have trouble understanding the mechanic of getting your signal on the wire/connection. I do unterstand how protocols (e.g. Modbus) encode and decode their Data. I'm interested in the process of getting your bitcode through the interface (preferably rs232) to the other machine.
In other words: How can I write a piece of code myself (no libraries etc. I want to learn how to do it) where I can input a couple of binary numbers and maybe the baudrate so that another device with a working modbus driver can receive it via direct cable connection.
If the matter is too complicated for an answer here, I'd be happy to get a link to some resources to teach myself as well. Or even some help for the right search terms.

BLE with no Smartphone

Has anyone worked with BLE applications where there is no smartphone (or app) involved with very little ability for computing power? I am formulating something around asset tracking where the use of a smartphone would not be possible and minimal computing power would exist. Is it possible?
Interesting concept. But could you be more descriptive on what exactly are you trying to implement in terms of computing power?
I suppose you could try my opinions below, (Apologies for anyone who disagrees, feel free to add things here)
--> Without a smart phone can be done, if the BLE module can write some serial data to a wifi module on the same board. So you will simply program the wifi module with your wifi name and password so it can transmit logs from ble to the web and with that you could use https://thingspeak.com/ or similar IoT cloud based services to analyze your raw data to a meaningful graphical version.
--> Little ability for computing power?, Well if you want to bypass all the UI that does the processing for your raw data, the programming part will be quite complex. There are several ways to handle data BLE data, if the BLE is capable of acting as a Central and Peripheral role at the same time, you could possibly create a network of BLE modules talking to each other and use the raw data to suit your application needs.
Hope this helps.
P.s I have tried both the above methods as part of testing and they both work.

Connecting Rime network to the Internet

I have been playing with Contiki for some time now and have tried out various examples and wrote my own for both the simulation environment and the real hardware. I have only been experimenting with self contained networks that, for example, measure the temperature difference between two nodes and then communicate that data with other devices (PCs) over plain text RS232 link, blink LEDs, and such simple stuff.
Now I want to make a more complicated system where instead of just forwarding the data in plain text to be read on a console I would forward it to an application that would in turn post it to some sort of web service and, vice versa, receive data from web service to be delivered to nodes on the network. There is quite a lot of examples and tutorials describing this kind of setup but all of them (as far as I am aware) are focusing on the IP(v6) stack and SLIP to achieve this. The problem with this is that I have a really lousy programmer and uploading of a 50 kB image takes about 1.5 mins so the development cycle is pure hell. I am also out of luck with simulation since my platform is not really supported at the moment.
That's why I decided to try out the Rime stack, image size is 1/3 of the IPv6 and the development cycle is somewhat acceptable now (I really should get a decent JTAG programmer...) Meanwhile, I am having a bit of trouble wrapping my head around this new setup with a different network stack on which there is very little information around. Although it is pretty easy to understand by itself, I am not sure how I would go about connecting a Rime network to an IP network and if it was even possible or advised/intended by it's designers.
I have some ideas in my head, ranging from ad hoc communication over a serial link between a server application running on the PC and the collector node, to a real Rime border router that is certainly outside of my league, for now.
How would you go about it? It would certainly work for my simple experimental case to just have a collector node that gathers the data from the Rime network and sends the aggregated data over a serial connection to the custom application that does the rest of the magic, but, I wouldn't want to be the guy that reinvented the wheel and I am quite sure that Rime wasn't designed to be used in a vacuum so there must be at least an advised way of doing this?
Rime is a really simple stack (By simple I mean few functionnality). But it's quite quicker for simple task.
You need to program the Rime stack on your gateway. Thus, your board and the gateway can communicate with the same stack. So now you have the data send on your gateway. The gateway now can send the data with IP to whoever you want.
If you want more technical detail, then edit your question with more specific technical context.
Btw JTAG is a must have. (for industrial application)
Edit : An other solution is to simply send your data from your board to your gateway in broadcast. Then the gateway take the data and interpret it. The cons of this method is you have to somehow be sure that your gateway interpret only the data of your board (not of others board)

no response from microsd card

I was trying to interface a 64 mb MicroSD card with MicroChip MCU. I sent cmd0-addr3-addr2-addr1-addr0-crc but didn't got any response.
What should I do next?
From the way you've phrased the question, it sounds like you don't have a very good understanding of how to communicate with external peripherals in general, on an embedded device. You should reference Microchip AN1169 which goes into detail on implementing SD card communication with an SD card. If that's not enough help, Microchip's application engineers are usually very helpful - don't rule out calling one.
On the other hand, if the application note is still over your head, you should strongly consider starting off with a less ambitious project - something like driving a motor or other simple IO that is not address-bound. The addressing issues can become very difficult when you already aren't familiar with embedded programming.
I stumbled on this thread because I was facing a similar problem. I know this thread is old but I want to post my experience here just for the record.
I have been doing FS and device programming for more than 8 yrs now so I am not a newbie :)
I was trying out PIC32MX and its inbuilt libraries for the first time and ran into the same problem as mentioned in the question. I double checked my connections after which I started doubting the library. I downloaded the latest versions for fixes but same behavior.
After lot of debugging for both hardware and software I found out that the microsd sockets contact for power was not sticking to the card contact at all! No power No response!

Resources