I have an application where i am using WiFi and a GPRS backup connection.
In a particularly remote scenario I'm faced with, there is no WiFi available so I figured i would just throw in a second GPRS modem each using a different service provider for redundancy. The internet must be available always.
I have developed a driver for a particular modem, of which i have over 20 deployed throughout my city since 2015... it works.
In this case both modems would be identical except for the SIM... i don't feel like loading 2 copies of the same driver is "efficient" if the only hardware difference is the TX/RX pins they are connected to.
Is there a way to simply tell the driver to use a different stream? or am I limited to using a Flag to control which fprintf statement to use on each of the different functions?... this would suck.
Or change which stream corresponds to what UART?
I would like to simply flip a bit and the same single driver now operates on a different UART.
G. _________________ CCS PCM 5.078 & CCS PCH 5.093
Last edited by Gabriel on Tue Mar 21, 2017 6:25 am; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum