Please help me! - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Please help me! (/showthread.php?tid=416) |
Please help me! - phongvucba - 08.10.2016 ! Hello everybody! Everyone who does not use a USB 3G? According to this article should complement how much power is enough A (5V 2A or 5V 1A) http://openrb.com/example-knxeib-bus-control-and-event-notifications-via-sms/ When plugged into the USB on LM3: two light signal lights (lights of LM3), and then reboot. Ok. There must be a high-powered USB too? When we add this code: os.execute ('echo 1> /sys/bus/platform/devices/ci_hdrc.0/force_full_speed') os.execute ('echo 1> /sys/bus/platform/devices/ci_hdrc.1/force_full_speed') os.execute ('usbreset / dev / bus / usb / 001/001') but still reported in the System log: full-speed USB set to This code on LM3 Reactor 2 or 3 correct? Thanks everyone ! RE: use external 5V powering for the modem 3G! - admin - 11.10.2016 Yes, full speed (12mbps) is correct. Some modems do not work correctly on high speed (480mbps). If your modem requires a lot of power to start it can cause a reboot when you plug it into LM. External power supply can help or something like this: https://www.olimex.com/Products/USB-Modules/USB-CAP/ RE: Please help me! - phongvucba - 21.04.2017 help me ! I use 3G: ZTE MF190 from ZTE corporation. I use LM3 but not text !, "SMS Hander" does not start " Is it compatible? RE: Please help me! - admin - 21.04.2017 Do you have any ttyUSB serial ports in System Config / System Status window? RE: Please help me! - phongvucba - 23.04.2017 I have 4 port for ttyUSB. . You can visit my LM3 ! http://14.177.156.127:9004/apps/ Thank so much! RE: Please help me! - Erwin van der Zwart - 23.04.2017 Hi, You where missing the user lib, i added my version (user.sms) and sms handler and sms sender. Please check now (: BR, Erwin RE: Please help me! - phongvucba - 23.04.2017 Thank so much ! I will check now . I use conmon fuction, put the AT function inside. I think so it's still running! RE: Please help me! - Erwin van der Zwart - 23.04.2017 Hi, Ah, did not check there as it's not the best place to put it (: Common functions are loaded in every script and you should limit the functions there to functions that are 'common' what means the functions you use in most of your scripts. If you have functions that are used by 1 or some scripts its better to put them in a user lib and load (require) them in only the scripts you need them. This is much better for your system resources (: BR, Erwin RE: Please help me! - phongvucba - 24.04.2017 Thank pro! What does this mean: "common functions load from top to bottom every time a script runs? Also, "user lib" only runs when called. Then user is more useful. RE: Please help me! - Erwin van der Zwart - 24.04.2017 Hi, Yes all functions in common functions are available in / loaded into each script, require('user.xxx') is loading the functions from the user lib only in the script where you call it. So if you don't need a specific function in most of your scripts you should not put it in 'common' functions. Basicly common functions is just a user lib that is loaded by default in all your scripts without the need of a require('') command. BR, Erwin |