Go to advanced search

by John Public
Wed Aug 31, 2016 12:43 pm
Forum: C/C++
Topic: Which C compiler/debugger are you using?
Replies: 23
Views: 5424

Which C compiler/debugger are you using?

Which C compiler/debugger IDE are you using?

Currently I am using Codeblocks but unfortunately It does not seem to support LXTerminal when debugging so I can't see printf etc on console.

I would like another IDE but I need the debugger. Geany does not have one.
by John Public
Sat Aug 27, 2016 9:49 am
Forum: Troubleshooting
Topic: Workarounds for UART problems?
Replies: 0
Views: 322

Workarounds for UART problems?

I've read many "Read this first" and FAQ type -posts here concerning problems getting UART/SPI etc work. Judging from lengthy and ongoing discussion appears that some solutions work for some for some of the time etc.. All sort of myriad settings are applied to some success on some models. ...
by John Public
Tue Aug 23, 2016 6:01 pm
Forum: Troubleshooting
Topic: reset or restart an usb device
Replies: 8
Views: 5546

Re: reset or restart an usb device

I don't have a Itead SIM800, but looking at the link to it you provided, it connects to the Pi 3B via the GPIO pins, which means it uses the Pi's serial port. Wvdialconfig reports it as "/dev/ttyS0" so I put that value in minicom ("sudo minicom -s") and tested it. This indicates...
by John Public
Tue Aug 23, 2016 5:56 pm
Forum: Troubleshooting
Topic: reset or restart an usb device
Replies: 8
Views: 5546

Re: reset or restart an usb device

How do I enable it back on without rebooting whole system? My goal is to "soft boot" the modem driver (or something) if possible if it goes into non-responsive mode. You could try with a simple device like an USB key (mass storage). Your device should detach properly once the path is rele...
by John Public
Tue Aug 23, 2016 9:48 am
Forum: Troubleshooting
Topic: reset or restart an usb device
Replies: 8
Views: 5546

Re: reset or restart an usb device

Perhaps you can do something like "echo 1 > /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.XXX/remove" to "unplug" the device? (the 1-1/1-1.X part varies according to the way your device is connected to the Pi, you'll have to discover the path in sysfs that depicts your dev...
by John Public
Tue Aug 23, 2016 9:16 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Need consistent physical usb port to have same usb number
Replies: 28
Views: 18237

Re: Need consistent physical usb port to have same usb numbe

A workaround for dealing with changing USB? naming is that you have a small C program that does a

Code: Select all

system("dmesg | grep usb > /whatever/some.txt")
and then you open the "/whatever/some.txt" file and parse what usb is used for what and apply that for the rest of your program.
by John Public
Tue Aug 23, 2016 9:00 am
Forum: Troubleshooting
Topic: reset or restart an usb device
Replies: 8
Views: 5546

Re: reset or restart an usb device

I tried another modem (a shield), this time an Itead SIM800 (picture here: https://www.itead.cc/wiki/RASPBERRY_PI_SIM800_GSM/GPRS_ADD-ON) Wvdialconfig reports it as "/dev/ttyS0" so I put that value in minicom ("sudo minicom -s") and tested it. Minicom VT102 goes crazy posting a l...
by John Public
Tue Aug 23, 2016 5:49 am
Forum: Troubleshooting
Topic: reset or restart an usb device
Replies: 8
Views: 5546

reset or restart an usb device

I am using minicom and other programs to test sending an sms message from an RPi 3. I connect an old Nokia Symbian phone to the USB port. I enter the right sequence of AT command.. After I issue the last AT command AT+CMGS="+0123456789" <ENTER> and then send my message ending to CTRL+Z. I ...
by John Public
Sun Aug 21, 2016 8:51 am
Forum: C/C++
Topic: serial communication raspberry pi in C
Replies: 12
Views: 17761

Re: serial communication raspberry pi in C

My Rpi has multiple USB devices (keyboard, camera etc.).
I am designing a program (C) that should know when the phene is connected and what is the handle I can use to send sms messages.
by John Public
Sun Aug 21, 2016 8:46 am
Forum: Other projects
Topic: Prototype case
Replies: 1
Views: 1447

Prototype case

I'd like to design my own case for my project. My cases need to be double the size lengthwise to have room for numpad and/or other stuff. So probably I'd have to design with a 3d program (I use Blender) and have it 3d printed. What are my options? I don't have a 3d printer. What are approximate cost...
by John Public
Sat Aug 20, 2016 1:15 pm
Forum: C/C++
Topic: Receiving serial communication data and emulating key press
Replies: 2
Views: 909

Re: Receiving serial communication data and emulating key pr

This may set you on the right track: // Send a fake keystroke event to an X window. // by Adam Pierce - http://www.doctort.org/adam/ // This is public domain software. It is free to use by anyone for any purpose. #include <X11/Xlib.h> #include <X11/keysym.h> // The key code to be sent. // A full lis...
by John Public
Sat Aug 20, 2016 12:53 pm
Forum: C/C++
Topic: serial communication raspberry pi in C
Replies: 12
Views: 17761

Re: serial communication raspberry pi in C

I have an addition question to OP. I tested the code shown in this forum post with an USB input device connected to an RPi3. Works fine when I use open("/dev/ttyACM0"..) etc.. I'd like to send and receive data from an old Nokia Symbian mobile phone I have connected to another USB port. The...
by John Public
Sat Jan 18, 2014 10:58 am
Forum: Other projects
Topic: GPS to work inside buildings
Replies: 7
Views: 3230

Re: GPS to work inside buildings

HAIP is too accurate - accuracy in this case can be +/-5 meters. What about RF inside the warehouse?
by John Public
Fri Jan 17, 2014 3:31 pm
Forum: Other projects
Topic: GPS to work inside buildings
Replies: 7
Views: 3230

Re: GPS to work inside buildings

I did a quick look at GPS repeaters. It is not clear whether a repeter will just report its position and not the forklift withing the warehouse.
by John Public
Thu Jan 16, 2014 3:41 pm
Forum: Other projects
Topic: GPS to work inside buildings
Replies: 7
Views: 3230

GPS to work inside buildings

I need to get the whereabouts of forklift trucks during the day. GPS is great for that when they are outside. The problem I am having when the forklift goes inside a warehouse and the signal is lost. What kind of "backup gps" should be looking for while the forklift is parked inside and I ...

Go to advanced search