jUART icon indicating copy to clipboard operation
jUART copied to clipboard

load() is not defined

Open laRob95 opened this issue 8 years ago • 7 comments

Hello,

I copy the npjUART.so in my ~/.mozilla/plugins and I test the code in the README.

But the function load() is not defined in the body.

Could you help me to make it run ?

laRob95 avatar Jun 28 '16 07:06 laRob95

@laRob95 you might need to recompile the binary.

billhsu avatar Jun 28 '16 09:06 billhsu

I did it, but the message still appear. The pluginLoaded function is called unlike before, but the pluginValid function is not. I have no alert message.

I don't understand your function recv_callback : why a function receive send bytes to the serial port ?

I tried to send data to a scale with the send function :

var bytes = ['D','T','E','S','T','1','2','3', 'CR', 'LF'];
for (var i=0; i<bytes.length; i++) {
    console.log(bytes[i]);
    ser.send(bytes[i]);
}

but nothing happen.

I can't receive data of the scale without send a command message, so I tried a test command message. I have problem with CRLF maybe, I tried '\r' and '\n', but I have an error message :

Error: Error calling method on NPObject!

laRob95 avatar Jun 29 '16 07:06 laRob95

I also get ReferenceError: load is not defined in Firebug and have used the exact example provided in the README.md file (I defined port as /dev/ttyACM0). Environment is Linux and Firefox. The only steps I performed before this was to copy bin/Linux/npjUART.so into ~/.mozilla/extensions. Is there anything else I need to be doing?

oshihirii avatar Aug 09 '16 04:08 oshihirii

same problem : load is not defined in Firebug. Environment is Windows 10 and Firefox. Thanks.

liuxin-reg avatar Aug 14 '16 14:08 liuxin-reg

load() is not defined error when I open the example page.

Win10 (64bit) + Firefox/Chrome. dll copied to syswow64 and registered via regsvr32 call. No effect.

cdefgah avatar Oct 06 '16 09:10 cdefgah

load() is not defined error when I open the example page.

Win10 (64bit) + Firefox/Chrome. dll copied to syswow64 and registered via regsvr32 call. No effect.

same configuration and same problem.

yenerguller avatar Nov 10 '18 15:11 yenerguller

Same issue happen in Windows 10. How do we solve this issue?.

sathishsanthoshsusidhar avatar Mar 20 '19 10:03 sathishsanthoshsusidhar