Go to advanced search

by cps
Thu Sep 22, 2016 4:52 am
Forum: Troubleshooting
Topic: Problems with Verizon U620L 4G/LTE modem
Replies: 22
Views: 10068

Re: Problems with Verizon U620L 4G/LTE modem

I implemented a wifi access point using this code: https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/ I can reach through to internet access on eth0 with a lan connection through wifi now. I can see the cell network as an ip adr, and I can ping it successfully. It cha...
by cps
Wed Sep 14, 2016 4:55 am
Forum: Troubleshooting
Topic: Problems with Verizon U620L 4G/LTE modem
Replies: 22
Views: 10068

Re: Problems with Verizon U620L 4G/LTE modem

No, we haven't purchased a static IP adr. I called Verizon and yeh, its $500. We may still go down that route - Im amazed the price has gotten so high though, since they constantly get recycled. I did have a very pleasant long conversation with a manager at Verizon, though, who loved what we're doin...
by cps
Tue Sep 13, 2016 8:52 pm
Forum: Troubleshooting
Topic: Problems with Verizon U620L 4G/LTE modem
Replies: 22
Views: 10068

Re: Problems with Verizon U620L 4G/LTE modem

Hi- I just got one of these modems, put on a pi 3, added the rule indicated. ifconfig says I have an external ip address now, but I cant seem to ssh or sftp in on that address. Im trying to use this as a router & wifi connection, to allow us to operate a bunch of 3d printers we've developed. What am...
by cps
Mon Apr 11, 2016 5:46 pm
Forum: Raspbian
Topic: pthread - max threads?
Replies: 2
Views: 810

pthread - max threads?

I've recently been running code with several threads running. One of the threads exits periodically after completing, and a new thread is started each time it's needed. For some reason, after about 220 calls to create this thread, it then starts failing to create any new threads. I know the previous...
by cps
Wed Mar 02, 2016 2:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using the 2nd I2C bus on the 2B v1.1
Replies: 30
Views: 4866

Re: Using the 2nd I2C bus on the 2B

Hi all Im trying to use the second i2c bus also, and have successfully done it in past versions. But Ive got a new pi2 & the latest OS, and now Im having trouble seeing the i2c0 channel. Heres my config.txt hdmi_force_hotplug=1 dtparam=spi=on device_tree= dtparam=i2c_arm=on dtparam=i2c_vc=on dtparam...
by cps
Tue Mar 01, 2016 8:54 pm
Forum: Troubleshooting
Topic: repartition failure
Replies: 6
Views: 398

repartition failure

I've struggled with this problem several times trying to bring up new Pi systems, and so I want to share what I found out, as it seems some of the current documentation is misleading. A common problem I've had is using 32Gb or greater microSD cards. If you use the SDFormatter recommended, this will ...
by cps
Tue Feb 09, 2016 9:43 am
Forum: C/C++
Topic: USB not reading correctly
Replies: 10
Views: 915

Re: USB not reading correctly

That was it Gordon, many thanks! Reading fine, terminator chars unchanged. serialOpen was the key! You would think the default mode would be raw, but apparently not. To think I spent the better part of 6 months trying to find this one. I guess I just should have asked here. I did hardware workaround...
by cps
Sun Feb 07, 2016 6:25 pm
Forum: C/C++
Topic: USB not reading correctly
Replies: 10
Views: 915

Re: USB not reading correctly

Read through the documentation - looks like read/write can be used fine.
Is the default serialOpen mode a raw mode? Or should I explicitly set that?
by cps
Sun Feb 07, 2016 6:16 pm
Forum: C/C++
Topic: USB not reading correctly
Replies: 10
Views: 915

Re: USB not reading correctly

Was able to compile it in the code - not at machine so cant test yet.
Can I still use read() write() after the serialopen? Would keep it simple. Or do I need to use another read/write function?
by cps
Sun Feb 07, 2016 6:06 pm
Forum: C/C++
Topic: USB not reading correctly
Replies: 10
Views: 915

Re: USB not reading correctly

Thanks Gordon - I do in fact use wiringPi to run most of my i/o. Many thanks for that too.
Is the serialio handler already in wiringPi?
by cps
Fri Feb 05, 2016 11:16 pm
Forum: C/C++
Topic: USB not reading correctly
Replies: 10
Views: 915

USB not reading correctly

I'm trying to read/write a peripheral which is being run by a USB chip. I open it using open("/dev/ttyACM0",O_RDWR); I can write to it seemingly ok, but when I read, it seems to be doing some kind of weird translation of the binary data. Instead of 0xd, 0xa as the terminator, I get 0xa,0xa. Is there...
by cps
Mon Jan 25, 2016 4:46 am
Forum: Networking and servers
Topic: Jessie sftp problem
Replies: 11
Views: 1134

Re: Jessie sftp problem

I'm sorry, I thought I included that in one of the previous images.
I gave up, and went with a clean new version of jessie, loaded on a new rpi 2.
Everything seems to work fine there, am making good progress with the SEEK IR camera now.
Thanks anyway.
by cps
Fri Jan 22, 2016 7:39 pm
Forum: Networking and servers
Topic: Jessie sftp problem
Replies: 11
Views: 1134

