Relative Content

Tag Archive for electrongpspackagingserial-communication

GPS functionality not working after packaging Electron app with serialport and @serialport/parser-readline

I’m developing an Electron app that uses the serialport and @serialport/parser-readline packages to read GPS data from a USB device. The GPS functionality works perfectly when I run the app in development mode using electron .. However, after packaging the app using electron-builder and installing it on the same machine, the GPS functionality does not work.
I’ve checked the serial port settings and ensured that the device is properly connected, but the app is not able to read any GPS data. I’ve also tried running the packaged app with administrator privileges, but that didn’t make a difference.
Here are the packages I’m using:
serialport: ^9.2.5
@serialport/parser-readline: ^1.0.0