Re: Jessie sftp problem

Ok. I think I attempted to load debian jessie, not raspbian jessie. So I made the changes suggested (and yes, the raspi.list referenced wheezy, not jessie, so I changed that). I ended up having to use the -f mode, but after a short installation process & reboot, the good news is that my SEEK Ir came...
by cps
Thu Jan 21, 2016 10:04 pm
Forum: Networking and servers
Topic: Jessie sftp problem
Replies: 11
Views: 1134

Re: Jessie sftp problem

Image

And yes, tried that - see:
Image
by cps
Thu Jan 21, 2016 8:39 pm
Forum: Networking and servers
Topic: Jessie sftp problem
Replies: 11
Views: 1134

Re: Jessie sftp problem

Screen shot of attempt to install raspberrypi-net-mods, a screencapture utility, and the dhcpcd not running in upper right Ultimately Im trying to get a library working to access a SEEK IR camera thru libusb. I got it to compile & link, but it needs a version of GLIBC_2.17 that now it can't find. Bu...
by cps
Wed Jan 20, 2016 10:55 pm
Forum: Networking and servers
Topic: Jessie sftp problem
Replies: 11
Views: 1134

Re: Jessie sftp problem

Ok I tried installing the network stuff, but it doesnt seem to proceed normally - I get some install errors, and up in my right corner dhcpcd not running is showing.
by cps
Wed Jan 20, 2016 9:37 pm
Forum: Networking and servers
Topic: Jessie sftp problem
Replies: 11
Views: 1134

Jessie sftp problem

I recently upgraded to Jessie on a B+. Its starting the wifi ok, and rpi system is talking to the network fine. But now all my tools to access the pi from my PC or Android fail to connect with "connect failed- target actively refused". Ive checked to make sure ssh is enabled, - it is. This worked fi...
by cps
Fri Jan 08, 2016 2:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change i2c0 speed
Replies: 10
Views: 1275

Re: Change i2c0 speed

IS there a way to set the I2c0 clock and data channels to be output only, not open-collector? The rise time is slow as default - even with 1k pullups.
by cps
Tue Sep 22, 2015 11:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change i2c0 speed
Replies: 10
Views: 1275

Re: Change i2c0 speed

Well that did not work, but after some trial and failure, I found a bcm2835 library which uses the current device tree, and was able to correctly read the CDIV and RDEL/FDEL values. The clock on the rpi 2 is 250Mhz, not 150Mhz. I found the RDEL/FDEL value were set rather high (possibly accounting fo...
by cps
Thu Sep 17, 2015 6:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change i2c0 speed
Replies: 10
Views: 1275

Re: Change i2c0 speed

Thanks for this documentation - its very helpful. So with FEDL & REDL at 0x30 or 48, the delay with a 150Mhz clock is 0.32us - so trying to set to 2 Mhz without changing these values is unlikely to work. 2Mhz would be a divider of 36 or 38 (says it must be even number). Writing on channel 1 seems to...
by cps
Wed Sep 16, 2015 9:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change i2c0 speed
Replies: 10
Views: 1275

Re: Change i2c0 speed

Here is the kern.log output regarding the baudrates: Sep 15 17:10:53 raspberrypi kernel: [ 3.635608] bcm2708_i2c 3f205000.i2c: BSC0 Controller at 0x3f205000 (irq 79) (baudrate 2000000) Sep 15 17:10:53 raspberrypi kernel: [ 3.651172] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 79) (b...
by cps
Wed Sep 16, 2015 6:54 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change i2c0 speed
Replies: 10
Views: 1275

Re: Change i2c0 speed

It looks like the i2c channel 0 is writing at 1Mhz, but when I read, the clock slows back down to 100khz. This is why it looked like there was a huge delay - a process that should have been a few tens of usec is hundreds if usec. The clock pulses were so narrow my simple scope didnt see them at firs...
by cps
Tue Sep 08, 2015 6:17 pm
Forum: C/C++
Topic: multithread on rpi 2
Replies: 9
Views: 1581

Re: multithread on rpi 2

I don't have any specific mutex variables. I've also just discovered a peculiarity in that the A/D does the first part of the digitizing, a wiringPiI2CReadReg8 command, then seems to take a huge amount of time to return from the command. I can see the SCK on the I2C 0 channel taking about 20us, then...
by cps
Sun Sep 06, 2015 7:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C 0 delay problem
Replies: 0
Views: 231

I2C 0 delay problem

I've successfully interfaced to the I2C channel 0, and have been able to increase the speed from 100Khz to 1Mhz by using dtparam=i2c_vc_baudrate=1000000 in /boot/config.txt I ran some tests, looking at a simple output to an AD I have attached, which is working fine at these speeds. I placed some io ...
by cps
Fri Sep 04, 2015 7:36 pm
Forum: C/C++
Topic: multithread on rpi 2
Replies: 9
Views: 1581

Re: multithread on rpi 2

Update on analysis - the A/D thread is more or less running continuously, but seems to be being paused for roughly 2.5ms at a time that coincides with altering one of the common memory variables being used by two different threads (A/D one of those threads). Its only updated roughly every 50ms. What...

Go to advanced search